From patchwork Fri May 18 12:56:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10410533 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 965A26031B for ; Fri, 18 May 2018 13:03:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8274228926 for ; Fri, 18 May 2018 13:03:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 743FF2898C; Fri, 18 May 2018 13:03:00 +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 2D5F028926 for ; Fri, 18 May 2018 13:02:56 +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=vrMuLUNFWlOIk/ZlcdNVgAlNOPxnBKjwDHHXUOwJ3tc=; b=cA94Uuu4ctN9pAV+rasYQNv121 U+eiS/6aCPIegrbzwqB4egMzNTsRgzvdxaGnT2KS25GoqSgkpedddEtBksgmWpSwO8oMdKZWF/1uf 3O95E5D2tM0CJf9Q4+rsc0jICtpa0OcYE249BY3MaIcQWqpf6z0Yr98qJE2mUuB0kbIQiIWF/UcPb PMDc2JFSKjXI2bps0yZ1k584IwRaFrgzR8P0GhJ4Co+FnYNJtV5lYxdB14lQZCtFibmBRlqlAeirA 3kbmHVGij35580N3hfl1TGXzWGy/yZza4OZLHlsdV7PKXadK4Hb0eYQk/xr2CmScqNi8VeetWuspg 3UmZctFQ==; 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 1fJf1u-0006iD-Dc; Fri, 18 May 2018 13:02:42 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJeyQ-0001VV-9k for linux-arm-kernel@lists.infradead.org; Fri, 18 May 2018 12:59:27 +0000 Received: by mail-wm0-x244.google.com with SMTP id m129-v6so14965039wmb.3 for ; Fri, 18 May 2018 05:58:56 -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=imnKv9jDQU2mTARRpMRZZCzAYAHZVTLw5zVbbDhLByk=; b=TUX4TfmM7U9yE5cDxVYPJ9h0pcLW7T+wmvZ7/N7DQJ9HmSIdGaJThK/8s+e+60zu0C Mt27M3enG5cLGK9v3XCQ7774FcUMYY9O36ftMEVQPvV/z3yhiZHuDw6U2WZXGYMz89UX cHq83mLt0Nc+qDbmRmqx4VuPDRQYGULed4izw= 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=imnKv9jDQU2mTARRpMRZZCzAYAHZVTLw5zVbbDhLByk=; b=q42fXRVJRHSqEvTStb+IOpqMDq5JNp6y0ZgfAJRBieej+PbAD4TJdbjIMOreupEX9w grEwmPlWuWeVDgbY1XE3HpoP90B8ss2If9uAaHdCoGaVAP2jiT1bT5kQBcz+o3GzsZXb xAnzvE81peocymkUJDW5mVhUTlAaTa+ED8bbZxqO5Kg+P1bKCkX0eZ9avLoneBj+TUz8 d5cQU8mqVcX8scNKjBpOdZw3BMF81BE5ovhHhqbmNhw9cJxT7Y6KhGOgQL+QwK+zBnka gWmJ2Kd8mPhe4mNlFYwtLHVDeXsd+ACFYIc+tthuOoWkYJdHf3yzDvpbcK8+MyR+ZOvH dUIQ== X-Gm-Message-State: ALKqPweAhQFoHsD7E0P/ZQr9gFAqo0Fg8Uz24mEvdpBaIN28aUAXTEiY 40ilff5VzJ1gD6/3pM6UwHiG+g== X-Google-Smtp-Source: AB8JxZpWirQzLd4iOVIv0HfCyEsLGBds/U8g9ksFBt5Gm1LEO+Ay99WhGBD5Lum09H7rgUcniFXF/g== X-Received: by 2002:a1c:e14:: with SMTP id 20-v6mr4832468wmo.85.1526648334503; Fri, 18 May 2018 05:58:54 -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 x7-v6sm7868034wrm.35.2018.05.18.05.58.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 May 2018 05:58:54 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org Subject: [PATCH v9 14/15] ASoC: qdsp6: dt-bindings: Add apq8096 machine bindings Date: Fri, 18 May 2018 13:56:09 +0100 Message-Id: <20180518125610.26200-15-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180518125610.26200-1-srinivas.kandagatla@linaro.org> References: <20180518125610.26200-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180518_055906_343501_10430341 X-CRM114-Status: GOOD ( 11.80 ) 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, rohkumar@qti.qualcomm.com, gregkh@linuxfoundation.org, plai@codeaurora.org, lgirdwood@gmail.com, tiwai@suse.com, david.brown@linaro.org, robh+dt@kernel.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 Add devicetree bindings documentation file for Qualcomm apq8096 sound card. Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring Reviewed-by: Banajit Goswami --- .../devicetree/bindings/sound/qcom,apq8096.txt | 109 +++++++++++++++++++++ 1 file changed, 109 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..aa54e49fc8a2 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,apq8096.txt @@ -0,0 +1,109 @@ +* 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: + Valid names include: + + Board Connectors: + "Headphone Left" + "Headphone Right" + "Earphone" + "Line Out1" + "Line Out2" + "Line Out3" + "Line Out4" + "Analog Mic1" + "Analog Mic2" + "Analog Mic3" + "Analog Mic4" + "Analog Mic5" + "Analog Mic6" + "Digital Mic2" + "Digital Mic3" + + Audio pins and MicBias on WCD9335 Codec: + "MIC_BIAS1 + "MIC_BIAS2" + "MIC_BIAS3" + "MIC_BIAS4" + "AMIC1" + "AMIC2" + "AMIC3" + "AMIC4" + "AMIC5" + "AMIC6" + "AMIC6" + "DMIC1" + "DMIC2" + "DMIC3" += 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>; + }; + }; +};