From patchwork Thu Apr 30 17:18:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 47872 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D6EF020553 for ; Thu, 30 Apr 2015 17:18:47 +0000 (UTC) Received: by wgin8 with SMTP id n8sf17046870wgi.0 for ; Thu, 30 Apr 2015 10:18:47 -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=ZREvw15Yr9qpZpO7rOeBILaAXF+TFx+Zi7qS8+08ZHo=; b=lkgHC6cCX2zL55aekfPbuG7aazMDcQ2Hv+Gewj+JacWxCfeuhiCcpuFlsZNoPGi9+D iW/+8q3jPh7Dw3y6v9u2I6xLjYt2Va4XmiWgQ1Pq5HtfG5+YsQkkkHKbWnN8TSbndx/W +dPnjwtiq0FbI0Z34PnBDTbw9Dqkr9bBzPSQ5eSCaqo0m1ZauckQPDUJKYYdd1lvcSzp DecLL4gdMIKUXIf5E+pTFlfXesVcm3Smf7P59BfcsJuksmQvQoRW7xJaSqtJpeZq3ouj rnfd5tHK4gcGUVyKzsXkoiABcX+lKFGMYV7ZcmgNjpyYgHfaKBex+4dvAPBOiN1zpqrW dsog== X-Gm-Message-State: ALoCoQmmMo95wxdwhKCceJqfDGx/mdkfIwQWyY5fJCmlsA/otBLENJz7GFAToAx2ctIuZyFarkZL X-Received: by 10.112.200.166 with SMTP id jt6mr3050627lbc.17.1430414327056; Thu, 30 Apr 2015 10:18:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.6.35 with SMTP id cr3ls350100lad.47.gmail; Thu, 30 Apr 2015 10:18:46 -0700 (PDT) X-Received: by 10.152.121.6 with SMTP id lg6mr4874263lab.42.1430414326887; Thu, 30 Apr 2015 10:18:46 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id lj3si2195572lab.101.2015.04.30.10.18.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 10:18:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lagv1 with SMTP id v1so49426500lag.3 for ; Thu, 30 Apr 2015 10:18:46 -0700 (PDT) X-Received: by 10.152.2.227 with SMTP id 3mr4728164lax.73.1430414326766; Thu, 30 Apr 2015 10:18:46 -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.67.65 with SMTP id l1csp3243333lbt; Thu, 30 Apr 2015 10:18:45 -0700 (PDT) X-Received: by 10.68.218.9 with SMTP id pc9mr10189716pbc.2.1430414325000; Thu, 30 Apr 2015 10:18:45 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oz3si4422456pac.22.2015.04.30.10.18.43; Thu, 30 Apr 2015 10:18:44 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S1752732AbbD3RSg (ORCPT + 28 others); Thu, 30 Apr 2015 13:18:36 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:36479 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752715AbbD3RSb (ORCPT ); Thu, 30 Apr 2015 13:18:31 -0400 Received: by wgen6 with SMTP id n6so69785551wge.3 for ; Thu, 30 Apr 2015 10:18:30 -0700 (PDT) X-Received: by 10.180.106.131 with SMTP id gu3mr7460784wib.16.1430414310653; Thu, 30 Apr 2015 10:18:30 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-98-219-188.as13285.net. [2.98.219.188]) by mx.google.com with ESMTPSA id u3sm4139388wjq.36.2015.04.30.10.18.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Apr 2015 10:18:29 -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: [RFC PATCH 14/14] ASoC: qcom: document apq8016 machine driver bindings Date: Thu, 30 Apr 2015 18:18:26 +0100 Message-Id: <1430414306-11469-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1430414148-10869-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1430414148-10869-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.50 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 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 --- .../bindings/sound/qcom,apq8016-machine.txt | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,apq8016-machine.txt diff --git a/Documentation/devicetree/bindings/sound/qcom,apq8016-machine.txt b/Documentation/devicetree/bindings/sound/qcom,apq8016-machine.txt new file mode 100644 index 0000000..de697b8 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,apq8016-machine.txt @@ -0,0 +1,61 @@ +* Qualcomm Technologies APQ8016 ASoC machine driver + +This node models the Qualcomm Technologies APQ8016 ASoC machine driver + +Required properties: + +- compatible : "qcom,apq8016-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-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>; + }; + }; +};