Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2804930pxa; Mon, 17 Aug 2020 20:54:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGMSGGs5/CHwL6Vi+3ecky0oJup5tyWUAB8dRmPHJ81n6lZYqHoLhf9LKnZL7EQA4XM3AV X-Received: by 2002:a17:906:2506:: with SMTP id i6mr17691310ejb.72.1597722865244; Mon, 17 Aug 2020 20:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597722865; cv=none; d=google.com; s=arc-20160816; b=l44vCvLcQH4zfDusnEEgoYysmUdVm4adE2EmENPE5DUSRT6ySsvlexl7pmKSnmexcr y4wr9XWApvYPEklVHPON+y5fgTxFOYa8SMoo+V6bs671jFdoZsdxl3KxjX1toWCi/Tt3 T519pWi3+NNdmS6NDQsVw3ZYTayTEYed2bcUe0sASlGv1VrMhCVovxtA8FHPsbY3G0Gy NRKypoAbWmd3Zj3+1ULx9MnD43CuH3UuYo62zfP/USVLHiR9cOkB8NE3iVTpPUMdKaEj JzoH1y6LOEFk22iAfnVJYtsV0PMpN5WP75Zaay/eOeJL4CFzW6TGc/blf7W+oJRyc9mr jD2w== 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=uQB89k74kDt35ZyGNSfBWwRkBKc1AYzsw/gOQgAPLK4=; b=NUw2gh7rD4vhF1zWgM1BHEbMuGZkyZMShtVOFQ1DmJR3bJ5D1xq9R6h6U7Ct5uLmzX G6B4/JxwFEcvmNrURsJHZD7URjKRC+pEhg6L/9vg7Sy6wLV+P6ncCzgoSWHPdkjvYfDS T2o56qfcbyhW8LhucM/VJ+F9FWowQ5tdgQYYhP9DKBu46mdc3lc7gqlpBASXJs8LVV7c pOftQNxeoxtMOiI5Fb/sppjkLX1ZX38guaN6BOO3RVwlq1yKRKzE6VOhi9r0dcU3xE6K CQRJmnb+jPWwugg9bmzmbnRVhBxg+ypaQJkT9+mH6fgy92IIpL3eaxMv/kTRnf1gXDnd 6YOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mfwGYaO1; 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 a22si11556523ejj.163.2020.08.17.20.54.01; Mon, 17 Aug 2020 20:54:25 -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=mfwGYaO1; 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 S1726696AbgHRDuu (ORCPT + 99 others); Mon, 17 Aug 2020 23:50:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbgHRDus (ORCPT ); Mon, 17 Aug 2020 23:50:48 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C66DFC061343 for ; Mon, 17 Aug 2020 20:50:47 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id f5so8570356plr.9 for ; Mon, 17 Aug 2020 20:50:47 -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=uQB89k74kDt35ZyGNSfBWwRkBKc1AYzsw/gOQgAPLK4=; b=mfwGYaO1HhUnhYx3Rfk07dxavCo+ZuVCmFx3c8xhgv7Hah8kb7Ygw8d9z22SPkg7dn GmzfM//2nJS3t0I5EO6nt2FWzqaueh6+5vRypaY4mVHAE/mQlbNZN6U9TF3BbY0fwAyr 4EM78/cf+HWCqNzBHnqki91Iuvb083GyN65ps= 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=uQB89k74kDt35ZyGNSfBWwRkBKc1AYzsw/gOQgAPLK4=; b=EN6uwFMBZjLjuLPnsq9pzbXc2O5Vfn2L4GAjmw+HOvx3mWciFE2RGoNq3kV9gdyNuu RzktvqgyvUYvGwVWfFdwQ548rAp0gs0E7ssav4BS4SEEL3Sw3Q2kCCwYKrAg1pPuy9a+ KV3m4FVbwHjYfp4WxUlVh04qrZqwtxi7sLYwfzJ/IJAy46EnVzDv0VRyv+Cuxfk1Vp2B sMzI3OEDCRTRAF7QJzj2wf+7KIpnTetULeA5jHIsvPJGZrwoafDfNDJnQkUJX+f7Xf/f Mi+14qGM8FdSb5A37VWD5ft4jUWcVUZ7dwBRe1gKInMUj8B/HpSEhOdWAdqK6ShZM7SB ClEQ== X-Gm-Message-State: AOAM531Y944n9emIP7avrPhVNFFhjcNFss/NtWE1uImt+qDKyKvJObHl QyP/81+t31V4UDQUHSwRgShOo3nERj/SWvhh X-Received: by 2002:a17:90b:4c03:: with SMTP id na3mr15426216pjb.29.1597722646103; Mon, 17 Aug 2020 20:50:46 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:de4a:3eff:fe7d:d39c]) by smtp.gmail.com with ESMTPSA id b15sm21186940pje.52.2020.08.17.20.50.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Aug 2020 20:50:45 -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 , 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, Cheng-Yi Chiang Subject: [PATCH v5 1/2] ASoC: qcom: dt-bindings: Add sc7180 machine bindings Date: Tue, 18 Aug 2020 11:50:27 +0800 Message-Id: <20200818035028.2265197-2-cychiang@chromium.org> X-Mailer: git-send-email 2.28.0.220.ged08abb693-goog In-Reply-To: <20200818035028.2265197-1-cychiang@chromium.org> References: <20200818035028.2265197-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 | 127 ++++++++++++++++++ 1 file changed, 127 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..b5cdaa0fe559 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml @@ -0,0 +1,127 @@ +# 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: + contains: + const: qcom,sc7180-sndcard + + 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 + + aux-dev: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle of the codec for headset detection + + "#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. + $ref: /schemas/types.yaml#/definitions/uint32 + maxItems: 1 + + 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"; + model = "sc7180-snd-card"; + + audio-routing = + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + + aux-dev = <&alc5682>; + + #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>; + }; + }; + }; -- 2.28.0.220.ged08abb693-goog