From patchwork Tue Feb 13 16:58:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 128265 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4457930ljc; Tue, 13 Feb 2018 09:02:05 -0800 (PST) X-Google-Smtp-Source: AH8x225wyfhlW6lrcTkYirg6z5MDBZNchbeCn39Ed4rPNS+z8EypzbHAQoAY3JrjMpB0HDwsxKLe X-Received: by 10.99.105.74 with SMTP id e71mr1525699pgc.342.1518541324903; Tue, 13 Feb 2018 09:02:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518541324; cv=none; d=google.com; s=arc-20160816; b=BnDvFezAuu+p2O5Et/tgMAL0f3rIZni3bBS4G83s01+n4lzZBbpCdqO+91UEXQHwoL +BjsNzHVQgsabcBD4MB+0YSt4RZ7UNVXrIVgYGg7dO2BLR2cdtNpDxtISJNdpRU2NX6u /EHa74JQUiJgC/DMgnJR26wcQrJ44Wn9fybnKr+wM2XS9cNByPeX04tLqGVU2wnlqUna 8elXTKmqSOKPVCHFt9lYMxkDCJHwpL0eBUOwiO4a3LrnsGMRFiHoC+fGZpdy6rA+PWbU Fhj9i3G6bEpV2zmP7bsgB39DwEABCwMk31GEpIyh3lVBat6jfRU92Ua5zfkgQCqbgs7t dcMA== 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=8aAeQGSakBMD1Yfzda5ic+gh1tQCzFgU1wdmbqROgPY=; b=Shpb5xlvNDvwDiPrVwK/qRIjzfCT+9vWiNTYEPnt3NVaVkhkpz/5afxlToDq/spOIB wIJHsKakzdCwx4mwe7Z6DFdYwJfrjgU1Up2Ulb+81zlAw4dd/Iay36AsbtCUkBO4WwSc KRqT3tYQCbVljLWd5OeGNt3MDRvnXL1kGpO6OAAh3wSKxpGinYtmexvoA4f9NWi0WHUz 9cW7r8GtANs0Ugu/cdXXhMslyW9MolS21Jhg3050LZ6Pc1NbbbaP90p1DymXsf4KhaCi 2HF/hk7B4RgMWST2taB1E6tn//RzxAywXIPUX8vjqrk9DXGDTvrEIUu9fPeZ8lKlO/DL 2OtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zz8F9f1W; 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 bc11-v6si7528083plb.688.2018.02.13.09.02.04; Tue, 13 Feb 2018 09:02:04 -0800 (PST) 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=Zz8F9f1W; 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 S965545AbeBMRCA (ORCPT + 28 others); Tue, 13 Feb 2018 12:02:00 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:55589 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965521AbeBMRBq (ORCPT ); Tue, 13 Feb 2018 12:01:46 -0500 Received: by mail-wm0-f67.google.com with SMTP id a84so6052161wmi.5 for ; Tue, 13 Feb 2018 09:01:46 -0800 (PST) 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=8aAeQGSakBMD1Yfzda5ic+gh1tQCzFgU1wdmbqROgPY=; b=Zz8F9f1Waq/kPBv8PO/qtPMIQnwUko0FKkLY/8q8lmLl++l/WrPbVHhqDbXRNpEUpP whjF6fMCDvrmsGUIo7sa2XcMW1MdSoR+2B5DpUgBDg3z3Fs+qgkvgITgYiTmjndKQVCj q1Yg4leZNXCSBcUIndfzd4PSEw5a/m0ohHuyI= 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=8aAeQGSakBMD1Yfzda5ic+gh1tQCzFgU1wdmbqROgPY=; b=F/owpJDVRlqK/iTPwTAFK15o3T5/lKCVAfWq1/GWLmDHQhbqvx8E/NFD/q8G3//nw3 REuuilcbdbGJBny5TqMu40gRia6k/1/t6VbOC3APCBDB9RlkjBt+dTtw1aFmI7kEBXch YzjKn5RvP1x55/gga5HjA0p1OrOHK9D25vyUXMoKH9v+Bxp9/rmuLnxEIqZ8C7Zjmh1x 8sooQttO4J68b7W5PbOESlqroiGylAwTN5XbYvm1cD4ifP8I8W5llKk/WSb/1110jdOU Mr7SiOKCDUPvtQNLK/epnRvshzvvw8wIzFfoHdD/SYsWlNnJqfyu31P2sJJa0MHTjuBD Kg8Q== X-Gm-Message-State: APf1xPC8PJ8CJYTgEa8I3rAgHA+YtIcmtk24ICtIYEMK7t3j5SPnRasP 1jr7Np4gAGkpLIiksTAOipcOdQ== X-Received: by 10.28.249.22 with SMTP id x22mr1754400wmh.135.1518541305723; Tue, 13 Feb 2018 09:01:45 -0800 (PST) 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 y145sm7432723wmd.43.2018.02.13.09.01.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Feb 2018 09:01:45 -0800 (PST) From: srinivas.kandagatla@linaro.org To: andy.gross@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org Cc: david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, lgirdwood@gmail.com, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, linux-soc@vger.kernel.org, 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 v3 23/25] dt-bindings: sound: qcom: Add devicetree bindings for apq8096 Date: Tue, 13 Feb 2018 16:58:35 +0000 Message-Id: <20180213165837.1620-24-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180213165837.1620-1-srinivas.kandagatla@linaro.org> References: <20180213165837.1620-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Srinivas Kandagatla Add devicetree bindings documentation file for Qualcomm apq8096 sound card. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,apq8096.txt | 89 ++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,apq8096.txt -- 2.15.1 diff --git a/Documentation/devicetree/bindings/sound/qcom,apq8096.txt b/Documentation/devicetree/bindings/sound/qcom,apq8096.txt new file mode 100644 index 000000000000..58cd506477c0 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,apq8096.txt @@ -0,0 +1,89 @@ +* 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: + += FRONTEND and BACKEND dailinks +Each subnode of sndcard represents either frontend or backend dailink, +and subnodes of each backend/frontend dailinks would be +cpu/codec/platform dais. + +- link-name: + Usage: required + Value type: + Definition: User friendly name for dai link + +- is-fe: + Usage: optional + Value type: + Definition: present if the dailink is frontend + + += CPU, PLATFORM, CODEC dais subnodes +- cpu: + Usage: required + Value type: + Definition: cpu dai sub-node + +- codec: + Usage: required + Value type: + Definition: codec dai sub-node + +- platform: + Usage: opional + 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"; + qcom,audio-routing = + "RX_BIAS", "MCLK"; + + fedai1 { + is-fe; + link-name = "MultiMedia1 Playback"; + cpu { + sound-dai = <&q6asm MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + platform { + sound-dai = <&q6asm MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + bedai1 { + link-name = "HDMI Playback"; + cpu { + sound-dai = <&q6afe AFE_PORT_HDMI_RX>; + }; + + platform { + sound-dai = <&q6adm>; + }; + + codec { + sound-dai = <&hdmi 0>; + }; + }; +};