From nobody Mon Apr 6 09:10:45 2026 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 704052AE78 for ; Mon, 30 Mar 2026 08:35:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774859723; cv=none; b=HYDEnKxBgDrokiBuHAjJRj8k+4TUuBQsYLp9UEphYq4FrLY12RMf4r9MWJnKhmoF0Z33zTUBOLGJno2RTUGPJeBC7WGywawUYweBpsfy2TEg0IuCVb9VTvrwmSs+ymcOWnXEp+udu3A3OBm/VnbIVY6uuPuxY4jDxpHoKoV4Rro= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774859723; c=relaxed/simple; bh=sRQA5QLHO2sUZDXytYhE/C8tMIpR3aUH3LvjIZmVSNY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oo8iGixH+1AXA3TeCF9UzOJQkJoOAYX2UfU8is/YqdyaRSDk5eI6FXZCF5wuyxVoUh6mE5S1EE2pDhUW8n65OQutjWu35Gh/YwASMqL+lER2pbXCx5sqXYHmDmAlYqHoDspzKzcdDYpK3/+ZOueevlg8HHCWYr273u4Fc38DzBo= 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=MzpN8aJe; arc=none smtp.client-ip=209.85.128.54 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="MzpN8aJe" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-486fe655187so54350625e9.2 for ; Mon, 30 Mar 2026 01:35:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774859721; x=1775464521; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eZY/r0Q2Y0NxdHq45+egYGlikRLogBMu0oJhE3y/Rf0=; b=MzpN8aJeZpXu2RJOLjRHo1Srmmmz9+ALJEZkI2XHIpbr1OR6s3X26O43cYGDechbLp fzM7a/DsHbu24VsAMuvHVc1S06HA4lTvItPF0Vge5CS81xqA7A2u1FKsA4REnJbYlAc6 7qjRMvm9Lx5b1PSlf2T2YMT1P83+y4Roht7+Q6GO8Sj6IMo6Nv15hNgnJegmSD8Z5/qZ Vis+K51n2pqurFLni6dS3a9PAoeRK2EASIYtXB4XelzBzifyFDZnLXWKwn7hJqRffwvR 7pMazMt+zJdGVQiMvZn/qi6iaqohPzNHYKzysXd1t39DtJpDgpE7SpEajC4GsWaKX22n oGow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774859721; x=1775464521; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=eZY/r0Q2Y0NxdHq45+egYGlikRLogBMu0oJhE3y/Rf0=; b=F/i+XWBaehmisKMh3vp/Nb1AS6ih7zGm2KXIqwjX/OKDnFssZ54AMiZOi8yU/OzVPm yYluiZn3MDccTTSGn6tiMI3QeZToFfXCHtcaNLB/IqPJth7+4lCGqi3QSyk6/XcTdUZ+ InzEBb3ZD+LQ0C74p7o2R7Cn5Di0hu2dK0FlulygZZeyqfGj+2spVkN2hhg8/KK69VzF FoxIl4yFRzpPzIBo3w8ecRAKGY2TQwua1EcaUgemX2ET5Mpdtmn3EZe/ZDtkI7Bxj5KE akc0iVSrUaCka1JDt341sFtKqQGTZ/3lLkYAXYCZmTh8c1WS302omyv+1WT9JQI0k9Q2 xDZg== X-Forwarded-Encrypted: i=1; AJvYcCV5n1v9GDqv6JfFYSjrU3zSAmST3bubDQzt9hGKNF61Fw5EEOjMpWYgKGbCAo4ApcwwDLuTWkc3zc5jBr4=@vger.kernel.org X-Gm-Message-State: AOJu0YxD9jDrGjbL9eVmYS8bTsW9ypVeIwVRdixqYUobsGDukeS7Ua8c qtWMIUEXroveKhM8ep7hnTtZyFwoHZcGewR6Glt1AWfsn4V9s7pO733Q X-Gm-Gg: ATEYQzzBiwFBVw4maYo7VDWF/dDOprx+8RuGBXTT1aSTQn+e0yKyXEdjxjBo/jIgEdP X26n9CBYWSu2Uu2Mjvy1MMrTnmyE5h+E62Na0RfCAzWWiLr1tYe4UPRZ2Q7YP/BudEp4ZhkuyMo mPD3MMy6B4vUmxDs8ZMqBqqFLYaj+3SRnbQ0R8x9GYrVBbL2m+BUehBUJP+yHalBnG4+HSgv/uo u68oknik7huvPInKGlaX8AE57u2nmNWaQ9iFQDuVZizd50vgp6E+ZmPvFp2Rp9Rcu6vFwKodzo2 ymlzzlHl+3hc79k+U83ZX3lqViu8AzSD4DRSb5nUKrbd8qv4Q0Tzf1sGV6/IbWcQqDQ0tw0d0W5 BvQ+3Db5+t3TO/5RciEZjrM6n8LyphKHpLJ7FPCPx4f+5FrmPQUiioWXAt+Q4A0109ZDpfTjxcf kZ/fQvAVkN0P/NXcSGWtE= X-Received: by 2002:a05:600c:4e15:b0:486:ff92:63e5 with SMTP id 5b1f17b1804b1-48727d4583dmr192584345e9.6.1774859720682; Mon, 30 Mar 2026 01:35:20 -0700 (PDT) Received: from luca-vm.lan ([154.61.61.58]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48722c6b495sm508329995e9.2.2026.03.30.01.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2026 01:35:20 -0700 (PDT) From: Luca Leonardo Scorcia To: linux-mediatek@lists.infradead.org Cc: Luca Leonardo Scorcia , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sen Chu , Sean Wang , Macpaul Lin , Lee Jones , Matthias Brugger , AngeloGioacchino Del Regno , Linus Walleij , Liam Girdwood , Mark Brown , Julien Massot , Gary Bisson , Louis-Alexis Eyraud , Val Packett , Fabien Parent , Chen Zhong , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Subject: [PATCH v4 3/9] regulator: dt-bindings: Add MediaTek MT6392 PMIC Date: Mon, 30 Mar 2026 09:29:37 +0100 Message-ID: <20260330083429.359819-4-l.scorcia@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260330083429.359819-1-l.scorcia@gmail.com> References: <20260330083429.359819-1-l.scorcia@gmail.com> 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" Add bindings for the regulators found in the MediaTek MT6392 PMIC, usually found in board designs using the MediaTek MT8516/MT8167 SoCs. Signed-off-by: Luca Leonardo Scorcia --- .../regulator/mediatek,mt6392-regulator.yaml | 74 +++++++++++++++++++ .../regulator/mediatek,mt6392-regulator.h | 24 ++++++ 2 files changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mediatek,mt= 6392-regulator.yaml create mode 100644 include/dt-bindings/regulator/mediatek,mt6392-regulator= .h diff --git a/Documentation/devicetree/bindings/regulator/mediatek,mt6392-re= gulator.yaml b/Documentation/devicetree/bindings/regulator/mediatek,mt6392-= regulator.yaml new file mode 100644 index 000000000000..24fbaef0e717 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mediatek,mt6392-regulator= .yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mediatek,mt6392-regulator.yam= l# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT6392 regulator + +description: + Regulator node of the PMIC. This node should under the PMIC's device nod= e. + MT6392 is a power management system chip containing three buck converter= s and + 23 LDOs. All voltage regulators provided by the PMIC are described as + sub-nodes of this node. + +properties: + vproc-supply: + description: Supply for buck regulator vproc + vcore-supply: + description: Supply for buck regulator vcore + vsys-supply: + description: Supply for buck regulator vsys + avddldo-supply: + description: | + Supply for AVDD LDOs (vm, vio18, vcn18, vcamd, vcamio). According to= the data sheet + this is an internal supply derived from vsys. + ldo1-supply: + description: Supply for LDOs group 1 (vaud28, vxo22, vaud22, vadc18, v= cama, vrtc) + ldo2-supply: + description: Supply for LDOs group 2 (vcn35, vio28, vmc, vmch, vefuse,= vdig18) + ldo3-supply: + description: Supply for LDOs group 3 (vusb, vemc3v3, vcamaf, vgp1, vgp= 2, vm25) + +patternProperties: + "^v(core|proc|sys)$": + description: Buck regulators + type: object + $ref: regulator.yaml# + properties: + regulator-allowed-modes: + description: | + BUCK regulators can set regulator-initial-mode and regulator-all= owed-modes to + values specified in dt-bindings/regulator/mediatek,mt6392-regula= tor.h + items: + enum: [0, 1] + unevaluatedProperties: false + + "^v(adc18|camio|cn18|io18|xo22|m25|aud28|io28|rtc|vusb)$": + description: LDOs with fixed output and mode setting + type: object + $ref: regulator.yaml# + properties: + regulator-allowed-modes: + description: | + LDO regulators can set regulator-initial-mode and regulator-allo= wed-modes to + values specified in dt-bindings/regulator/mediatek,mt6392-regula= tor.h + items: + enum: [0, 1] + unevaluatedProperties: false + + "^v(cama|dig18)$": + description: LDOs with fixed output without mode setting + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + + "^v(aud22|camaf|camd|cn35|efuse|emc3v3|gp1|gp2|m|mc|mch)$": + description: LDOs with adjustable output + type: object + $ref: regulator.yaml# + properties: + regulator-allowed-modes: false + unevaluatedProperties: false + +additionalProperties: false diff --git a/include/dt-bindings/regulator/mediatek,mt6392-regulator.h b/in= clude/dt-bindings/regulator/mediatek,mt6392-regulator.h new file mode 100644 index 000000000000..8bd1a13faad8 --- /dev/null +++ b/include/dt-bindings/regulator/mediatek,mt6392-regulator.h @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ + +#ifndef _DT_BINDINGS_REGULATOR_MEDIATEK_MT6392_H_ +#define _DT_BINDINGS_REGULATOR_MEDIATEK_MT6392_H_ + +/* + * Buck mode constants which may be used in devicetree properties (eg. + * regulator-initial-mode, regulator-allowed-modes). + * See the manufacturer's datasheet for more information on these modes. + */ + +#define MT6392_BUCK_MODE_AUTO 0 +#define MT6392_BUCK_MODE_FORCE_PWM 1 + +/* + * LDO mode constants which may be used in devicetree properties (eg. + * regulator-initial-mode, regulator-allowed-modes). + * See the manufacturer's datasheet for more information on these modes. + */ + +#define MT6392_LDO_MODE_NORMAL 0 +#define MT6392_LDO_MODE_LP 1 + +#endif --=20 2.43.0