From patchwork Sat Mar 10 02:24:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10273071 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 7AC8560236 for ; Sat, 10 Mar 2018 02:36:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D81129E54 for ; Sat, 10 Mar 2018 02:36:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61B5A29E70; Sat, 10 Mar 2018 02:36:30 +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 CA9A529E54 for ; Sat, 10 Mar 2018 02:36:29 +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=qgaJP2MJRpkEqLU9MMy4RpZXREOKix4Gp5QZlmLjZlg=; b=BeNT2zdM36bb8h4VB057Tgf9PL JMDNH6xbb3pu3PJ37yk/6K5QgDFb/Ev/q9mfcnIwuPCjMFxwmZDLNYh1xtQuneKbTQAgpgGvsZpeR HjQGkYFlm3RtR6NsR0JfMZIT1pkMmwa4xBIA0nfq5cKXg+zSDWjmzrXjkzNfjvLPkl6XEwAxsQ/oO s1PKVguKJn1i2KZfe7PKsk5c0mvtMHGkR1QoGHUgoii+Db1XQ6gGOfoA1Q4IZv5Y2JSXXU4u/9qIr FmoQgstnrixteQBQz84GH8fH2mqlpv1MvMB5lYvm6oBQT1ugtrzbyECyNaQ+YA2DHb+sUFLp7vtSj mYhWKaEg==; 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 1euUMw-0001E2-VB; Sat, 10 Mar 2018 02:36:23 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euUFA-0002gI-7N for linux-arm-kernel@lists.infradead.org; Sat, 10 Mar 2018 02:29:07 +0000 Received: by mail-wm0-x241.google.com with SMTP id s206so5685376wme.0 for ; Fri, 09 Mar 2018 18:28:10 -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=i4Y916wk5L2VlZbsmuAzdRY5cI59LTGgrN2x6Srlrr8=; b=P6cws3LAGxr7DxByp2T5/vfhROMjegn8hGug+oMoUcXXsCONxXB+6Yz2mKjQJ57n9l KVI1o0Yf7vE6259ItDjuMh3hFIibg2nZx0yalwtp4FRkDZF7Rt0q3mk2thcwOJRy897z zbsj+oIiepEe3WZllztmIqpTAGeBixw1LX45E= 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=i4Y916wk5L2VlZbsmuAzdRY5cI59LTGgrN2x6Srlrr8=; b=XGmAxPSLArKgcHaxlgm0Vz86G+FggRBFxwkmmQDDR25Xte2hUUHwlY/TtW3uZ/aHl7 UPb7WQnbwqkfM6M9IkMFGRn0B5ms6FMVKA9fl88WKVJKG7DPIBhJOhess68sea/fotk7 ySsoyL9oKEngFmKOMBVOZ+WhOe/BV9XVBMGRc/LX67VZeDj6bdPtiNk9QgOMV3fjE45y /yk2cBEmdlcCPCzvIircTPNh6qawfmf/ycHN1FSRj5ql0A85C8B42hMQohK5TjAUiFlr al6Lp/JdkimHgSR23nQHpV1wpkJAULs5LAElNBK6UOK9ombHrxKBF2yL96jE+P1eqckO DUCA== X-Gm-Message-State: AElRT7FpJwGAm7PpWfCROOEXunKazIcvHYUn/ddjicBaB02FpOpiLm16 aFXhuWRCH/q3KtOQiy4hCrY64Q== X-Google-Smtp-Source: AG47ELuD+KxjPZ4pk6hrTZoFcy8dTIT9l0B7T8XWzLpWE2APvmgm8MB87V/HjTcromcaGt38QJAn1A== X-Received: by 10.28.92.208 with SMTP id q199mr54569wmb.91.1520648888806; Fri, 09 Mar 2018 18:28:08 -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 g78sm21489wmc.31.2018.03.09.18.28.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 18:28:08 -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, robh+dt@kernel.org Subject: [PATCH v4 21/24] ASoC: qdsp6: dt-bindings: Add apq8096 machine bindings Date: Sat, 10 Mar 2018 02:24:53 +0000 Message-Id: <20180310022456.26739-22-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180310022456.26739-1-srinivas.kandagatla@linaro.org> References: <20180310022456.26739-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180309_182821_188129_C1952971 X-CRM114-Status: GOOD ( 13.53 ) 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@linaro.org, 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 | 80 ++++++++++++++++++++++ 1 file changed, 80 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..fddc9f0ce3a5 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,apq8096.txt @@ -0,0 +1,80 @@ +* 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: 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"; + com,audio-routing = "RX_BIAS", "MCLK"; + + mm1-dai-link { + link-name = "MultiMedia1"; + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + platform { + sound-dai = <&q6asmdai>; + }; + }; + + hdmi-dai-link { + link-name = "HDMI Playback"; + cpu { + sound-dai = <&q6afe HDMI_RX>; + }; + + platform { + sound-dai = <&q6adm>; + }; + + codec { + sound-dai = <&hdmi 0>; + }; + }; +};