From patchwork Tue Jun 9 12:59:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 49653 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DCFF3245D4 for ; Tue, 9 Jun 2015 12:59:45 +0000 (UTC) Received: by wgla2 with SMTP id a2sf4372893wgl.1 for ; Tue, 09 Jun 2015 05:59:45 -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=lV6Dy9S+0phjhYCAQNyH3aTeEAz15hLt8zgBT9QN5tA=; b=mZaGeX5dmkSAIJiYes6VgsGgGcFAH33XdyJ5JpBjyo1Md+d76hMz8XvvkdeqHm22GU CLqtBPyHxlMWfDq36+ZQXl2oxoOEiv+VXMUhLehwabDVj1vFN4WOQVclvpBN6N4Nmd4Q S1RE+Nxj0GeTJ+6QHJDe+tWufW2XX4oqU48wbjnjRso+DatnlZAu8SuEnokRU8cCgtdx Bp/SLedbQhLMWdP2K9vdfOVOCibgwfnm9vw6Xj4l0cobU0d1hEJ+W+fw3VHPhUYTa90z 4tHendMq6JxoEtKeq/fAYanjK8q+thlh/M9Z93dFAptOpFmSGHfF8AEosvbEjfOY+lT+ AtOw== X-Gm-Message-State: ALoCoQkJE4HjzlrqYZyhVRPkUaeoL3X4Aaa1jCnDXEctZYgwsksikSM3Qqqztyay+sHoHZJK/HEz X-Received: by 10.180.19.72 with SMTP id c8mr17196840wie.2.1433854785226; Tue, 09 Jun 2015 05:59:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.115.161 with SMTP id jp1ls60265lab.96.gmail; Tue, 09 Jun 2015 05:59:45 -0700 (PDT) X-Received: by 10.152.27.1 with SMTP id p1mr21957967lag.112.1433854785070; Tue, 09 Jun 2015 05:59:45 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id ut16si5714954lbb.25.2015.06.09.05.59.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2015 05:59:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by labpy14 with SMTP id py14so11654290lab.0 for ; Tue, 09 Jun 2015 05:59:45 -0700 (PDT) X-Received: by 10.152.7.7 with SMTP id f7mr22705196laa.106.1433854784972; Tue, 09 Jun 2015 05:59:44 -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 hn6csp2591388lbb; Tue, 9 Jun 2015 05:59:43 -0700 (PDT) X-Received: by 10.67.2.98 with SMTP id bn2mr39353043pad.83.1433854782906; Tue, 09 Jun 2015 05:59:42 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dv10si8840636pdb.202.2015.06.09.05.59.42; Tue, 09 Jun 2015 05:59:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 S932319AbbFIM7k (ORCPT + 7 others); Tue, 9 Jun 2015 08:59:40 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:35983 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753651AbbFIM7f (ORCPT ); Tue, 9 Jun 2015 08:59:35 -0400 Received: by wigg3 with SMTP id g3so16246614wig.1 for ; Tue, 09 Jun 2015 05:59:33 -0700 (PDT) X-Received: by 10.180.76.208 with SMTP id m16mr8213374wiw.39.1433854773590; Tue, 09 Jun 2015 05:59:33 -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 lz17sm2734096wic.24.2015.06.09.05.59.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Jun 2015 05:59:32 -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 v5 1/2] ASoC: qcom: document apq8016 sbc machine driver bindings Date: Tue, 9 Jun 2015 13:59:29 +0100 Message-Id: <1433854769-23807-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433854702-23654-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1433854702-23654-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.215.44 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 | 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>; + }; + }; +};