Received: by 2002:aa6:c429:0:b029:98:93ff:f56f with SMTP id g9csp386947lkq; Thu, 3 Dec 2020 06:40:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNptdqsOyq8dH1mEp0eovkPVD6I7q6/lb8gnh5ngoggnuMY6BPpTfYtVJP0Ekv5TxMF72d X-Received: by 2002:a50:a689:: with SMTP id e9mr3053195edc.233.1607006414918; Thu, 03 Dec 2020 06:40:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607006414; cv=none; d=google.com; s=arc-20160816; b=D3cC99Y3K+TT4W6prjUZEB2XVUySTFN6pA9aCMizhOKEWE0zmatTe/GvfPEalDL3S6 C4INFHCIPPLe5kEdINrFJVwPeIWOlh7fJ6Suz6c55MrcLKBGeL6m5/mkmsX+bvLWsE2O YjTozPj6ek9K+LSO6HgJFVG0ZC9dKv6acx1kBJaQbXW0GSTUK9CpVq5i9Rm+PWHVcUk3 23zAl++zQ8RktgHZAxqnI7yD/neN1fq0ulJWjbduZAyZJ6lZmGHkGMj6raqzwtjFZFqJ ngaY61SJMZMDLbByWj/baFtbxRal7MU5kitsIVWzbzGCdjErvfO1i8t3RKWvrME/yRJn l4qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=aoJcYwi5/UenP9bLitxom4hRAg/DI2I1tYEOVWyMeuY=; b=YZog5r5XDhDwBtP9JXLfOUgPiZcjAR99FbqRc0lFdZAIBp1q54hd8SDFeju3h0z+8X B4sYgaSzMis1a4hxYiYtTgZMSfP0dmSnWVzQ+RSbwftUwEXDbz23xYyiCVM7wjbDh4HC 7LcBYL9kB7Nvxw59LB1/Gt7skQysrt2UeQLHqmi6n77EItXpucYo4hhqvxwWXC2TMsRx TQaUnJfC7bhjWjF+e7TgG+doCLBxrIPPxxG+Qj4/9SMf0JqFrbMqYLlv+rxvAZFF5+UR eILw8Dw2t2kRMiIMUckyaYq/odhsA57g1ylkCx17kPcInJNvyxQ7Eitj1wQ5VRBtyxBE x8Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=QVroGmx1; 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 a16si1072206edn.109.2020.12.03.06.39.51; Thu, 03 Dec 2020 06:40:14 -0800 (PST) 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=QVroGmx1; 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 S2389257AbgLCOhv (ORCPT + 99 others); Thu, 3 Dec 2020 09:37:51 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:8686 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389202AbgLCOhu (ORCPT ); Thu, 3 Dec 2020 09:37:50 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 03 Dec 2020 06:37:09 -0800 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 3 Dec 2020 14:37:09 +0000 Received: from audio.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.12) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Thu, 3 Dec 2020 14:37:06 +0000 From: Sameer Pujar To: , , CC: , , , , , , Sameer Pujar Subject: [RESEND PATCH 1/2] dt-bindings: tegra: Convert HDA doc to json-schema Date: Thu, 3 Dec 2020 20:06:41 +0530 Message-ID: <1607006202-4078-2-git-send-email-spujar@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607006202-4078-1-git-send-email-spujar@nvidia.com> References: <1607006202-4078-1-git-send-email-spujar@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1607006229; bh=aoJcYwi5/UenP9bLitxom4hRAg/DI2I1tYEOVWyMeuY=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Type; b=QVroGmx1hArPlRKm5dWeLlTXwTcrXk8c8VIeOaiyHXtWfZ9c3Z3gIW9RAX7GMOOcD wSiUDJp9OmlCaskDyxcu6GPg0x1i9c25sPJ88ItKnEuO/rpW7J9Bs9WcNnXSBgewAx dlBFgyR25yVnK8PN49Duk9r6UlSvGJWgQnCLyFLFSpRbMASykVNBU4xlLXv6uY6BtE 4bhwlYLM3NXqTBdlZzds3xUVKnXH4Cpre/kUoZxkMFtUUTNbMiRbJAbPlzPJkz5OFc bN9a+FKkWe4fLmBsniarAcAylvVhi9qRKs2/8YBQ/xKNJdlJU89RlVE3WR+Q/klqNZ CuJNMsXzU/2AQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert Tegra HDA doc to YAML format. Signed-off-by: Sameer Pujar --- .../bindings/sound/nvidia,tegra30-hda.txt | 35 -------- .../bindings/sound/nvidia,tegra30-hda.yaml | 98 ++++++++++++++++++++++ 2 files changed, 98 insertions(+), 35 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.txt create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.txt b/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.txt deleted file mode 100644 index 21cd310..0000000 --- a/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.txt +++ /dev/null @@ -1,35 +0,0 @@ -NVIDIA Tegra30 HDA controller - -Required properties: -- compatible : For Tegra30, must contain "nvidia,tegra30-hda". Otherwise, - must contain '"nvidia,-hda", "nvidia,tegra30-hda"', where is - tegra114, tegra124, or tegra132. -- reg : Should contain the HDA registers location and length. -- interrupts : The interrupt from the HDA controller. -- clocks : Must contain an entry for each required entry in clock-names. - See ../clocks/clock-bindings.txt for details. -- clock-names : Must include the following entries: hda, hda2hdmi, hda2codec_2x -- resets : Must contain an entry for each entry in reset-names. - See ../reset/reset.txt for details. -- reset-names : Must include the following entries: hda, hda2hdmi, hda2codec_2x - -Optional properties: -- nvidia,model : The user-visible name of this sound complex. Since the property - is optional, legacy boards can use default name provided in hda driver. - -Example: - -hda@70030000 { - compatible = "nvidia,tegra124-hda", "nvidia,tegra30-hda"; - reg = <0x0 0x70030000 0x0 0x10000>; - interrupts = ; - clocks = <&tegra_car TEGRA124_CLK_HDA>, - <&tegra_car TEGRA124_CLK_HDA2HDMI>, - <&tegra_car TEGRA124_CLK_HDA2CODEC_2X>; - clock-names = "hda", "hda2hdmi", "hda2codec_2x"; - resets = <&tegra_car 125>, /* hda */ - <&tegra_car 128>, /* hda2hdmi */ - <&tegra_car 111>; /* hda2codec_2x */ - reset-names = "hda", "hda2hdmi", "hda2codec_2x"; - nvidia,model = "jetson-tk1-hda"; -}; diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml b/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml new file mode 100644 index 0000000..3059bc3 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/nvidia,tegra30-hda.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra HDA controller + +description: | + The High Definition Audio (HDA) block provides a serial interface to + audio codec. It supports multiple input and output streams. + +maintainers: + - Thierry Reding + - Jon Hunter + +properties: + $nodename: + pattern: "^hda@[0-9a-f]*$" + + compatible: + oneOf: + - const: nvidia,tegra30-hda + - items: + - enum: + - nvidia,tegra194-hda + - nvidia,tegra186-hda + - nvidia,tegra210-hda + - nvidia,tegra124-hda + - const: nvidia,tegra30-hda + - items: + - const: nvidia,tegra132-hda + - const: nvidia,tegra124-hda + - const: nvidia,tegra30-hda + + reg: + maxItems: 1 + + interrupts: + description: The interrupt from the HDA controller + maxItems: 1 + + clocks: + maxItems: 3 + + clock-names: + maxItems: 3 + items: + - const: hda + - const: hda2hdmi + - const: hda2codec_2x + + resets: + maxItems: 3 + + reset-names: + maxItems: 3 + items: + - const: hda + - const: hda2hdmi + - const: hda2codec_2x + + nvidia,model: + $ref: /schemas/types.yaml#/definitions/string + description: | + The user-visible name of this sound complex. If this property is + not specified then boards can use default name provided in hda driver. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + hda@70030000 { + compatible = "nvidia,tegra124-hda", "nvidia,tegra30-hda"; + reg = <0x70030000 0x10000>; + interrupts = ; + clocks = <&tegra_car TEGRA124_CLK_HDA>, + <&tegra_car TEGRA124_CLK_HDA2HDMI>, + <&tegra_car TEGRA124_CLK_HDA2CODEC_2X>; + clock-names = "hda", "hda2hdmi", "hda2codec_2x"; + resets = <&tegra_car 125>, /* hda */ + <&tegra_car 128>, /* hda2hdmi */ + <&tegra_car 111>; /* hda2codec_2x */ + reset-names = "hda", "hda2hdmi", "hda2codec_2x"; + nvidia,model = "jetson-tk1-hda"; + }; + +... -- 2.7.4