Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp61095lqg; Fri, 26 Apr 2024 08:46:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdpYcHgjOTf1a3HQ/8yKbm4JhZk+LW9mCYjI2jiwYuhCT9F1mtZxIgw75bPKnGNrp8Mhwm9fROb1CazQS4vxAubwy7Td8bqYsryOkmZA== X-Google-Smtp-Source: AGHT+IFNCb8a4HMiOSTZ4cs0Ylb/JDZhdZHO4dJIzkXBuzi0zDdrFQhkVHONV0W5rXG8bsC+2Nc4 X-Received: by 2002:a05:6a21:9217:b0:1ad:8c6c:d7d7 with SMTP id tl23-20020a056a21921700b001ad8c6cd7d7mr3991774pzb.36.1714146387057; Fri, 26 Apr 2024 08:46:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714146387; cv=pass; d=google.com; s=arc-20160816; b=KftLm5zyb3K1WS9PP0mSeRcNvT5PVZuZh/ghbXDrrJxB3Q5C2Sz57ALCNhnc49r0jm ejLmfNTdRakv664198QM9Neg+edYKHgBKlCUP0GqZuakLzfJXokFoJ/JeWhPNgro+ZIe v64okHrJoX5iKCffIUi1yUlPJc9bKfJbP6fRD/g+G2tmBm5e8dR8dymk7LxwkY4cZ7vZ MrwuNk9DVlGAQoHHWwDM5K2kGtpCk45DoA3A0F62b1Q9mLArKVxyF/BQT+m502m8lpyp +ysTjLgBgfh9KjEqylFXwiQqa5/z07Nr5IxyhMU/UwQTd6N3oal+Ejb5k2FzqEQ16Qlw vJPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jFnICNmNYq4yWHp1opdnYncHK1oclnziRBaZvHvyxNU=; fh=UXYZ9yc8KWP8wGEQ5jyCO5fN+yKdKeq8SWr9NpxXB8k=; b=JTkYufLN+PbxXPHmsJ+28AJNzZrJGupElLA7zt10Oid1okqtwuJRqlq5haGBkO5uRd VvxanZjB6GQdZaMcYy87V0rIBny+fhEXf2Z9XL3xwECMB1vccnegkdFXxl2dUOzv/xRj 3qCa5vflPTOPTYnAf5Ora8cZnN/BqtWq0rF3sjUYHrVj0rYRaCbgX6c0VFoJPkrsYtdy kuKpV6RBKZV5xHKbJj/0W0w88FO50ZWEfZNdHXFgIOQKDSIyY9xPjxBZIMtbXPKtb8JU /0Bf5vqqfw+METjgB9b6p5fJ36OHVxe3BGhUrQ8X5YTIF0yOf3JT1j21pBCB3t/92rSh kXlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="m/gwIiX3"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160324-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z73-20020a63334c000000b005ff5808b8d4si9593551pgz.849.2024.04.26.08.46.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 08:46:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160324-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="m/gwIiX3"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160324-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 086C4281667 for ; Fri, 26 Apr 2024 15:45:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDD8C14A4EB; Fri, 26 Apr 2024 15:45:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="m/gwIiX3" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DECA7148FE5; Fri, 26 Apr 2024 15:45:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714146302; cv=none; b=Cyp4noI2gpt4oLIowWtXufGDVBNoLrU3werm4UwwwC6z9NrO1Aowqe+zvgkLcsrnRC7uvaROR0yEhkER/YFNvq8mk7cfnRC68u9ExiXG4xN18enXa0gixJrUdIxsPyf74J/BTHVBZkIJ3dCHMnm0155RMTh9khQkYjrRKtCS0AQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714146302; c=relaxed/simple; bh=eOP2/U4Vd5DzPmdW0xejV5wEgvRGsN/4+Hk2GtsLxhE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EJGJp7ilVWMaQyS9/tfVs8MnVgdy8vSoKwgvMKiZG0LA9hunBCnaDA4jreoErmJZiGepB4UqngMVqzvWPFe+ZbXGouq+IDPmVaQaFl5MIOsA1Z1tchHm6KHeUDPGr2KSztlSEkg4uipPiMy63NeGMgrbGv8u7gpe8IsmLJu9oXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=m/gwIiX3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86CB2C113CD; Fri, 26 Apr 2024 15:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714146301; bh=eOP2/U4Vd5DzPmdW0xejV5wEgvRGsN/4+Hk2GtsLxhE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m/gwIiX36LDs2I9/Z1NuMFucOvQCei1MAXd+b28yCja93zW8rs3K36b2ifWD+p/sh YdrablzWIkEWpsiAry8zadTIEddCuvv7yQ/nbH8YPvuCsDQ94Qk/kOeebuV9q6dftB +5VpqNDteiE6rs4saJM3xoHCaRSOtwrUMC5LgaQ7+j5l2z38oGa7diu7lN+0xvOcu+ 4L7x+6SWLJ1PMiP462dzHqxy1woJVywKaa9Uig8xbDl1pI8vIrnWhrUo+6M4wKxQ7T GoRh0sUP3ne4TeZu3fJNZLK/NrgtxhxZNMpEdNlDLT5PkVifWoBC1KMRHN/igePNyF M0yn5bBNfR16Q== Date: Fri, 26 Apr 2024 10:44:58 -0500 From: Rob Herring To: Mohammad Shehar Yaar Tausif Cc: Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Thierry Reding , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] ASoC: dt-bindings: tegra30-i2s: convert to dt schema Message-ID: <20240426154458.GA1964057-robh@kernel.org> References: <20240425153045.49939-1-sheharyaar48@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240425153045.49939-1-sheharyaar48@gmail.com> On Thu, Apr 25, 2024 at 09:00:43PM +0530, Mohammad Shehar Yaar Tausif wrote: > Convert NVIDIA Tegra30 I2S binding to DT schema and > add "clock-names" property used by multiple tegra i2s blocks > in arch/arm64/boot/dts/nvidia/tegra132.dtsi. This is not a > required property by the binding. > > Signed-off-by: Mohammad Shehar Yaar Tausif > --- > Changes v3->v4: > - removed redundant example > - defined clock-names property > > v3: > https://lore.kernel.org/all/20240425090716.176818-1-sheharyaar48@gmail.com/ > --- > .../bindings/sound/nvidia,tegra30-i2s.txt | 27 ------ > .../bindings/sound/nvidia,tegra30-i2s.yaml | 83 +++++++++++++++++++ > 2 files changed, 83 insertions(+), 27 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.txt > create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.yaml > > diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.txt b/Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.txt > deleted file mode 100644 > index 38caa936f6f8..000000000000 > --- a/Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.txt > +++ /dev/null > @@ -1,27 +0,0 @@ > -NVIDIA Tegra30 I2S controller > - > -Required properties: > -- compatible : For Tegra30, must contain "nvidia,tegra30-i2s". For Tegra124, > - must contain "nvidia,tegra124-i2s". Otherwise, must contain > - "nvidia,-i2s" plus at least one of the above, where is > - tegra114 or tegra132. > -- reg : Should contain I2S registers location and length > -- clocks : Must contain one entry, for the module clock. > - See ../clocks/clock-bindings.txt for details. > -- resets : Must contain an entry for each entry in reset-names. > - See ../reset/reset.txt for details. > -- reset-names : Must include the following entries: > - - i2s > -- nvidia,ahub-cif-ids : The list of AHUB CIF IDs for this port, rx (playback) > - first, tx (capture) second. See nvidia,tegra30-ahub.txt for values. > - > -Example: > - > -i2s@70080300 { > - compatible = "nvidia,tegra30-i2s"; > - reg = <0x70080300 0x100>; > - nvidia,ahub-cif-ids = <4 4>; > - clocks = <&tegra_car 11>; > - resets = <&tegra_car 11>; > - reset-names = "i2s"; > -}; > diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.yaml b/Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.yaml > new file mode 100644 > index 000000000000..13cee366f5b3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/nvidia,tegra30-i2s.yaml > @@ -0,0 +1,83 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/nvidia,tegra30-i2s.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NVIDIA Tegra30 I2S controller > + > +maintainers: > + - Thierry Reding > + - Jon Hunter > + > +properties: > + compatible: > + oneOf: > + - enum: > + - nvidia,tegra124-i2s > + - nvidia,tegra30-i2s > + - items: > + - enum: > + - nvidia,tegra114-i2s > + - nvidia,tegra132-i2s > + - enum: > + - nvidia,tegra124-i2s > + - nvidia,tegra30-i2s This allows 4 possible combinations for 2 SoCs. That may be how the old binding was worded, but that's not valid. > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: i2s > + > + resets: > + maxItems: 1 > + > + reset-names: > + const: i2s > + > + nvidia,ahub-cif-ids: > + description: list of AHUB CIF IDs > + $ref: /schemas/types.yaml#/definitions/uint32-array > + items: > + - description: rx (playback) > + - description: tx (capture) > + > +required: > + - compatible > + - reg > + - clocks > + - resets > + - reset-names > + - nvidia,ahub-cif-ids > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + i2s@70080300 { > + compatible = "nvidia,tegra30-i2s"; > + reg = <0x70080300 0x100>; > + nvidia,ahub-cif-ids = <4 4>; > + clocks = <&tegra_car TEGRA30_CLK_I2S0>; > + resets = <&tegra_car 30>; > + reset-names = "i2s"; > + }; > + - | > + #include > + > + i2s@70301100 { > + compatible = "nvidia,tegra124-i2s"; > + reg = <0x70301100 0x100>; > + nvidia,ahub-cif-ids = <5 5>; > + clocks = <&tegra_car TEGRA124_CLK_I2S1>; > + clock-names = "i2s"; > + resets = <&tegra_car 11>; > + reset-names = "i2s"; > + }; I didn't check what you removed, but this is still 1 example too many. They are almost the same.