From patchwork Wed Apr 18 15:31:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10348673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E747B60216 for ; Wed, 18 Apr 2018 16:14:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D594828662 for ; Wed, 18 Apr 2018 16:14:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA05B285FF; Wed, 18 Apr 2018 16:14:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 38B6028608 for ; Wed, 18 Apr 2018 16:14:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=4W/P6tJbzH2+ivvdwF/uQOL/1B3yxslrIr7cYoBAekY=; b=J9yavlb+UMQ8FNNl2A/f/eryX1 eGFHjxayCzSNzbD+bOhM0s15i+Oy7gRe+lKZU9AIbjvYaa/5FMou8Ahdeu/efqdip/n/fyueyObvS cO9jFkRtSurQ/RnI/0S0BQsvdVdPT9JPvnPiIYteHnOJisCPmYAk8QRA+MVmrAb12rN9UrXgMiF/N eT4zk2JmuP6niYIC0dw+e18O/DvIJJ4yzhD5mzo8ikKDqk1JkNgrYwf2ugjaabKkdn5qOCWJV1WGy T5entpshQHMNNyhAOi5PoewZbw7sNXAVT355ssZUEO174RViNXJhxnIFgxfkRsF3ju0WwsFBaFVN5 yI9mTKaQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8pib-0007LB-G0; Wed, 18 Apr 2018 16:14:01 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8p8O-000882-Fu for linux-arm-kernel@lists.infradead.org; Wed, 18 Apr 2018 15:36:41 +0000 Received: by mail-wr0-x241.google.com with SMTP id v24-v6so6036219wra.8 for ; Wed, 18 Apr 2018 08:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XaHBWgy3j0+Y7G9ortinpn5q73PgbiSR1+PZ2JymhGQ=; b=hFVRCNeL5sqNeiR5Oao5/CS7Vqvdm7+ZBRv7YN3wZZpTvd3emOS8KS3nvgbJNrMKY5 HJUZHv1PrgLXfyLRdaT9FP3+xm7/vILUMyyTbA++CSEUNQzVAVavjXltSByPukTSgtqh IJjbwT+n2AW6sIThJk4lcAtE3mHW/4NJVe29E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XaHBWgy3j0+Y7G9ortinpn5q73PgbiSR1+PZ2JymhGQ=; b=XvTsSJbgB9TgU1v88Wvx39+tQzWY0cd8/ujBNJTtPWm8CKOJlVTuTRS738EyVV0lka CsV3qfFuiylVYLvQGzH+TBQ0DK95TsUaUiHEDKXcs0XfddYeUiel51AEXs9N2akP3G7a sQw0twTQ2s0BT/Zp8SMDI+p3NTYWJLE0pWPV4tFncpbZXwcKEDX8zTWuKC+MXhXCBHia OFIe0T8m4m2OvVYB3MgdiOiigviZEl02/y1BzOSXUAFBZ1GSCFBuXWNpCsTze0EYrQ5r mLrAqgv9pLgJXLtf1ScjhvgYeux9A0Xz0L5KB6pS+jkmfDprera7953z12TZEawzd/Tg e1TQ== X-Gm-Message-State: ALQs6tA/7t18fN7L95IILl59twdXE7uj7fxSBzOB6xdPxj7DCIrpYbXR EGp/AZ8i+6SqbHxOTUOG55vAKg== X-Google-Smtp-Source: AIpwx498V5D6Wa0yOPccgLoQ9GqHWJt0xfDrbL6FAVPbvX4iXMWNZ8JdCRO9R/dcZnzYte+ry9P7sA== X-Received: by 2002:adf:b2f4:: with SMTP id g107-v6mr2076983wrd.205.1524065784367; Wed, 18 Apr 2018 08:36:24 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id x67sm2529314wma.23.2018.04.18.08.36.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Apr 2018 08:36:23 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: andy.gross@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org Subject: [PATCH v5 21/23] ASoC: qdsp6: dt-bindings: Add apq8096 machine bindings Date: Wed, 18 Apr 2018 16:31:55 +0100 Message-Id: <20180418153157.1960-22-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180418153157.1960-1-srinivas.kandagatla@linaro.org> References: <20180418153157.1960-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180418_083636_694658_899FD679 X-CRM114-Status: GOOD ( 12.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, bgoswami@codeaurora.org, rohkumar@qti.qualcomm.com, gregkh@linuxfoundation.org, plai@codeaurora.org, lgirdwood@gmail.com, tiwai@suse.com, david.brown@linaro.org, Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org, spatakok@qti.qualcomm.com, perex@perex.cz, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Srinivas Kandagatla Add devicetree bindings documentation file for Qualcomm apq8096 sound card. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,apq8096.txt | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,apq8096.txt diff --git a/Documentation/devicetree/bindings/sound/qcom,apq8096.txt b/Documentation/devicetree/bindings/sound/qcom,apq8096.txt new file mode 100644 index 000000000000..37e23d926b95 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,apq8096.txt @@ -0,0 +1,76 @@ +* Qualcomm Technologies APQ8096 ASoC sound card driver + +This binding describes the APQ8096 sound card, which uses qdsp for audio. + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,apq8096-sndcard" + +- qcom,audio-routing: + Usage: Optional + Value type: + Definition: A list of the connections between audio components. + Each entry is a pair of strings, the first being the + connection's sink, the second being the connection's + source. Valid names could be power supplies, MicBias + of codec and the jacks on the board: + += dailinks +Each subnode of sndcard represents either a dailink, and subnodes of each +dailinks would be cpu/codec/platform dais. + +- link-name: + Usage: required + Value type: + Definition: User friendly name for dai link + += CPU, PLATFORM, CODEC dais subnodes +- cpu: + Usage: required + Value type: + Definition: cpu dai sub-node + +- codec: + Usage: Optional + Value type: + Definition: codec dai sub-node + +- platform: + Usage: Optional + Value type: + Definition: platform dai sub-node + +- sound-dai: + Usage: required + Value type: + Definition: dai phandle/s and port of CPU/CODEC/PLATFORM node. + +Example: + +audio { + compatible = "qcom,apq8096-sndcard"; + qcom,model = "DB820c"; + + mm1-dai-link { + link-name = "MultiMedia1"; + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + hdmi-dai-link { + link-name = "HDMI Playback"; + cpu { + sound-dai = <&q6afe HDMI_RX>; + }; + + platform { + sound-dai = <&q6adm>; + }; + + codec { + sound-dai = <&hdmi 0>; + }; + }; +};