Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1545720pxa; Thu, 6 Aug 2020 09:58:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYlkjHxwwKdtv7BkPTHTgCDvQx9sFL6ky+FzE/z7HnhZTG5ynKE6cORwbo1aMWl/tlTE7s X-Received: by 2002:a17:906:9717:: with SMTP id k23mr5340845ejx.493.1596733091820; Thu, 06 Aug 2020 09:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596733091; cv=none; d=google.com; s=arc-20160816; b=pt29iqR5Tm/Q2ePKpB0nsY4rswn9SyVPbqLQEd1UU+1NXyto25MCbOFyqEh6AJ7Axo OIT5lyRKy71N8JfqLQF28z26uQYmKhzXJPOZbMAfpO8NPrkxYG/F+6Vqtw1sDRJazy7a wx27OkccGTVzubawdwqQX/1lTbnZ4tVrwjvJZjAJj2PaJalk49VUC1gdp21Fa0tippS9 HnvM4E23y2B+RI09z/JeRtGSjPmlUEjcezkQi8gzOl8/YTsFbR9iB8GO3rkxpGouTN4Z er5k9cKHIymI4dKLMDx7PFJgOsn/FpsNJ1vE4Xz3NgxwsyKvze7WIaNyjiBzVTtfS/PD a9ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=xk1+TxcE3QnIGMOvPraXoKHV6uIacnJL3Sj3a6NYZPM=; b=rJMvV99dnIlQrkOHSmWRwAar9pFZXq7lpry300bWT2sh8wsR29pL0k8Pcx1XjlCiEe Zd5z3VtZDoFYCQA58oY4Nn505q9G/CxBQOlv6LGqQ3FJ5Jl4h3dWW3A8aOsjGdaNBUf8 ZFw05is9CoWm3twjOeJTJVAxddM9gFpXE0eYhvOXiVm6b/5VT9kobalVBP38unxQqzK8 S606nieaww2VWR2jRdEfYiZTeTp+ru71QHLAfwnmYnGhs4wHpRguXV6YjHQCu/iqTq1W YrzD4YV35kI0MUyr0Pm1sUS6/vZPNAY0Ay0BUDTdoDStnk5SoQbj/GehMAtDaoI0gmTn VstA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rl7si3481328ejb.264.2020.08.06.09.57.48; Thu, 06 Aug 2020 09:58:11 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729775AbgHFQ5K (ORCPT + 99 others); Thu, 6 Aug 2020 12:57:10 -0400 Received: from mail-il1-f194.google.com ([209.85.166.194]:40758 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728723AbgHFQkm (ORCPT ); Thu, 6 Aug 2020 12:40:42 -0400 Received: by mail-il1-f194.google.com with SMTP id x1so20675139ilp.7; Thu, 06 Aug 2020 09:39:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xk1+TxcE3QnIGMOvPraXoKHV6uIacnJL3Sj3a6NYZPM=; b=N58pHWGrEBfXX6ulurZai9KKwSZKQyXXXeGIqHspMfWQ3boJDtauhQfgXIGMyS0jlC h0JKwoll4DUykjdW23kB9e9urpcMdd7Vw1pkkP1nkeasL63Or4fkxoHrE/buXuNmTbvP iHrrg/cJ28dwr7PYELBjFX8LKjqQLXHczvfz5xcNUqjnBwFpmNvkRsa9tuX2cIzkolM7 XJss5IvxakrXjZy/mVHtR0cphCWz8N18q4R0yqGcW17cvM3uca7xO2GzxK2dVSRFR79+ mQ32TAuukBpIPeTSJMOhZc/lqWCZRXsEszSsmcoE5eY60qQpTRbUyns20FmQj0qVEcYf lMPQ== X-Gm-Message-State: AOAM531D69kdV7mzrS9XQI1KvdKCVlV3Chg9IGuv6m9BDe4L2oDtS+vF eHb5OuWDNjLhQxYC+lsUQdHFXlI= X-Received: by 2002:a05:6602:24d5:: with SMTP id h21mr10407216ioe.108.1596724757598; Thu, 06 Aug 2020 07:39:17 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id a18sm4061245ilp.52.2020.08.06.07.39.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Aug 2020 07:39:16 -0700 (PDT) Received: (nullmailer pid 822114 invoked by uid 1000); Thu, 06 Aug 2020 14:39:12 -0000 Date: Thu, 6 Aug 2020 08:39:12 -0600 From: Rob Herring To: Cheng-Yi Chiang Cc: linux-kernel@vger.kernel.org, Mark Brown , Taniya Das , Rohit kumar , Banajit Goswami , Patrick Lai , Andy Gross , Bjorn Andersson , Liam Girdwood , 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 Subject: Re: [PATCH v4 1/2] ASoC: qcom: dt-bindings: Add sc7180 machine bindings Message-ID: <20200806143912.GA816294@bogus> References: <20200803040122.2063634-1-cychiang@chromium.org> <20200803040122.2063634-2-cychiang@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200803040122.2063634-2-cychiang@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 03, 2020 at 12:01:21PM +0800, Cheng-Yi Chiang wrote: > Add devicetree bindings documentation file for sc7180 sound card. > > Signed-off-by: Cheng-Yi Chiang > --- > .../bindings/sound/qcom,sc7180.yaml | 113 ++++++++++++++++++ > 1 file changed, 113 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..c74f0fe9fb3b > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml > @@ -0,0 +1,113 @@ > +# 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 > + > +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 Nothing required? Add: additionalProperties: false (And you'll need to define #address-cells and #size-cells) > + > +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.163.g6104cc2f0b6-goog >