From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793908457; b=DF47r2IXTohaOVpDm/hea606tt1YB26i0IBOWkC0EuxxBiStI+0GJyEEiSps8QbvQAkz 8Z5fwUXkGzBRMTZQtx5+rESzTam/7E241pd2n5ClKG1qpv+WIPNOOZgo2XinwskA4CUVZ 2EFfOfiJ64ghvxgiC7eXUJyWwUU8K+EHf2QKY9EyiMwfF+CDVCh5RbYsrcJ4VYzWG6XSi m1fDTqN6/p4E6q/xpdif4wpLfIeNb3IL7U2ccrp1bmuGeXklu5MXJPLBrz+Mk7aNa8IeO xgFbJkGL+6AUJ2RgGEUcNkSGBoZhvruVS59SBs76bzDKMDWVnCv9gZcsqq/Ut6LMxrw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793908457; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=F23t8iLTcn/LXqN2lEEgBTUnPAkeyO0taUnuYVGHe48=; b=bOz9I/EErlhHjZrhHKpgJpSRngEcRO4ZTmF6fcTfSO5nvhCP7K9J8VxGTxo+Q7plpdkr rOGCKwFflg8qwmuWWlr7I5ToR7I3IsVp/wr4YJBpXXcve7nhCu/rGAhiHLOneMutdF0rv hmQydbKcX2H3rNPYnSy31mkLAJD9g3tdGFp312634EUwrOGIFw44uK69V+aqpP9BmO6Fp UkG7woGQ4JJjH5fcgkI+Ap/H67Tj8CFEuqE7i5IYINTmzg4VvPdCeG0h8klnI0NQiLoz8 4nXLoL1VJrbMkDmiM8+7MUIy0lAoJ9eQ9Mt5OJSLKyFzbMP3sxtBEc4GKaXNz/to1sg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=TLSAlbea; arc=none smtp.remote-ip=209.85.128.50 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 227BD606B9F7 for ; Thu, 5 Nov 2026 19:54:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 227BD606B9F7 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, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=TLSAlbea Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4a3517554f7so19869095e9.2 for ; Thu, 05 Nov 2026 11:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793908455; x=1794513255; 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:content-type; bh=F23t8iLTcn/LXqN2lEEgBTUnPAkeyO0taUnuYVGHe48=; b=TLSAlbeaansg0obWrRFjVue5VIj8K54CuD58TZVYawDVa4jC5Uz9kGlj6X+bQBpoU0 RMBDWWyagEX6GxxiTtav2lZiMx51AzWiDd242sMFyg0JYKbuAIclvNHGXMYeBoaF+GEj dO6CXIPqvt5I+wkTxKYuSbW45HO2URYgVgVt/5cuL14Mh4l1eNjAHwZeeXdu/qLd+0yr Ou9zJcL2JKJD9DPQKkK5QUMeAHOxDNl//pWvCBpXDBjwS9uRqP2i5lNvSNr35i6QXNoR vUexFPZPxi0E/3kIuJbVbmK6ODD6pGq+a/aARv0alyMkBu7IIi6a3cwcKGqYTJpDrKXL Sr+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793908455; x=1794513255; 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:content-type; bh=F23t8iLTcn/LXqN2lEEgBTUnPAkeyO0taUnuYVGHe48=; b=E1ig2Jw1ePjMgBh8KctOiUjKLP07znG7ryR1/A2JogG7EskMUzMFgxQKOB0h9genYg HH4U06smRyimPx2RtXY3Ac+7Nxiu5ZyQ2FbxXjzdrQX6C04tSRzFnZRC7lQ+gEWOg+lW /acw8NURwyjW/f2g1ZB/w72ndGMyi8DqwMTwAcE162jACbvA43xWwgUw4yGFs21uRgXa pwZJV+Fa9GpPM7B8IbBreL9wIdRbWDCIN/CzfKXeXJ/KL/qtERyvfA9Iw0fHZSF5F0b6 hMVbtQkh4vvqq6OPwg0EDRnjWAAGcQhZFO9iYCYG0+VhRj1iJ7nCUbxcFZErUxTl7pD1 3DxQ== X-Forwarded-Encrypted: i=1; AKwUvBzAFQA9p8c0ikhtUqJCCojb18qiuiLL3kM0pTlJzsf1n/NSXoypHYpw0KuyUDye0r8EqRztwOmOcnu7luI=@vger.kernel.org X-Gm-Message-State: APuU4Z/tXL+0bAl9xUkw4txFSz5G9XGbljIIOtyNP0B3RLQmv+p64mJE ydwzOb2YJ3YuuBA9tBpLmdnHms0HS5WNC0epL8rpEWrWZiLuj87izVTo X-Gm-Gg: AYBFou2c9cLWVhNtxn2RZORON/o6QT1aymNiXDgv/tRp7LI4/jw/FjnNdkTwJyzzqtf efDGLYLtJ78JPM69+jklehqfLt9fx/AR7RJwhVXl6FxoeG3z9AYdIIa2ajaTqCshjO3AkvDCa+S rP6Dq8g6qqImZiQl0AXdk8Q61r6Aa3F1kdvVbk8vq2opdLxSg157Ux0vG70rhTNzYoX6RnX6tlp fGJbmDqi/CslqEJ8gOAKuNCDUlUOiJg4x0Vi9JmJ57zlfMjE7KWL/oadHJTWb9OJ+Mmn+/MHoFY kPn59IQ5lQVzNe9sgHl1/jRwRUWCQeV/IDElC+MxVtY11p7Id1jNxyTk+f/WrsL3vZM4hDOr9Mo vqVKw+jWIYCsuzryg4Ty2GbIop7U6Y2vGvy1ksIkK5K2S5MfT1C+Ts2BSMpCaDumKF7onrhXMwY dHvixCv2GEipW9SBjhK6gayTEXy53SHK5CCZwzYBoHlzA3i7xwIZIiWAKX8XF6lgR/86IYKskwi E76Tj+6gV3lkQ+oRGIz+dFoHfxqL78zvzHLQSAt7AdgaWZKmyiDvOzMDWdlkuDvDPIVpnI30ks9 rmJgjz9vsmlyezbEJKStOaQYPLB1pX9ApKbi3QopAmsmZQ== X-Received: by 2002:a05:600c:3f10:b0:4a1:777b:8a12 with SMTP id 5b1f17b1804b1-4b6dea69280mr3035835e9.14.1793908455226; Thu, 05 Nov 2026 11:54:15 -0800 (PST) Received: from luca-vm.lan ([154.61.61.58]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4b5725fb0d1sm83862895e9.8.2026.11.05.11.54.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2026 11:54:14 -0800 (PST) From: Luca Leonardo Scorcia To: linux-mediatek@lists.infradead.org Cc: Luca Leonardo Scorcia , Krzysztof Kozlowski , AngeloGioacchino Del Regno , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , Dmitry Torokhov , Lee Jones , Sean Wang , Linus Walleij , Val Packett , Fabien Parent , Akari Tsuyukusa , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, mfd@lists.linux.dev, linux-gpio@vger.kernel.org Subject: [PATCH v12 3/8] regulator: dt-bindings: Add MediaTek MT6392 PMIC Date: Thu, 5 Nov 2026 20:50:23 +0100 Message-ID: <20261105195206.3440-1-l.scorcia@gmail.com> X-Mailer: git-send-email 2.43.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- .../regulator/mediatek,mt6392-regulator.yaml | 112 ++++++++++++++++++ .../regulator/mediatek,mt6392-regulator.h | 23 ++++ 2 files changed, 135 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mediatek,mt6392-regulator.yaml create mode 100644 include/dt-bindings/regulator/mediatek,mt6392-regulator.h diff --git a/Documentation/devicetree/bindings/regulator/mediatek,mt6392-regulator.yaml b/Documentation/devicetree/bindings/regulator/mediatek,mt6392-regulator.yaml new file mode 100644 index 000000000000..d74721d8f2ff --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mediatek,mt6392-regulator.yaml @@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mediatek,mt6392-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT6392 regulator + +maintainers: + - Luca Leonardo Scorcia + +description: + MT6392 is a power management system chip containing three buck converters and + 23 LDOs. All voltage regulators provided by the PMIC are described as + sub-nodes of this node. + +properties: + compatible: + items: + - const: mediatek,mt6392-regulator + + 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, vcama, 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, vgp2, vm25) + +patternProperties: + "^v(core|proc|sys)$": + description: Buck regulators + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + properties: + regulator-allowed-modes: + description: + BUCK regulators can set regulator-allowed-modes to values specified in + dt-bindings/regulator/mediatek,mt6392-regulator.h + items: + enum: [0, 1] + minItems: 1 + maxItems: 2 + regulator-initial-mode: + description: + BUCK regulators can set regulator-initial-mode to values specified in + dt-bindings/regulator/mediatek,mt6392-regulator.h + enum: [0, 1] + + "^v(adc18|camio|cn18|io18|xo22|m25|aud28|io28|usb)$": + description: LDOs with fixed output and mode setting + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + properties: + regulator-allowed-modes: + description: + LDO regulators can set regulator-allowed-modes to values specified in + dt-bindings/regulator/mediatek,mt6392-regulator.h + items: + enum: [0, 2] + minItems: 1 + maxItems: 2 + regulator-initial-mode: + description: + LDO regulators can set regulator-initial-mode to values specified in + dt-bindings/regulator/mediatek,mt6392-regulator.h + enum: [0, 2] + + "^v(cama|dig18|rtc)$": + description: LDOs with fixed output without mode setting + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + properties: + regulator-allowed-modes: false + regulator-initial-mode: false + + "^v(aud22|camaf|camd|cn35|efuse|emc3v3|gp1|gp2|m|mc|mch)$": + description: LDOs with adjustable output and mode setting + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + properties: + regulator-allowed-modes: + description: + LDO regulators can set regulator-allowed-modes to values specified in + dt-bindings/regulator/mediatek,mt6392-regulator.h + items: + enum: [0, 2] + minItems: 1 + maxItems: 2 + regulator-initial-mode: + description: + LDO regulators can set regulator-initial-mode to values specified in + dt-bindings/regulator/mediatek,mt6392-regulator.h + enum: [0, 2] + +required: + - compatible + +additionalProperties: false diff --git a/include/dt-bindings/regulator/mediatek,mt6392-regulator.h b/include/dt-bindings/regulator/mediatek,mt6392-regulator.h new file mode 100644 index 000000000000..2e1f41e0ebfe --- /dev/null +++ b/include/dt-bindings/regulator/mediatek,mt6392-regulator.h @@ -0,0 +1,23 @@ +/* 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_REGULATOR_MODE_NORMAL 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_LP 2 + +#endif -- 2.43.0