From nobody Mon Jun 8 07:22:54 2026 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42ED8317162 for ; Thu, 4 Jun 2026 16:29:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780590550; cv=none; b=tHvaPP+kDiY8J2i51fANau8w8rxpQa1kzk5yjDIZRgkdnJbhOuJmaBTOUXhFqqVHhLR5mEIZioY6ArBe9WGeNk/icGx2SJYTjICo5fI5DCoxfHsNc9pS04H2TJUzh5ip6wNLTXuGuepz5H9GcyvAXgN6iJ+HnkySiy7ondYSyTA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780590550; c=relaxed/simple; bh=BjQy2w8UgFsLUjww8QvJ7ljJMmBMyTaJyKGYcBMnacc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lvyh5tZFrSBcYrEOsvkLAsPi00ARA3XufHwVwnXk6mIQGVl3RG2WBfRpsm9xQ//WnFx4W3KCPF5iANjwU/wPHBGMV63VMG7ytjm3nJhE8p9o2X8P42e1wR4MGJkuKdjresFvBvawnHBry+dX8Gczv/rthM+AxGBc/xYGJNfpqIQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=X9HAfxGe; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X9HAfxGe" Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-36b9033d230so552760a91.1 for ; Thu, 04 Jun 2026 09:29:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780590548; x=1781195348; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Tt5XveIXPd5LExPILUEQj2Sv2Xr+T+q71wH/D2X5w18=; b=X9HAfxGex6ByT2jAkzHHQ4Mqc6MFLjnLlphZn+emgX5hm8lIdo8+PRu8gIWWcA/tA+ MBmr1/Y743NpeDcd6clSURnu/g6AOpJrUvxj2VNwPmWoKk3NFsWqWPvVWklkzF68WLFr LOxCmyUl8rpJ/hztKDJfv2Mf989tzuuGiFIy4hnHKpDwRkYk+Zm2rDDRk5VE5rSlydLz WBBcwl8cD5QTFB4pElan5/IzwIcoulJZ8SpimM5U6wQS0xY3pdhik4VnsunpqsxDl2xO Nkn8QB5e82tkD6AKgudQ2hsvZIZ6Rg+4xeUkZl6mzPUUQRk4cxM3/s/Zyn/Pdj56o8bJ yCVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780590548; x=1781195348; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Tt5XveIXPd5LExPILUEQj2Sv2Xr+T+q71wH/D2X5w18=; b=l4lkYDIDUfq7W8u3ErXgKc4NJzS6HOzDSnxkIGKWT1x77SHaa7MViJxIHZTUVENvZz solVnj27uSSoRYos/IcpWFWrsfM/6C+zJUDjrGk7c/dOt7R02jt/KzGRNHP9k0pjmMLJ hpDtkQEgv1XuGsgew5N9GHWvqB4CCNdUyHckCGZGXnNt5uic5pN4i+na6yerE1/L9ZVj gHdQvEhuF826yMkloYMcZhlZGxOIODy52VvE1D8F5fufTECo7PNfHQfX65oym3IpGlPb eJDZXYjvHDAOCJUePz6+z61tlQMa06hM+5z51kyNJi3kDmita4od205rMRKixaaFOfKY Xs3Q== X-Forwarded-Encrypted: i=1; AFNElJ+Fl5+YvRg+FXgTQ34oZAqycHiXsB5i+zvgEiPjU5NOHi2pYRQqlRg8iZ6JUV07/5zzQAdX/vsJrNohyJk=@vger.kernel.org X-Gm-Message-State: AOJu0YzD25iYtZL8SVQpwEebJDWdMQL/ek1t/iotMA8o2m/ND7Wad26a 1SPbVypEJ75EIgJ5z4kEcBRpmGqIMsoT0vFP0Gnqd7y4nYw548mDbERl X-Gm-Gg: Acq92OFDFtuEkwfjztgGeDsqHWNnLJxKrazOpJJ1tTVLDTLUWp2tcq/a00/ZsvpvNOX Zv+68mgjhwwEzghDbrl2oFLhlbgmKT2XfADeJ6agdLdlDQyG0qID83e51eG8yYHpYShzDuPIUCp gjdrD7nOH48uTj6drKRTqNglTsf9K51c2jdKnvv2GJn7/sA0Q3DVQBUlU40XSLeSkamLHIoosZB IHECLUyv0r7zTFkfdrxzwFa//pwe4MR5C7mEECjQRFsB/7+Ymc70Io0H7YAhATXyAxwq/2tZ14e PiZ98jx8nQ3YwMG+VBaQZiAy+A5d2MkZ+OJdTcxd9vh1Rizc4oanfGixJzDJPtDkd3lqoaGKc89 feocUgxQ6mcV9PWact0KtyUD294EV/AfmsZMt2w63gl5pw42yQez3PjdVhfFqgIeEc9xRmWYncf N/L08rEEF/EpxG57US/KSRyyMs64suHw6iQdZNPeMWkLzqSlPieDjG7Uzfg9Hh5Qa2EsqzBgT+l 9EggIwpowJKoFCdCrUeBmK1a2bz X-Received: by 2002:a17:90b:2b4b:b0:36a:caf2:3815 with SMTP id 98e67ed59e1d1-36f781bded1mr3553423a91.15.1780590548307; Thu, 04 Jun 2026 09:29:08 -0700 (PDT) Received: from fedora ([103.181.54.97]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-36f712de91asm3670255a91.16.2026.06.04.09.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2026 09:29:07 -0700 (PDT) From: Ninad Naik To: lgirdwood@gmail.com, broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com Cc: 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, Ninad Naik Subject: [PATCH v2] regulator: dt-bindings: mt6311: Convert to DT schema Date: Thu, 4 Jun 2026 21:56:24 +0530 Message-ID: <20260604162624.644241-1-ninadnaik07@gmail.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Convert mediatek,mt6311 to DT schema. Signed-off-by: Ninad Naik Reviewed-by: Rob Herring (Arm) --- Changes in v2: - Correct "MediaTek" in the title. - Drop "|" in the top-level description. - Remove unnecessary regulator node description. - Remove unused labels from example. .../regulator/mediatek,mt6311-regulator.yaml | 70 +++++++++++++++++++ .../bindings/regulator/mt6311-regulator.txt | 35 ---------- 2 files changed, 70 insertions(+), 35 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/mediatek,mt= 6311-regulator.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/mt6311-regu= lator.txt diff --git a/Documentation/devicetree/bindings/regulator/mediatek,mt6311-re= gulator.yaml b/Documentation/devicetree/bindings/regulator/mediatek,mt6311-= regulator.yaml new file mode 100644 index 000000000000..f65ee2c90298 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mediatek,mt6311-regulator= .yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mediatek,mt6311-regulator.yam= l# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT6311 Regulator + +maintainers: + - AngeloGioacchino Del Regno + +description: + 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# + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + pmic@6b { + compatible =3D "mediatek,mt6311-regulator"; + reg =3D <0x6b>; + + regulators { + VDVFS { + regulator-name =3D "VDVFS"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <1400000>; + regulator-ramp-delay =3D <10000>; + }; + + VBIASN { + regulator-name =3D "VBIASN"; + regulator-min-microvolt =3D <200000>; + regulator-max-microvolt =3D <800000>; + }; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/regulator/mt6311-regulator.t= xt 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 bin= ding - for regulators at Documentation/devicetree/bindings/regulator/regulator.= txt. - -The valid names for regulators are: -BUCK: - VDVFS -LDO: - VBIASN - -Example: - mt6311: pmic@6b { - compatible =3D "mediatek,mt6311-regulator"; - reg =3D <0x6b>; - - regulators { - mt6311_vcpu_reg: VDVFS { - regulator-name =3D "VDVFS"; - regulator-min-microvolt =3D < 600000>; - regulator-max-microvolt =3D <1400000>; - regulator-ramp-delay =3D <10000>; - }; - mt6311_ldo_reg: VBIASN { - regulator-name =3D "VBIASN"; - regulator-min-microvolt =3D <200000>; - regulator-max-microvolt =3D <800000>; - }; - }; - }; --=20 2.54.0