From patchwork Tue Feb 13 16:58:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10217015 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 A617260329 for ; Tue, 13 Feb 2018 17:13:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9517228E34 for ; Tue, 13 Feb 2018 17:13:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 895D228EA4; Tue, 13 Feb 2018 17:13:26 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID 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 20CAD28E34 for ; Tue, 13 Feb 2018 17:13:25 +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=pJuE6QcVhaMpsNlKSKhy05j6SVUvtNolpbMvD5Hhpks=; b=TTqOpOlw41d7qwst5GNZ4u0+6J oriyKOclT8hwoGOPr8/2k63mpwwGBnAI22hOT4ZrQEQehWLqdsEXEYqm3w+CUwffqVlWGJEy45Wzl TLHa7164o//Z3RChv1LlhFq8O2sHkeZo0uqK669hvQYiesSQ8sOuuS6TrXO+TT3ZujcMQedhenUR0 9+jKYyAaGpTz5+gHX9Hvo2LVcMURPohyZydRGU+Rtw3XuCSUbhGWkwQeIKcQS7pUISulZ9Ix6cPZU iMyPdJr+Acndm5e9RZu+l6zmbafQf60YtijFKWOmQfeg2duSnhs7VjIYo+2CQ9v69m2RAMKalHG5H BYU3hbCw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ele8m-0006r5-1F; Tue, 13 Feb 2018 17:13:12 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eldxl-0003qa-J1 for linux-arm-kernel@lists.infradead.org; Tue, 13 Feb 2018 17:02:32 +0000 Received: by mail-wm0-x242.google.com with SMTP id i186so17317727wmi.4 for ; Tue, 13 Feb 2018 09:01:47 -0800 (PST) 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=8aAeQGSakBMD1Yfzda5ic+gh1tQCzFgU1wdmbqROgPY=; b=Zz8F9f1Waq/kPBv8PO/qtPMIQnwUko0FKkLY/8q8lmLl++l/WrPbVHhqDbXRNpEUpP whjF6fMCDvrmsGUIo7sa2XcMW1MdSoR+2B5DpUgBDg3z3Fs+qgkvgITgYiTmjndKQVCj q1Yg4leZNXCSBcUIndfzd4PSEw5a/m0ohHuyI= 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=8aAeQGSakBMD1Yfzda5ic+gh1tQCzFgU1wdmbqROgPY=; b=pXgGNOM/sFjvJVOqvMvxAK/sBb/n7EBt8ObuWVxvEp/7FgNYRSXS+wUQnptfB4O3bJ TKrflY20GwhvYleiHC0AICRAWH84kAU5iLovNcW8giRJfDawKyvXJhgQDR0HYeoCkGXy SNsBJ84ZuXGYXENucQmWqvpYGWfKvcTlRC61ewNB0kek1a2bJfI6qlfVCSilEsiMQKm7 iOECy7oynBaOjnTsE8mm3KCt9TqD7JrZnE7Oyvbs1L00flZ/yzkt0pq0b2ZD4ieCyiH5 1aZOiBD1ykj+xlbIUOBQiCdWHNpANGgULl3U1UWhp3OSsMFqUV2iGmem+6WhdRD7DD6f 8ugQ== X-Gm-Message-State: APf1xPBfv4TtKpA7nCz6uWrhS8BrNAI1G1UAJDzxFemGOIN1Z3YQBF0D 6BoZs/9v6WxUMi4H3xxer0QC4Q== X-Google-Smtp-Source: AH8x2253SYxzHzL8KQ5KRUfyKKnpO/ghgpG/AGTDZyiwxTKFhrCE7Rjq26XTRmoSLVisxz6hb9PsWQ== X-Received: by 10.28.249.22 with SMTP id x22mr1754400wmh.135.1518541305723; Tue, 13 Feb 2018 09:01:45 -0800 (PST) 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 y145sm7432723wmd.43.2018.02.13.09.01.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Feb 2018 09:01:45 -0800 (PST) From: srinivas.kandagatla@linaro.org To: andy.gross@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH v3 23/25] dt-bindings: sound: qcom: Add devicetree bindings for apq8096 Date: Tue, 13 Feb 2018 16:58:35 +0000 Message-Id: <20180213165837.1620-24-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180213165837.1620-1-srinivas.kandagatla@linaro.org> References: <20180213165837.1620-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180213_090149_810537_0FADE674 X-CRM114-Status: GOOD ( 11.04 ) 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, linux-kernel@vger.kernel.org, plai@codeaurora.org, tiwai@suse.com, lgirdwood@gmail.com, perex@perex.cz, david.brown@linaro.org, robh+dt@kernel.org, Srinivas Kandagatla , spatakok@qti.qualcomm.com, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.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 | 89 ++++++++++++++++++++++ 1 file changed, 89 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..58cd506477c0 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,apq8096.txt @@ -0,0 +1,89 @@ +* 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: + += FRONTEND and BACKEND dailinks +Each subnode of sndcard represents either frontend or backend dailink, +and subnodes of each backend/frontend dailinks would be +cpu/codec/platform dais. + +- link-name: + Usage: required + Value type: + Definition: User friendly name for dai link + +- is-fe: + Usage: optional + Value type: + Definition: present if the dailink is frontend + + += CPU, PLATFORM, CODEC dais subnodes +- cpu: + Usage: required + Value type: + Definition: cpu dai sub-node + +- codec: + Usage: required + Value type: + Definition: codec dai sub-node + +- platform: + Usage: opional + 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"; + qcom,audio-routing = + "RX_BIAS", "MCLK"; + + fedai1 { + is-fe; + link-name = "MultiMedia1 Playback"; + cpu { + sound-dai = <&q6asm MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + platform { + sound-dai = <&q6asm MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + bedai1 { + link-name = "HDMI Playback"; + cpu { + sound-dai = <&q6afe AFE_PORT_HDMI_RX>; + }; + + platform { + sound-dai = <&q6adm>; + }; + + codec { + sound-dai = <&hdmi 0>; + }; + }; +};