From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 871B0273D6D for ; Sun, 21 Jun 2026 08:17:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782029857; cv=none; b=lUQQW0d5OTL3sUPLAQAv81kXgvLfGQQA888gBZcVwnGQbcE2AZlHQa4ezIBkwpq8/GMNaSP7DwoRTrEsWyvdfJYLLowmTeTASYoD+lKi8E1inY4DWv44D7/+RErINf0O7VRnfrfI9GtywDrXzcrfBIQ0QNNkPDSm9NVLZJemiJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782029857; c=relaxed/simple; bh=F1QcPOat0RlFGGRV77vX76GE3Dt2kaecn3iVPXEQx1Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=czeGAXW3OODll84EvuOc8Jm0muaSkJsYlmGMHdesweIFs9g0Qkn11ISyEs74O05ry4uNN9w7m61RfY5Lt4KOJvLtqVXKC66t3qXsbDEyzq2hjtRyJMWBJw0n136/vKLMDdUsvbVGddKlrNURcgtDCD1xk9l5ekuk5SJIylt7OWY= 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=SV8xpK6r; arc=none smtp.client-ip=209.85.128.50 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="SV8xpK6r" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-490b1bbcf3aso21587085e9.1 for ; Sun, 21 Jun 2026 01:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782029855; x=1782634655; 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=cr3pdjQhJUwUIpy3MtQLNp8w7Jmlbm2OlpXRHc3g1wU=; b=SV8xpK6rcliFYMNL1/dsunswNzQjAqMWqlS/ICaJ725GNJ7VnRBol8RMm1p/6sFlhH 9dCPi1dlYmP/bX7M20TUNJmzAG7Z7fFKZsKSuuXLmM4344twB8yDVgNymG05MAi6WpNu +LmMYq3c1DGd8GB485TFjhp/AAxXGoHUA+KfaRolNxYDnlUD4HBY+Awjm6q37orlpyps qrf5qG9xNCiSTxQa1/vQ8VpHYxnylASWsDlWqrEjNXE2t1HfPkanWPN5q3OL5yu3vbZQ q0Pk3goVr4E+eQOA9jel94CX+sayn4YmLH8m6wKKTrvzBSLOuNxsiZ1ENqb01It4fWkU aj/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782029855; x=1782634655; 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=cr3pdjQhJUwUIpy3MtQLNp8w7Jmlbm2OlpXRHc3g1wU=; b=Tap1nu0+u1ospAwNTePoktgNj7h8HSbb0emzKFbXLA8ZY4dm4Y24S9No1BUu/FNeIH s++GYFFizt5UM2dl7vgYJhZEXfsPzaIvDXrs16F5As6WOEif+zZ4R0mCraPWd1B+lFqg cbd3NGzRvxDDRMoixp/Y9aN5ZHFrhZ/mBqvMKgWlXx5yFm0Ey0F4qgubP/cQv+xsbJrz bQ10USbfug/+k5KvnFKLHkN8FeD88GxsBA5/1bD9kqkjS2fT4wG+c6VJzz4rNTvftVEg AaveEeFibsGA2VvOtR1MuqDqTJAdFNxXOZbWdAiACy/J4WEbM7SoScO8QgO9TmSeSPm3 No9w== X-Forwarded-Encrypted: i=1; AFNElJ8xmF4srLKBtDX1aPdM+tc6nDcPEoAAXTHwpufxJro0ECSWLaTFDH2QnPDPlqjKZNzhEucL6yi9+ikFiw==@vger.kernel.org X-Gm-Message-State: AOJu0YzR8DInl6/FwylvPUbrFcVECR+AfJT8zyE0eZZ5Jy51JzzKnHKZ VaOPwwgMAUVkMr4SWMJpvl2Nx/IfTGTS4FlJYANOCHYIiHo6NwkX9Mu8 X-Gm-Gg: AfdE7cnRFT9+t7j5y3lLqgmwERiUfqfmxFy/lnyq6bsVc9UFR6yJ1PSB590B4efBq7C zHoGrf5ptXmZe8YqVt4kUIVpYquA0rFuTjXjoL/6zaOFVpL6IZdX6l8BafLfz4A9fMIVfL4QFvx l++LLFLeaervqJ1/oc5fJxG6eomdQwFyZ0NEl8TL1mJd756ly6G8oqoBdsvhet278HzH9DF+ciZ TT+10vDpQT/mGTSvrsO1fbE/M0FMZ76Ofr4LO7xZhQFtpRcekMobgGOdlsHzzLhZpdluOI4+cJQ vUM8n44BlqziYMX0cBtuz7+2VP0mj+Bb5ruCCA06z4C+xbM+/irpZ7UqBt6Sc+CMC/vt9GIi47R tq+8EPxmAzbzw4+LChYkgsKDxABgmUDjGWgS3BJEOJbTy2hZFMs5IAC65wBqYzZ7ffkcGqNtrb7 rNZC+hEQ== X-Received: by 2002:a05:600c:8b4c:b0:490:be1e:6ce6 with SMTP id 5b1f17b1804b1-4924908ab39mr81863715e9.9.1782029854882; Sun, 21 Jun 2026 01:17:34 -0700 (PDT) Received: from luca-vm.. ([81.56.18.151]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4923fe7b9e5sm194100445e9.10.2026.06.21.01.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2026 01:17:33 -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 , Liam Girdwood , Mark Brown , Linus Walleij , Julien Massot , Louis-Alexis Eyraud , Val Packett , Fabien Parent , Akari Tsuyukusa , 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 v9 3/9] regulator: dt-bindings: Add MediaTek MT6392 PMIC Date: Sun, 21 Jun 2026 10:13:28 +0200 Message-ID: <20260621081634.467858-4-l.scorcia@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260621081634.467858-1-l.scorcia@gmail.com> References: <20260621081634.467858-1-l.scorcia@gmail.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 --- .../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