Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp945483pxu; Thu, 15 Oct 2020 22:48:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNyoZZVtLDBVK36dth5DYPaaYQcQykfr5Gof3UK2QzimWlQLakWdH9CgTdLCj7THwuz5H9 X-Received: by 2002:a05:6402:941:: with SMTP id h1mr1989034edz.154.1602827339353; Thu, 15 Oct 2020 22:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602827339; cv=none; d=google.com; s=arc-20160816; b=Kgp+0YRJMY0TJq8A8lshWwZIKQY+ab4uMyGR/CVRU0bEk7BPZCkAAm6FDP0b6cNrrL N9UnmwKL9/6PfHo5TkCRGz9dUzZ3vNhlxCIVzo2Euz9o90iOwSLaG3TMhAjWZv0INokT k3g3EAwnaKfLaOWyw9iObAQzMPy/zTJXIXwIsJaBFj4a08lT5/A5Q0yDdMyQM5o5iaLy buHBUlYL3Iiy8aC/SkPkvkt1AOZYHBgEs643Wx55rg8lePz0Wa+/aZhtwUDu0PQ1mqZg KjKmv7tmx2KjGtfM0QXmdipxOw7pm7NW8HLjqlFhic5B8C7/XaS6aKDb0QIEfwy+bRse Yq3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=58G5hh5VTCRWNjS2NbwxGT+Sa6kUqX0udY4utQfHKx4=; b=y7iiDLq/WqEpDl4WqxEASdUsbEdjrecsAvIOhDiKjelOjAYqYKjDqsQedJCRSXQGWA Oni08in6MaF+QO6YRIsnbR+aWCpP2/46XoXylZ6xkHTKCuxa3EvRi7j5GRmnTb+e16SU 2VuLFlO6qbNuYiuNK+6WUnKMnJlruP+/LtQ+0l4jnIAY2GvNCgkFctnzzVg7yGl/OoHr 0++vZpfNIrfPtnA0CKlI+E/vZFfCeME1wlYOtsuOISmxrHVH7+E4EJr7ein307xOkHjE bZhmuo1AyONQ2ekEKuUR9HfoSl9nRlybgYQQU/4JSeiOpa4CEOwkkprsSD6VRb3G6ff2 3Flw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="rkMkit/d"; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si992948ejw.328.2020.10.15.22.48.37; Thu, 15 Oct 2020 22:48:59 -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=@nvidia.com header.s=n1 header.b="rkMkit/d"; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731961AbgJPFOc (ORCPT + 99 others); Fri, 16 Oct 2020 01:14:32 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:10312 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726334AbgJPFOc (ORCPT ); Fri, 16 Oct 2020 01:14:32 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 15 Oct 2020 22:14:19 -0700 Received: from [10.25.98.225] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 16 Oct 2020 05:14:19 +0000 Subject: Re: [PATCH v3 09/13] ASoC: dt-bindings: tegra: Add schema for audio graph card From: Sameer Pujar To: Rob Herring CC: , , , , , , , , , , , , , , , , , , , , References: <1601573587-15288-1-git-send-email-spujar@nvidia.com> <1601573587-15288-10-git-send-email-spujar@nvidia.com> <20201006203433.GA2786434@bogus> Message-ID: Date: Fri, 16 Oct 2020 10:44:15 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-GB X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602825259; bh=58G5hh5VTCRWNjS2NbwxGT+Sa6kUqX0udY4utQfHKx4=; h=Subject:From:To:CC:References:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding: Content-Language:X-Originating-IP:X-ClientProxiedBy; b=rkMkit/dwJWZjwBML9DdGRm+RNMv9B5Kz7OUNznxWxt1JLSqpH5lHP4OWCQNRdJf5 AvU6R5Buf8OP2UclEUIXoAAcYfYNqtLZCpZxiqF4Vr/t5ZyBOAvFO259diZQnwxnJ5 PJmLj17dQgUYtijjaRy7Do2j9Vh9oOKDAwkbsfnwQXY5XW5giTTuJZEAV4eRyc43/w 0jw6nBHxUXE6faiST7IY30d425/tOOWm01PXWSimZhXK8ylwk0U93tJCaanvdekoBw EpmB7r5c/s+z2Wtg7z5FB+uZ+rhTx9Y7nKpHbzotX2CXRHWigkuDKq9OxDo6w9Dp0e lqPyJ9p8O8KmQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> Add YAML schema for Tegra audio graph sound card DT bindings. It=20 >>> uses the >>> same DT bindings provided by generic audio graph driver. Along with=20 >>> this >>> few standard clock DT bindings are added which are specifically=20 >>> required >>> for Tegra audio. >>> >>> Signed-off-by: Sameer Pujar >>> --- >>> =C2=A0 .../sound/nvidia,tegra-audio-graph-card.yaml | 70=20 >>> ++++++++++++++++++++++ >>> =C2=A0 1 file changed, 70 insertions(+) >>> =C2=A0 create mode 100644=20 >>> Documentation/devicetree/bindings/sound/nvidia,tegra-audio-graph-card.y= aml >>> >>> diff --git=20 >>> a/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-graph-card= .yaml=20 >>> b/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-graph-card= .yaml=20 >>> >>> new file mode 100644 >>> index 0000000..b73fbe5 >>> --- /dev/null >>> +++=20 >>> b/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-graph-card= .yaml >>> @@ -0,0 +1,70 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id:=20 >>> http://devicetree.org/schemas/sound/nvidia,tegra-audio-graph-card.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Audio Graph based Tegra sound card driver >>> + >>> +description: | >>> +=C2=A0 This is based on generic audio graph card driver along with=20 >>> additional >>> +=C2=A0 customizations for Tegra platforms. It uses the same bindings w= ith >>> +=C2=A0 additional standard clock DT bindings required for Tegra. >>> + >>> +=20 >>> See{LINUX}/Documentation/devicetree/bindings/sound/audio-graph-card.txt >>> + >>> +maintainers: >>> +=C2=A0 - Jon Hunter >>> +=C2=A0 - Sameer Pujar >>> + >>> +properties: >>> +=C2=A0 compatible: >>> +=C2=A0=C2=A0=C2=A0 oneOf: >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - const: nvidia,tegra210-audio-graph-ca= rd >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - const: nvidia,tegra186-audio-graph-ca= rd >>> + >>> +=C2=A0 clocks: >>> +=C2=A0=C2=A0 minItems: 2 >>> + >>> +=C2=A0 clock-names: >>> +=C2=A0=C2=A0 minItems: 2 >>> +=C2=A0=C2=A0 items: >>> +=C2=A0=C2=A0=C2=A0=C2=A0 - const: pll_a >>> +=C2=A0=C2=A0=C2=A0=C2=A0 - const: plla_out0 >>> + >>> +=C2=A0 assigned-clocks: >>> +=C2=A0=C2=A0=C2=A0 minItems: 1 >>> +=C2=A0=C2=A0=C2=A0 maxItems: 3 >>> + >>> +=C2=A0 assigned-clock-parents: >>> +=C2=A0=C2=A0=C2=A0 minItems: 1 >>> +=C2=A0=C2=A0=C2=A0 maxItems: 3 >>> + >>> +=C2=A0 assigned-clock-rates: >>> +=C2=A0=C2=A0=C2=A0 minItems: 1 >>> +=C2=A0=C2=A0=C2=A0 maxItems: 3 >>> + >>> +required: >>> +=C2=A0 - compatible >>> +=C2=A0 - clocks >>> +=C2=A0 - clock-names >>> +=C2=A0 - assigned-clocks >>> +=C2=A0 - assigned-clock-parents >> Where's the graph? You need to define the ports and reference the common >> schema. > > I am looking to reference the bindings used in below doc which is not=20 > yet in YAML format. Only additional properties I listed here. > {LINUX}/Documentation/devicetree/bindings/sound/audio-graph-card.txt > > Should I keep this doc to *.txt format as well and later move to YAML=20 > or is there a way to reference *.txt doc here? The dependency here is like below, Tegra audio graph card -> generic audio graph card=20 (audio-graph-card.txt) -> graph (graph.txt) I plan to convert dependencies to json-schema in next revision and then=20 refer these for Tegra audio graph card.