From patchwork Wed Jun 10 12:15:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 49686 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AB164245D4 for ; Wed, 10 Jun 2015 12:16:10 +0000 (UTC) Received: by wibut5 with SMTP id ut5sf12189554wib.0 for ; Wed, 10 Jun 2015 05:16:09 -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=WDpBDgZjWrHoU6W4CYkxKDloU3nKEc+hthxDiFJ61qg=; b=FxX4C86lJ2lYnzS8mUtZDO18Ud1jqpRFJTsywwR8Xr94/+x5rhCkSVZk7x/sCG7hNU SI4ZMz1FWrfUB0tv69of6vn3odXO9THQX5yg4GCfUgKcohPEwZbiYRvd1T+f0fuqqOqE TtqUB+ia+6BfH88tY9IMR8cMB/aB6KxP0LuGfz1fQmYj4JKYxINNdZHUuj1yqycR5U3I lsYr7yVDCVJImei0m7sDM0Ilp60JAYtUHtBdQ/bxyeKTfRU5o730pvOHJsopg7glfTtS wk4Sfor+95pRraTesDiMkr/aID/rXMlYKzJ/L6yB5LC3YZUb7Yd6wb6MvZsl3Qq5TC8R 2g7Q== X-Gm-Message-State: ALoCoQl1PFvc0x9si+nan7O1vFyPXEDVsIu7r4MH1fpcDr05oYD8Rgnq/mEAhtpYU+B2ldWGYz8w X-Received: by 10.152.5.2 with SMTP id o2mr2771944lao.0.1433938569904; Wed, 10 Jun 2015 05:16:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.138 with SMTP id am10ls196356lac.67.gmail; Wed, 10 Jun 2015 05:16:09 -0700 (PDT) X-Received: by 10.112.72.164 with SMTP id e4mr3516553lbv.113.1433938569757; Wed, 10 Jun 2015 05:16:09 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id e1si8863495lam.23.2015.06.10.05.16.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jun 2015 05:16:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by laew7 with SMTP id w7so31638522lae.1 for ; Wed, 10 Jun 2015 05:16:09 -0700 (PDT) X-Received: by 10.112.182.4 with SMTP id ea4mr3634671lbc.35.1433938569620; Wed, 10 Jun 2015 05:16:09 -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 hn6csp3295878lbb; Wed, 10 Jun 2015 05:16:08 -0700 (PDT) X-Received: by 10.70.91.99 with SMTP id cd3mr5282782pdb.166.1433938567536; Wed, 10 Jun 2015 05:16:07 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fq15si13786517pdb.118.2015.06.10.05.16.06; Wed, 10 Jun 2015 05:16:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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 S933140AbbFJMQB (ORCPT + 5 others); Wed, 10 Jun 2015 08:16:01 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:34656 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932994AbbFJMPv (ORCPT ); Wed, 10 Jun 2015 08:15:51 -0400 Received: by wgv5 with SMTP id 5so34280347wgv.1 for ; Wed, 10 Jun 2015 05:15:49 -0700 (PDT) X-Received: by 10.180.13.5 with SMTP id d5mr18298223wic.65.1433938549169; Wed, 10 Jun 2015 05:15:49 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-99-231-135.as13285.net. [2.99.231.135]) by mx.google.com with ESMTPSA id ei8sm14275507wjd.32.2015.06.10.05.15.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jun 2015 05:15:48 -0700 (PDT) From: Srinivas Kandagatla To: Mark Brown , alsa-devel@alsa-project.org Cc: Rob Herring , Patrick Lai , Banajit Goswami , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kwestfie@codeaurora.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v6 1/2] ASoC: qcom: document apq8016 sbc machine driver bindings Date: Wed, 10 Jun 2015 13:15:44 +0100 Message-Id: <1433938544-18076-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433938505-18006-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1433938505-18006-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@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.46 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. APQ8016 has 4 MI2S which can be configured to different sinks like internal codec/external codec, this connection and various parameters are controlled via 2 iomux registers. Acked-by: Kenneth Westfield Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,apq8016-sbc.txt | 60 ++++++++++++++++++++++ 1 file changed, 60 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..4812936 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,apq8016-sbc.txt @@ -0,0 +1,60 @@ +* 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: + +-link-name : Name of the dai link. +-sound-dai : phandle and port of CPU/CODEC +-capture-dai : phandle and port of CPU/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 { + link-name = "ADV7533"; + cpu { /* QUAT */ + sound-dai = <&lpass MI2S_QUATERNARY>; + }; + codec { + sound-dai = <&adv_bridge 0>; + }; + }; +};