From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7889FCD6E60 for ; Thu, 4 Jun 2026 01:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=B1/4QNZrjCVuXvK5agPN2ARKZz6GtIJ7tiYvtXOug94=; b=JFsrYZesRp2i90KCyOFsZv7Mwq qlKtFEU+B4F8DfM8+JvxVY95N8F0lNZk77CVaKznsXmPD07pC9q5D5XCbDbNr9P8oemOLxYWRjndx xNGK5KYNmkvR6NX1mNyabh+Q1Hu9+QxWk6JrtRtqjMieQsQ3rEP5W/1hgIFboPOdXw+PF6ggOfy3b 9g0ElMyw82JNb7Jt6Q1bvh7rkUMcilaTcSo5D+hIFNLiJ/uSZpCJhAbYhJtnXZqIQFoBcT/zdaRCA ZzKaDwhF3aSKtXjMaRkd/JRaVAed4O3ybi/u6J+mQTXG4VEuQbV9njvOFOtfysP+5Yj/sv/5BTjd5 roC5a9FA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wUxB1-0000000G0lF-0CKs; Thu, 04 Jun 2026 01:47:19 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wUxAx-0000000G0kX-3YIC; Thu, 04 Jun 2026 01:47:17 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 196E740179; Thu, 4 Jun 2026 01:47:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B462B1F00898; Thu, 4 Jun 2026 01:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780537635; bh=B1/4QNZrjCVuXvK5agPN2ARKZz6GtIJ7tiYvtXOug94=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=L9KE8GwLkuM+TtfWZd1UYzDn2pG4LUYkRe3PoIH6R63B87VzB793SUBqiAptWLFtV fGfC2Cc3xMboII64HEAIRpzs5qvOIDzT7HrfVOozK4tCKb9Dg/M4CZlAxavWtSkHNe /fLwi1wVN9Gt5zMiiqahnRkgOytqA4nEDBJXycbz83R6nRRL2kH/bT3mCoJTjSLXW4 w2rgae/UttLLJK7oa2iXDWHA0Qc3dYlzVc4InCNlZqLE9yttgmCl6Emp8/82GLIwot eCngV0FnT6GFwhJ/QMK0ov3tpf7eLyfF9KmgciEGloKvcqiCHlq0YVgZmkocpw6wW1 Dkslbh8Gcls+A== Date: Wed, 3 Jun 2026 20:47:13 -0500 From: Rob Herring To: Ninad Naik Cc: lgirdwood@gmail.com, broonie@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, me@brighamcampbell.com, linux-kernel-mentees@lists.linux.dev, skhan@linuxfoundation.org Subject: Re: [PATCH] regulator: dt-bindings: mt6311: Convert to DT schema Message-ID: <20260604014713.GA2331501-robh@kernel.org> References: <20260531165712.729635-1-ninadnaik07@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260531165712.729635-1-ninadnaik07@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260603_184715_952683_9BAE0411 X-CRM114-Status: GOOD ( 18.69 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Sun, May 31, 2026 at 10:27:12PM +0530, Ninad Naik wrote: > Convert mediatek,mt6311 to DT schema. > > Signed-off-by: Ninad Naik > --- > .../regulator/mediatek,mt6311-regulator.yaml | 72 +++++++++++++++++++ > .../bindings/regulator/mt6311-regulator.txt | 35 --------- > 2 files changed, 72 insertions(+), 35 deletions(-) > create mode 100644 Documentation/devicetree/bindings/regulator/mediatek,mt6311-regulator.yaml > delete mode 100644 Documentation/devicetree/bindings/regulator/mt6311-regulator.txt > > diff --git a/Documentation/devicetree/bindings/regulator/mediatek,mt6311-regulator.yaml b/Documentation/devicetree/bindings/regulator/mediatek,mt6311-regulator.yaml > new file mode 100644 > index 000000000000..a51db46b0f41 > --- /dev/null > +++ b/Documentation/devicetree/bindings/regulator/mediatek,mt6311-regulator.yaml > @@ -0,0 +1,72 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/regulator/mediatek,mt6311-regulator.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mediatek MT6311 Regulator > + > +maintainers: > + - AngeloGioacchino Del Regno > + > +description: | Don't need '|' if no formatting. > + The MediaTek MT6311 is an I2C power management IC that provides one step-down > + converter and one low-dropout regulator. The regulators are named VDVFS and > + VBIASN, respectively. > + > +properties: > + compatible: > + const: mediatek,mt6311-regulator > + > + reg: > + description: I2C slave address. > + maxItems: 1 > + > + regulators: > + type: object > + description: List of regulators provided by this controller. > + > + patternProperties: > + "^(VDVFS|VBIASN)$": > + type: object > + $ref: regulator.yaml# > + description: | > + Regulator nodes. Drop. That's obvious with the $ref. > + unevaluatedProperties: false > + > + additionalProperties: false > + > +required: > + - compatible > + - reg > + - regulators > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + mt6311: pmic@6b { Drop unused label. > + compatible = "mediatek,mt6311-regulator"; > + reg = <0x6b>; > + > + regulators { > + mt6311_vcpu_reg: VDVFS { Drop unused label. > + regulator-name = "VDVFS"; > + regulator-min-microvolt = <600000>; > + regulator-max-microvolt = <1400000>; > + regulator-ramp-delay = <10000>; > + }; > + > + mt6311_ldo_reg: VBIASN { Drop unused label. > + regulator-name = "VBIASN"; > + regulator-min-microvolt = <200000>; > + regulator-max-microvolt = <800000>; > + }; > + }; > + }; > + }; > +... > diff --git a/Documentation/devicetree/bindings/regulator/mt6311-regulator.txt b/Documentation/devicetree/bindings/regulator/mt6311-regulator.txt > deleted file mode 100644 > index 84d544d8c1b1..000000000000 > --- a/Documentation/devicetree/bindings/regulator/mt6311-regulator.txt > +++ /dev/null > @@ -1,35 +0,0 @@ > -Mediatek MT6311 Regulator > - > -Required properties: > -- compatible: "mediatek,mt6311-regulator" > -- reg: I2C slave address, usually 0x6b. > -- regulators: List of regulators provided by this controller. It is named > - to VDVFS and VBIASN. > - The definition for each of these nodes is defined using the standard binding > - for regulators at Documentation/devicetree/bindings/regulator/regulator.txt. > - > -The valid names for regulators are: > -BUCK: > - VDVFS > -LDO: > - VBIASN > - > -Example: > - mt6311: pmic@6b { > - compatible = "mediatek,mt6311-regulator"; > - reg = <0x6b>; > - > - regulators { > - mt6311_vcpu_reg: VDVFS { > - regulator-name = "VDVFS"; > - regulator-min-microvolt = < 600000>; > - regulator-max-microvolt = <1400000>; > - regulator-ramp-delay = <10000>; > - }; > - mt6311_ldo_reg: VBIASN { > - regulator-name = "VBIASN"; > - regulator-min-microvolt = <200000>; > - regulator-max-microvolt = <800000>; > - }; > - }; > - }; > -- > 2.54.0 > >