From patchwork Sat May 16 12:33:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 48610 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E8C4B21411 for ; Sat, 16 May 2015 12:38:26 +0000 (UTC) Received: by labgx2 with SMTP id gx2sf39444285lab.1 for ; Sat, 16 May 2015 05:38:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Da5A7WDWMNlxnP8KP5onD/3k/vqA2stLeP00ItelaFw=; b=T4nTIB1tMX3U9fTSgAKGed3nOfGpDPrsgaqIQS4CgO9D2gkXmypyR0kSQYwrePLAxe T0g+beUgYslWDrkXMbckQRskoD9eZ5RSx+GGyNP+ZzNqB/LzZSXqS8J4wRZRuqefL8mW ExpudMd/WPFe41jpZypWQ+SAVwOC2B1sbLoqJLhqLHm3ZGR4DwxEILvXNTyegggIHg2h l+dOInAiQG8oOlUrkcf+TU7HFh99TVQO0DfApnuDnyOuwTW8xjCSr3xmQwxPm/ls+JIP nxDYJ+JfNN9/6pFo+ggX4WOQIQzmhzCTsppV/RMQ0xhqXGO/ay8nHKnbcukMPVEuTnnh yElg== X-Gm-Message-State: ALoCoQnzoNhP7YhX0yGbU7V/Q8L8G27kCHeA6rbJ6B36761aX5V42FU9hEXo4YYpVw3yvHq2icxI X-Received: by 10.180.73.137 with SMTP id l9mr2756077wiv.5.1431779905518; Sat, 16 May 2015 05:38:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.37 with SMTP id p5ls637716lah.9.gmail; Sat, 16 May 2015 05:38:25 -0700 (PDT) X-Received: by 10.112.156.97 with SMTP id wd1mr10480016lbb.30.1431779905132; Sat, 16 May 2015 05:38:25 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id v6si2972704lav.62.2015.05.16.05.38.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 May 2015 05:38:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by lagr1 with SMTP id r1so77516142lag.0 for ; Sat, 16 May 2015 05:38:25 -0700 (PDT) X-Received: by 10.113.10.134 with SMTP id ea6mr10503242lbd.29.1431779904985; Sat, 16 May 2015 05:38:24 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2710976lbb; Sat, 16 May 2015 05:38:23 -0700 (PDT) X-Received: by 10.70.140.108 with SMTP id rf12mr26939719pdb.140.1431779902342; Sat, 16 May 2015 05:38:22 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kc8si7072460pbc.130.2015.05.16.05.38.21; Sat, 16 May 2015 05:38:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755304AbbEPMd7 (ORCPT + 28 others); Sat, 16 May 2015 08:33:59 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:35814 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755233AbbEPMdx (ORCPT ); Sat, 16 May 2015 08:33:53 -0400 Received: by wicmx19 with SMTP id mx19so22918753wic.0 for ; Sat, 16 May 2015 05:33:52 -0700 (PDT) X-Received: by 10.180.109.136 with SMTP id hs8mr5675037wib.73.1431779632240; Sat, 16 May 2015 05:33:52 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-144-121-184.as13285.net. [78.144.121.184]) by mx.google.com with ESMTPSA id ew10sm2697909wic.22.2015.05.16.05.33.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 16 May 2015 05:33:51 -0700 (PDT) From: Srinivas Kandagatla To: Patrick Lai , Mark Brown Cc: Rob Herring , Pawel Moll , Ian Campbell , Kumar Gala , Banajit Goswami , Kenneth Westfield , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v2 13/13] ASoC: qcom: document apq8016 sbc machine driver bindings Date: Sat, 16 May 2015 13:33:48 +0100 Message-Id: <1431779628-2516-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431779462-1732-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1431779462-1732-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds bindings for apq8016 sbc machine driver. On APQ8016 4 MI2S can be configured to different sinks like internal codec/external codec, this connection is controlled via 2 iomux registers. Tested-by: Kenneth Westfield Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,apq8016-sbc.txt | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,apq8016-sbc.txt diff --git a/Documentation/devicetree/bindings/sound/qcom,apq8016-sbc.txt b/Documentation/devicetree/bindings/sound/qcom,apq8016-sbc.txt new file mode 100644 index 0000000..01d62be --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,apq8016-sbc.txt @@ -0,0 +1,61 @@ +* Qualcomm Technologies APQ8016 SBC ASoC machine driver + +This node models the Qualcomm Technologies APQ8016 SBC ASoC machine driver + +Required properties: + +- compatible : "qcom,apq8016-sbc-sndcard" + +- pinctrl-N : One property must exist for each entry in + pinctrl-names. See ../pinctrl/pinctrl-bindings.txt + for details of the property values. +- pinctrl-names : Must contain a "default" entry. +- reg : Must contain an address for each entry in reg-names. +- reg-names : A list which must include the following entries: + * "mic-iomux" + * "spkr-iomux" +- qcom,model : Name of the sound card. + +Dai-link subnode properties and subnodes: + +Required dai-link subnodes: + +- cpu : CPU sub-node +- codec : CODEC sub-node + +Required CPU/CODEC subnodes properties: + +-sound-dai : phandle and port of CPU/CODEC +-capture-dai : phandle and port of CPU/CODEC + +Optional CPU/CODEC subnodes properties: +- external : flag to indicate if the I2S is connected to external codec +Example: + +sound: sound { + compatible = "qcom,apq8016-sbc-sndcard"; + reg = <0x07702000 0x4>, <0x07702004 0x4>; + reg-names = "mic-iomux", "spkr-iomux"; + qcom,model = "DB410c"; + + /* I2S - Internal codec */ + internal-dai-link@0 { + cpu { /* PRIMARY */ + sound-dai = <&lpass MI2S_PRIMARY>; + }; + codec { + sound-dai = <&wcd_codec 0>; + }; + }; + + /* External Primary or External Secondary -ADV7533 HDMI */ + external-dai-link@0 { + external; + cpu { /* QUAT */ + sound-dai = <&lpass MI2S_QUATERNARY>; + }; + codec { + sound-dai = <&adv_bridge 0>; + }; + }; +};