Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1984914pxk; Mon, 14 Sep 2020 01:18:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhZJx2rgXwDooFDCJnyfqcdy3lsXxYVYCyS4/p1zgQna17aCssWCu2yUS3Ru91UQBR0Iiy X-Received: by 2002:a17:906:c1d2:: with SMTP id bw18mr13951942ejb.240.1600071528861; Mon, 14 Sep 2020 01:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600071528; cv=none; d=google.com; s=arc-20160816; b=PGCtS8ltBGERbA3ff9G8A5J1bY7kz+2/Z/KpahJSwfYgKKiL4cnEdEkwb/z0E0BF18 ELMIAvxIrExuAEwNUvFnBYNNof5XerhGehaTtek9b9VtjyhQJvlJDd+wWnfijrRIbxlB p8Ej+lArKaKpiUBwGKo4juh1xqpwhbvFceHRAtguHE6VmPpIgTge7346ToHKE52j+VMe HrMLqBnCARHw8/g5F6l3Ic2kCJsDqaWgiCmp6rd/NwOva6Pu2iZCQhBSaLucN723H6k8 1vJOpmbSDYCnnUIfnyMMF/Ed3SginiRp6cQgATMpg3otGesYmerPBOzI35iAti8qd7qn RXQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KnqrXNdIqeB06mDi8JJrB6E/jpSsANqYANVtbrsc5Qc=; b=MRGorWIm3AJsmbfhLcDl+mNXoz/PTeATNlGSsC7lzEMglY+Bf+1w/sv2Uj4ouBuJnJ PPeDbF5EmBdjkIDe8i5OhSIvrYmrYBaeBbzG5AD8ioSI2shB0vRgu8W+wXzxllzdK/tn QtUiu3SF5ZIKZvoq7a8ZMofynmnCKImoqat7APMZ7RXgM225qPyQhhtGyrIdmJ3vvZUe H1gAi+nOxi7Tr3zQhV9hFFWh6mJetGb8l4sBqFuua21YsU1y0pFtSjRXG/1UpY841HT0 0EHrUx3xPfZlSVTixQar2q7bfauiruP1CU0OCC4Rf45g6/lz1Hwn+Xe9miyA4mTF6+yJ wfuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=J0MnOMM0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu21si6512780ejb.482.2020.09.14.01.18.25; Mon, 14 Sep 2020 01:18:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=J0MnOMM0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726241AbgINIOi (ORCPT + 99 others); Mon, 14 Sep 2020 04:14:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbgINIHL (ORCPT ); Mon, 14 Sep 2020 04:07:11 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9721CC061353 for ; Mon, 14 Sep 2020 01:06:41 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id gf14so4934967pjb.5 for ; Mon, 14 Sep 2020 01:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KnqrXNdIqeB06mDi8JJrB6E/jpSsANqYANVtbrsc5Qc=; b=J0MnOMM0+oNWxBqIp/adCLwtZaFQd3BQ/mtN80x1M5aPY9yYi2OesY32WjM226+E6F n9Snpok+rzMTeiLVxGJ39FSJ2Jgb5EzuL24RKTKT10tVv4EFssD1o3GZxrUzhOHlGTlJ bjeUddagK0M0cM9B+idlMFrOCN759Rx5hG1fY= 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:mime-version:content-transfer-encoding; bh=KnqrXNdIqeB06mDi8JJrB6E/jpSsANqYANVtbrsc5Qc=; b=q0nk+5AiyrrHTEeYdJCGdS8zudfkkWFzXW4zvB4EzxQhmivlQwgAiB+ym+Hs5DL85H zG2a7whqF+aRuiDRV+nor2z908wj9501lrYh3QLMrI7hTnnFHr3txuijsg42x5eOtMPW RBU4bC1fbkTnTSNMaV5u6juES0DvnuVTRSHubvzAE89OIc4wKklnNsXfWEUHVmE4w6MU C6Aj5D7Ux2fBwpyvGOACIRKbAe7YvTy1B2vEXsw4YxKm5OQp5/bVyHVJ/b11RDVi7DBp 8uKWqVLtZb0bgqHfsaGaIe302+atHxLUrWs9gFTabMtDAutcbmZjbhBp4xqcw+gFYRDx i9eA== X-Gm-Message-State: AOAM530r28Zm/fm8bG0QGi3cJW/0B2ioHUqFF3OWRAr6ucYRFV29MEmM ftHel2X2kQitvAnbdPLd9y6G97qc8KYBKuQE X-Received: by 2002:a17:90a:a40d:: with SMTP id y13mr12462703pjp.183.1600070800830; Mon, 14 Sep 2020 01:06:40 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:de4a:3eff:fe7d:d39c]) by smtp.gmail.com with ESMTPSA id 141sm9442662pfb.50.2020.09.14.01.06.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Sep 2020 01:06:40 -0700 (PDT) From: Cheng-Yi Chiang To: linux-kernel@vger.kernel.org Cc: Mark Brown , Taniya Das , Rohit kumar , Banajit Goswami , Patrick Lai , Andy Gross , Bjorn Andersson , Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , Srini Kandagatla , Stephan Gerhold , Matthias Brugger , Heiko Stuebner , Srinivasa Rao , dianders@chromium.org, dgreid@chromium.org, tzungbi@chromium.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, Cheng-Yi Chiang Subject: [PATCH v11 2/3] ASoC: qcom: dt-bindings: Add sc7180 machine bindings Date: Mon, 14 Sep 2020 16:06:18 +0800 Message-Id: <20200914080619.4178587-3-cychiang@chromium.org> X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-goog In-Reply-To: <20200914080619.4178587-1-cychiang@chromium.org> References: <20200914080619.4178587-1-cychiang@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 sc7180 sound card. Signed-off-by: Cheng-Yi Chiang --- .../bindings/sound/qcom,sc7180.yaml | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,sc7180.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml b/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml new file mode 100644 index 000000000000..b77311bb5190 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml @@ -0,0 +1,130 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,sc7180.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies Inc. SC7180 ASoC sound card driver + +maintainers: + - Rohit kumar + - Cheng-Yi Chiang + +description: + This binding describes the SC7180 sound card which uses LPASS for audio. + +properties: + compatible: + const: qcom,sc7180-sndcard-rt5682-m98357-1mic + + audio-routing: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: + 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. + + model: + $ref: /schemas/types.yaml#/definitions/string + description: User specified audio sound card name + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^dai-link(@[0-9])?$": + description: + Each subnode represents a dai link. Subnodes of each dai links would be + cpu/codec dais. + + type: object + + properties: + link-name: + description: Indicates dai-link name and PCM stream name. + $ref: /schemas/types.yaml#/definitions/string + maxItems: 1 + + reg: + description: dai link address. + + cpu: + description: Holds subnode which indicates cpu dai. + type: object + properties: + sound-dai: true + + codec: + description: Holds subnode which indicates codec dai. + type: object + properties: + sound-dai: true + + required: + - link-name + - cpu + - codec + + additionalProperties: false + +required: + - compatible + - model + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + + - | + sound { + compatible = "qcom,sc7180-sndcard-rt5682-m98357-1mic"; + model = "sc7180-snd-card"; + + audio-routing = + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + + #address-cells = <1>; + #size-cells = <0>; + + dai-link@0 { + link-name = "MultiMedia0"; + reg = <0>; + cpu { + sound-dai = <&lpass_cpu 0>; + }; + + codec { + sound-dai = <&alc5682 0>; + }; + }; + + dai-link@1 { + link-name = "MultiMedia1"; + reg = <1>; + cpu { + sound-dai = <&lpass_cpu 1>; + }; + + codec { + sound-dai = <&max98357a>; + }; + }; + + dai-link@2 { + link-name = "MultiMedia2"; + reg = <2>; + cpu { + sound-dai = <&lpass_hdmi 0>; + }; + + codec { + sound-dai = <&msm_dp>; + }; + }; + }; -- 2.28.0.618.gf4bc123cb7-goog