From nobody Mon Jun 8 07:22:47 2026 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 2537B2DCC08 for ; Sun, 31 May 2026 17:00:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780246831; cv=none; b=BSXlsHSeWpEVDZ+HDvEqGzdRnH1yRT8aQDqe4p2u9nfGi/bmHIMglyQxt9fqr2FnSOX9kX5sIpuHxLC/3Xom+Wq8CXpZBb/xjV/jcH2+hBFqS8wYdSe6FHMpBgQ0iW/eBSL0vvDiFKPzQsJu4NaadUd6ZvMVcu58UIGb14M2PMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780246831; c=relaxed/simple; bh=EOBpOIKoSoMieWyB4Iyyf+2+E8XFT3MTeLulNuhmax8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c5oKoqKL/lc0XoMY/JZJsMeE6ss2VFKdR+gjTp4+QU/SwxFQacemFHyws5kyx3y9yC1Zp5cgAJ6AA9TcUvbfj8AkbPw1df176pxWvntDsRv66J16fd8WXY0A9aJycsDIaCXu8LSo7bXLEtn/LSKzvJkx7nu13UN8hEIYcIvKrZM= 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=eHrDuyV/; arc=none smtp.client-ip=209.85.214.172 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="eHrDuyV/" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2bf55c39e16so4607555ad.0 for ; Sun, 31 May 2026 10:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780246829; x=1780851629; 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=nNZr3l3L/Od3rTaCElFlPcrYufd7SCc++/hp9yDvX+M=; b=eHrDuyV/qj1uEcVEc/cJpD7sbVXNuIWhoJSEwzbdzd7E5XUWIFsyIoXtlLRbBDxhmd s0hOtkJZ/VFFTXzeLEyOi5qfTIu1Gl5wgCmE3TnUGQlH6V/evTGA7Pb7QGYs8YoIlVwY ObWL7P6Pbu1FzIqmcAAG/9hzeQVVN8eEsFSJWPxE5IYdLKKEoM5gz9QupCr1KwkokixD ZKc4vVQvWSqgA6gY91PPf8drmmhR5Ur+gu81hhhTAijaDLCQENMaZPQaVXbsCXXuRT5X 87gVpyBDB/aMViXsqOoYQSvq9a/TGLvPSqk2lDrUpm8giYXQKR2z9RLG35NfWd8H2ImN DfUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780246829; x=1780851629; 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=nNZr3l3L/Od3rTaCElFlPcrYufd7SCc++/hp9yDvX+M=; b=W4uWdZlEvMk+Gnytt+U3RrKFeIo1ClWty8CFydaJBB0MKfCeQtflSRAZ/lYj7XdQvA gQ0vE/+qljpuh9/ykvTdUd6JqndaZYIdKVm4UH0UVuiX8tHdzGE8B7ZUg4O+HGwOZi8r GVavjXY6SsQVPqb4mHqJviybkSBNHM6k6dHewECrLSsFhj6OdmPm3QYcgKMX9dMNxZIX vwP5O7aXhC6Vm85f/hwJyodNnGrsYfZkE5yVzZnl5b0L+Buka7n98KKPCfyrrBPnPbHy t2S3yaWFoLovSk6CasN0EGCFgUCfDRJaR1UPX5gIhRuQzoCbNKFYkPT/S2GprsbH9Qfb NoPQ== X-Forwarded-Encrypted: i=1; AFNElJ9iGfUcyB8iDibdRnxp79H6iZUvpbD9nJoTgXOBisEpz/hTGPcN2//ysQHc6F+qsWUfd9d3aP0soT6oIU4=@vger.kernel.org X-Gm-Message-State: AOJu0Yz4l2/cniXHJfyux8+Sw4KZiHUuipiZqJoV38idZmHr5spOKg/S HocvgNTkF9wJiRFF8h/ef/zPV82MJLkcb6lZLaXWa3qJptHnnzo/Bx2z X-Gm-Gg: Acq92OHvmDiAuoqgyhJRaQN+Rh+B1iBNl+GntuM5GLmzqd34C0IVIayx8ay4md6Awqc BTepmv0ExlfiTqXfrShtk8ICu1jtpFa2s6yfNiWw+pZzWOIZJi9fGPU5P+oCDA8sn2LgbVOX0Sv R/5V6nCqz24O6tD3O/eo9W72/P/2Dk1XbWvxRaxa+q56wA6i7HMU2C4212V1XuK6gu5a8a7kYWi 9DTZQPmklSe8sPumm26Pq2zvuqAYoLmmeQ3rTeLyXvmRiuPUl7bj18RNHGLbZXUwK0i3WvMNnt6 56J5OrvFgw7FyyeLkkGLK+1rc7mcNbBx9d9sKotiaQ/+096MR+86cDMNXa/K2Fpk1X4AqGbFqQl aLpurNDyappEAevXjTXmDnuy0JbWCrR3hGo5J8snxrmkKebtSKXtZLCX7lorFGA8hs+f4EC+ySh j9UPgaEOd631xK5nxvfz+MCFWICIYJFAquAiyBpphUnWz9z/r3NFAqgLGVj6+sZNAFyDqGZKM/k GzE/FHTLNTzts0g0fU= X-Received: by 2002:a17:902:cf0d:b0:2c0:c8a8:dbb8 with SMTP id d9443c01a7336-2c0c8a8dff7mr27171725ad.29.1780246826053; Sun, 31 May 2026 10:00:26 -0700 (PDT) Received: from fedora ([103.181.54.100]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2bf239fd24fsm99331075ad.20.2026.05.31.10.00.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 May 2026 10:00:25 -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] regulator: dt-bindings: mt6311: Convert to DT schema Date: Sun, 31 May 2026 22:27:12 +0530 Message-ID: <20260531165712.729635-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 --- .../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,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..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.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# + description: | + Regulator nodes. + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + 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>; + }; + }; + }; + }; +... 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