From patchwork Wed May 9 12:56:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 135270 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5612206lji; Wed, 9 May 2018 06:02:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpmuGLyMdi9dCR/t5oHfUDu/wFO0S15znQKCDklzhNPqPsn7k7MermEeSEQ1dYsq/5gq4W/ X-Received: by 2002:a17:902:8a82:: with SMTP id p2-v6mr11059240plo.244.1525870950428; Wed, 09 May 2018 06:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525870950; cv=none; d=google.com; s=arc-20160816; b=K5cuA/go+HQ8f1e4Qg7sVPdwdYwP391+d+b+suQGk1rSYyHdNEG0ap3IDc36+vMVLo I6h8xyLwV5+fqtwAk6Pr+2qgC1sKKRye3m6iDcffaOC7cfLkt662czfUf56H4D+LR5JV Um4MwcUyWWcDcsEdyfl5DWUY8SRs3dSTdpI2ttc7ImOv34SFxqAV3bNNNMaNNcG4Babn x5llbwDVWKtJT1IVBeXwCNFgsWumHRo6CByYYxAkTIthNTEdOl3h3aKldYQvoYto+8Mb zLAX/gyXektOCcPN5SgvhDJ8grMS2ETc1bJt8iBSWGEBlhOEMiRA3yQC2X/Bj6n4t0Bq Q0sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=4JyXIN8YjjaWdlhevmHWIUJnqXtyYIDWQUApNPLg7us=; b=SXFQqn//TynCCeCcswpl49ljWecLo/DWbkuJtfi0Q97gV+zMrvxNhjcqIb5GpVNfXI y9hqneRDRCVQfUzFHj0flEiwyC+AQTDGVA8uCMR7dLQobgDV5uUCMRqtxy2r7OuQE+vD 8WYgKbL/CBzvvOA2AbUpMZI7XEUY3gvmAXTArIpZzyTzLjZYnoAGgNz5tD6h320CLQmB vNunzoxNjIFia3F3iWMI7GHSMVHS9XD0aWqf3CejpHIuVRauEaTyfxXIwwg6lnp3sLID d9iMqTNATCRkHmpx1N/UL2UELeck3A7qJo7i6rz5pyv00QcuRtPhh865kfd99hXEZkCD sfkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cqF/H6X8; 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) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12-v6si21419551pgw.578.2018.05.09.06.02.30; Wed, 09 May 2018 06:02:30 -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; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cqF/H6X8; 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) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935164AbeEINCP (ORCPT + 12 others); Wed, 9 May 2018 09:02:15 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:44566 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935162AbeEINBM (ORCPT ); Wed, 9 May 2018 09:01:12 -0400 Received: by mail-wr0-f195.google.com with SMTP id y15-v6so23846788wrg.11 for ; Wed, 09 May 2018 06:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=imnKv9jDQU2mTARRpMRZZCzAYAHZVTLw5zVbbDhLByk=; b=cqF/H6X8txBCUoxRkYkQJXjmPTf6G6tMY9MsNHSh9MBV5eD5xmIvocfD6gb36yWp// cRLAmgrinC+z/Xy1+ZkW3rGjb+LkFm0HFE3Pq9kFSo2llInYCj64LBM0RuVS3JNMPMA5 P6A6IE9WWAITcNryCBeNpU5MjRK3xg+JDIlpg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=imnKv9jDQU2mTARRpMRZZCzAYAHZVTLw5zVbbDhLByk=; b=m2geA/cN02ErYB2EsNufCkXVk95qEeiFxA/GSjYxcSiJJxuJuuoaeduqvYRiTtzDRI XBnEOi7cUvgkQPTLKIZ0clfkZXfCRPKmnEc//9PtRDCbCXzDFMr1Gizf8TM0/4yS4HYN JvUSscFFvvQJb43tc2pVMLFlUcUSKu2Q47YtzQZmVZWscgGO4vUvu/z7WnhQ0l0Mu/np fcR6iLQxX1o6owfCwwlSHl/0sdhq4FNIlvMv5++VCZX8K1znv4XOQcOha2g5bee3PN8j K+0G6aktEzFT9xdddwU7UokxvVbvCYsE9C5Ts3UdBD8JFWe1FvKfKz3l8HahQe5h8dby eObg== X-Gm-Message-State: ALQs6tAqEakGhzql2qEnCDumsNft9mE4cFHgaoNcFE6tRTb1MWR9p89q GjVsOqe4q4jnrIqtcNBM8pmQlw== X-Received: by 2002:adf:e749:: with SMTP id c9-v6mr38692832wrn.203.1525870871617; Wed, 09 May 2018 06:01:11 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id q2-v6sm29422963wrj.57.2018.05.09.06.01.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 06:01:11 -0700 (PDT) From: Srinivas Kandagatla To: andy.gross@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: gregkh@linuxfoundation.org, david.brown@linaro.org, mark.rutland@arm.com, lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rohkumar@qti.qualcomm.com, spatakok@qti.qualcomm.com, Srinivas Kandagatla Subject: [PATCH v8 22/24] ASoC: qdsp6: dt-bindings: Add apq8096 machine bindings Date: Wed, 9 May 2018 13:56:33 +0100 Message-Id: <20180509125635.5653-23-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180509125635.5653-1-srinivas.kandagatla@linaro.org> References: <20180509125635.5653-1-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add devicetree bindings documentation file for Qualcomm apq8096 sound card. Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring Reviewed-by: Banajit Goswami --- .../devicetree/bindings/sound/qcom,apq8096.txt | 109 +++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,apq8096.txt -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/sound/qcom,apq8096.txt b/Documentation/devicetree/bindings/sound/qcom,apq8096.txt new file mode 100644 index 000000000000..aa54e49fc8a2 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,apq8096.txt @@ -0,0 +1,109 @@ +* Qualcomm Technologies APQ8096 ASoC sound card driver + +This binding describes the APQ8096 sound card, which uses qdsp for audio. + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,apq8096-sndcard" + +- qcom,audio-routing: + Usage: Optional + Value type: + Definition: A list of the connections between audio components. + Each entry is a pair of strings, the first being the + connection's sink, the second being the connection's + source. Valid names could be power supplies, MicBias + of codec and the jacks on the board: + Valid names include: + + Board Connectors: + "Headphone Left" + "Headphone Right" + "Earphone" + "Line Out1" + "Line Out2" + "Line Out3" + "Line Out4" + "Analog Mic1" + "Analog Mic2" + "Analog Mic3" + "Analog Mic4" + "Analog Mic5" + "Analog Mic6" + "Digital Mic2" + "Digital Mic3" + + Audio pins and MicBias on WCD9335 Codec: + "MIC_BIAS1 + "MIC_BIAS2" + "MIC_BIAS3" + "MIC_BIAS4" + "AMIC1" + "AMIC2" + "AMIC3" + "AMIC4" + "AMIC5" + "AMIC6" + "AMIC6" + "DMIC1" + "DMIC2" + "DMIC3" += dailinks +Each subnode of sndcard represents either a dailink, and subnodes of each +dailinks would be cpu/codec/platform dais. + +- link-name: + Usage: required + Value type: + Definition: User friendly name for dai link + += CPU, PLATFORM, CODEC dais subnodes +- cpu: + Usage: required + Value type: + Definition: cpu dai sub-node + +- codec: + Usage: Optional + Value type: + Definition: codec dai sub-node + +- platform: + Usage: Optional + Value type: + Definition: platform dai sub-node + +- sound-dai: + Usage: required + Value type: + Definition: dai phandle/s and port of CPU/CODEC/PLATFORM node. + +Example: + +audio { + compatible = "qcom,apq8096-sndcard"; + qcom,model = "DB820c"; + + mm1-dai-link { + link-name = "MultiMedia1"; + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + hdmi-dai-link { + link-name = "HDMI Playback"; + cpu { + sound-dai = <&q6afe HDMI_RX>; + }; + + platform { + sound-dai = <&q6adm>; + }; + + codec { + sound-dai = <&hdmi 0>; + }; + }; +};