From patchwork Wed May 13 12:03:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 48440 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 53062214A1 for ; Wed, 13 May 2015 12:03:53 +0000 (UTC) Received: by wixv7 with SMTP id v7sf10635912wix.0 for ; Wed, 13 May 2015 05:03:52 -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=bv1lPVEYXUJS8TaB4FYt2NcLeKXZ1vlvt7bcDQPT8tU=; b=SK8iH79thYabaYtU4d5LjAZciqklBXbkFhaHWOPnIu43+3QwyvPrxIY3uZLy6f0307 G9vsZQpA+TfNngQcvXzAu8JbYew3GGiY8/gx2fzsOI+/6Pc6EuBONUEMtKQteAviX5LG /UV0XfkP3EtXCoOxbVFhCjasK2hVgYMUMdFk+oGcSZH21/abnVMmwj7brHNjn/ZMFJX4 T1Xo+4s9hGMhkC1p6k57UyAQmz/mBUz0R2SUjEfnq3cMEsqgUtFUZ5kFoRHrLUi5zBhr jelRiR6Wi0Zzg7ZHxOozNJkhP7w3P7tav1btOhlmVGrkJfVqW4K8cjbMQujvp5X7zSAM m0bg== X-Gm-Message-State: ALoCoQlg0xknB8u2L2g75X/ncZ2DcufdB7S4n3EvphUSltIavbBT3/evGKZmPL1ae9G+Zlbe5LNG X-Received: by 10.180.88.226 with SMTP id bj2mr14509482wib.7.1431518632588; Wed, 13 May 2015 05:03:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.100 with SMTP id z4ls169239laz.57.gmail; Wed, 13 May 2015 05:03:52 -0700 (PDT) X-Received: by 10.112.198.74 with SMTP id ja10mr15895685lbc.19.1431518632421; Wed, 13 May 2015 05:03:52 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id o4si12239275laj.143.2015.05.13.05.03.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 May 2015 05:03:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbcga7 with SMTP id ga7so27760443lbc.1 for ; Wed, 13 May 2015 05:03:52 -0700 (PDT) X-Received: by 10.112.150.100 with SMTP id uh4mr2143154lbb.112.1431518632141; Wed, 13 May 2015 05:03:52 -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 hn6csp487962lbb; Wed, 13 May 2015 05:03:50 -0700 (PDT) X-Received: by 10.68.110.3 with SMTP id hw3mr36620490pbb.128.1431518624455; Wed, 13 May 2015 05:03:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sy7si11771075pbc.208.2015.05.13.05.03.43; Wed, 13 May 2015 05:03:44 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965121AbbEMMDi (ORCPT + 7 others); Wed, 13 May 2015 08:03:38 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:37688 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965066AbbEMMDg (ORCPT ); Wed, 13 May 2015 08:03:36 -0400 Received: by widdi4 with SMTP id di4so52768096wid.0 for ; Wed, 13 May 2015 05:03:35 -0700 (PDT) X-Received: by 10.180.210.171 with SMTP id mv11mr37875229wic.61.1431518614958; Wed, 13 May 2015 05:03:34 -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 gj7sm7751599wib.4.2015.05.13.05.03.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 May 2015 05:03:34 -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 v1 13/13] ASoC: qcom: document apq8016 sbc machine driver bindings Date: Wed, 13 May 2015 13:03:31 +0100 Message-Id: <1431518611-7836-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431518302-7139-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1431518302-7139-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.217.172 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. 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>; + }; + }; +};