From patchwork Fri May 18 12:56:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 136316 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1208223lji; Fri, 18 May 2018 06:00:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZohmzRMg6j3cTquMXtFEn7BsFaGaRPu/ZdP7u505fpWLZPB7oB7A5a0yPN1YvM+GUA8jFqt X-Received: by 2002:a17:902:7c94:: with SMTP id y20-v6mr9513124pll.202.1526648443035; Fri, 18 May 2018 06:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526648443; cv=none; d=google.com; s=arc-20160816; b=Vuky06jjDx1k4RdJyrklNcL6TftqOT1DxLPvMyahCCrrmrWMIDqKI8tIAMqbEmO3m5 47qH88IJNCPhN4US4sWwIyiFz8cmWpB6cJ1gYOasqDgacaoF4u0sA+ppyWXyUas3Yfj5 gDtYmIKAOUDa9az9VghP5cKQK7Rp2RKsglvuk28DH3VKBfBmfN2sGSsbDVjYpzWCWg0X QTrVQ+mINqdcGPcIXERdy5KjRH3dTqj1vZ1reXV4lymQ/0bpuRIbO4evC6IrQZ6DO7wq kaZ7VAcnCiWOSGEIKAEyHR+E+KFEN1momhBO4JMeUxI4b5Xoo1d7K4pPl0UoKqozKGOa mLsw== 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=imnKv9jDQU2mTARRpMRZZCzAYAHZVTLw5zVbbDhLByk=; b=s19Z3AaosTWqaQhLhTEZ6G5U5ErYRzFeCERADtz+cwzTuzVFDlwkyYtvB57CaywYcB kYRs0sL2RQwOv073h9uQh2wEirupY8dw2gF4dHePTJZz1fUsb8dPnQscPa6ZouuSoq5t kanim2ZZE5HxzGViXYnErt9j9QtIGsRd8gZD2JS1s4dZcqbH2xWKela7E0mTgPGEEW8J ewY7zMJTmlpBl6wm52gdPY7VAWPZL1Me7lM79EUPe6SrxbE8b1wHcmjD0uE4i/qoMJdC T+4RwXzOC8iQSf4eySJf/Hu/5e3mUIZVbL/rbpU6QPQybfxfzoKz0ZvcxFKBeV++fdtC IIOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TUX4TfmM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 d24-v6si7376669plr.302.2018.05.18.06.00.42; Fri, 18 May 2018 06:00:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TUX4TfmM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752576AbeERNAl (ORCPT + 29 others); Fri, 18 May 2018 09:00:41 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:37044 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752240AbeERM64 (ORCPT ); Fri, 18 May 2018 08:58:56 -0400 Received: by mail-wm0-f66.google.com with SMTP id l1-v6so15053990wmb.2 for ; Fri, 18 May 2018 05:58:55 -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=TUX4TfmM7U9yE5cDxVYPJ9h0pcLW7T+wmvZ7/N7DQJ9HmSIdGaJThK/8s+e+60zu0C Mt27M3enG5cLGK9v3XCQ7774FcUMYY9O36ftMEVQPvV/z3yhiZHuDw6U2WZXGYMz89UX cHq83mLt0Nc+qDbmRmqx4VuPDRQYGULed4izw= 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=OvGEYZ5T1nk8ynWczAGt+LR4VqscoHWW3vGJOw26/OapMgZhEVokCKjK8ArNohgdx3 iGPfBo2UhEfsJ464gCJ+oQIrtmvFATia8k+1jsXgBjwatAF4/taqJ84ZO1TM2FOy3Tiz HkWYJuZnXZVqQ1iwjsaklDEkospfUjxScWGrQ1GZT/vC7+Vb5m43JHhT/bLJZRIjclIc TbZtotfckMCUHgd1qUqrR44lV2eyZKfzqjrXFPZglj9gOzKcyhADbjeZ9lVBomjFh4n2 dnBbc39DpU62vGJodlvqkNuuyAtK7AHYNNCuheALhOKio6M3bX2301DhBCYM8UJa3K9N T2Sw== X-Gm-Message-State: ALKqPwfymr1DVVllUxSORkj8yvspTP55eSOTk297zYE7h2dxcXNmDMJx /roYze7jAIvitySNYcUA4jxjmQ== X-Received: by 2002:a1c:e14:: with SMTP id 20-v6mr4832468wmo.85.1526648334503; Fri, 18 May 2018 05:58:54 -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 x7-v6sm7868034wrm.35.2018.05.18.05.58.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 May 2018 05:58:54 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org Cc: robh+dt@kernel.org, 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 v9 14/15] ASoC: qdsp6: dt-bindings: Add apq8096 machine bindings Date: Fri, 18 May 2018 13:56:09 +0100 Message-Id: <20180518125610.26200-15-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180518125610.26200-1-srinivas.kandagatla@linaro.org> References: <20180518125610.26200-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 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>; + }; + }; +};