From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ACF47C624DA for ; Wed, 2 Sep 2026 19:35:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=F23t8iLTcn/LXqN2lEEgBTUnPAkeyO0taUnuYVGHe48=; b=BKSiLx0F3E5N0FViiQ58gqpgIU S1FdO08y7EiWPgfNKwE8l+XA/c14kw/qpf773WkQXA2VNLUWEbPuf8fTtDO3QdNNQkF1bLhZ9VrNg vesn25uckceRM3QaBnCwxzKzCkQm8vwspbmtWz7offA8mkKo8G7FMnDG2C0na7x+R1gAqJ1Y0XqRN P601LjwklBh1158o3D1KQkGrPhrZ7xalZiH1RLrL0m8dfbfIpj1iCiunfZDi/htlnzEL/amu68fdE QhypEBb0E+UaY+1BmnloeEIl53K56C90YYLhBYgQLlkeyeT4OL+P+NPeYMMSDexzmlPIH8GRSsrpT 06JxXLHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x1qjs-0000000FjGE-2TWS; Wed, 02 Sep 2026 19:35:16 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x1qjZ-0000000Fj7B-2myn for linux-arm-kernel@lists.infradead.org; Wed, 02 Sep 2026 19:35:11 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-485538d3499so1062716f8f.0 for ; Wed, 02 Sep 2026 12:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788377696; x=1788982496; darn=lists.infradead.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:content-type; bh=F23t8iLTcn/LXqN2lEEgBTUnPAkeyO0taUnuYVGHe48=; b=qmzOX8KCFKKA0CnG0+JxjiPcWgIXmze9pBYvVjnlONUV/f2AEJTJpNTnyQmzSdDjS0 c70g++u4ssNitcYUreodvSdU8lj0tMXS2ZfsN1e/ZAvZYfWWmlpUekJI5Gx12lqHS4ia wnjZ07DLnJbP508PEsWhKAhggEYnXs8Mnqukr/fL65SA/Qp4LuGJvvlrc9mzkOpYaxYv SfkDbqSA9G2DLEM55QjazESCupYH9IiITYWCV4X7B7oFH7BetgB+P75U1zmHr/BP0zhW 1ISim5e6rpjC06cIllP6rSOQGOrnN087IjtGcdO5afF0JixfUVhOpJRaqb9MK3aPTmPG WBKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788377696; x=1788982496; 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:content-type; bh=F23t8iLTcn/LXqN2lEEgBTUnPAkeyO0taUnuYVGHe48=; b=cw/i1NbwbV4o9qkaeVJx3oJQIEE+OLad1Is/pjBqgQ5IyqRQZeLmx3DAH/VkN74v7S E5jGfgHDiEq2Bxj6mOwKop9i6SLnBr7fC99e8DTO6E3B/+YAeYR2l/rLKtvzKTkKhP59 NTMiHwxwZKQFPRiC6n+/R+XJDNwsf7obhMWBA8sMIBtM9Eftsc27d5uwhLBSsDvl0J2q KYwd2Rkn3A04UUm6MBPDzDmUHcpFWYs+Jd2MDr5ZIo7ArBHn1mX2bT6QxUc3uNpeVnhy H3cs5B0amsI8d3LHOTnXzY3xJKD8FzC6CxY//HPzQHgqbQdmVcRb6wuYTEj2FmOM28RK ohAw== X-Forwarded-Encrypted: i=1; AKwUvBzI40NkOMc6bjtI52gmM9RuNS9ahAe5jNoB874E/Nt+/25Sbjn/SljEOjBNIRu03/lrruFWBPdVlyYvIbt91kdy@lists.infradead.org X-Gm-Message-State: AFuF++mhVMho+POID41HWt43nlTa9mBnHimD7IVibZqwbQJpWk1Lqst9 k63Pvgn8MSc7N0t/fC7zufeI+C0vHa8DitzJ3R9wfq+OWs2tt1mKRRHj X-Gm-Gg: AYBFou2TMUG6Di0gBS/zJOwJmXcb8dxrU3kfS8+t/BxitiabNig4C5c++5MyHbsQ9sr wlCV/XdRLhYLnrxp0bZt+U2RTFogruFYkdx4B206V6SLQxQyNlaaDrWY/639s8AdRuTSYREydup Rtvolkow8FntC0/v4lt11UgRgZRLWxv2yF6Ao9pstyLjmqXP33zVxH5S9IIid4kfb6WK7yyQWmM THsuOe8ZSq5KSvszA3qYyVhkXGPuAHgtn9bTWwXohHE3JAH8ReSKui5STg1jXM4rtnfrby8Bhhh 28yc6f3oW0cKUKJg+q1JZpn3Eo0WDSCgN2CP1oSV/ivPAQ3eYt5n11X5NVmiNXy01lnI+dyYJ+8 HJ4sR0i8jkuMqUNb8/jvW3Bev/BjuhuKI3SIyAUdIrueHuI9gqjER2yq0+IE6ZLpUnWNykrALXq +fPX5AEQv8Zv49kGcdvtbw7ovUcEWMvLH2uFwtfO/MKCu1N/n+AzRRPwL8 X-Received: by 2002:a05:6000:188f:b0:484:3d1b:7871 with SMTP id ffacd0b85a97d-48488f1b05emr14960874f8f.19.1788377695627; Wed, 02 Sep 2026 12:34:55 -0700 (PDT) Received: from luca-vm.lan ([154.61.61.58]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-484492cdc37sm8889191f8f.34.2026.09.02.12.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Sep 2026 12:34:55 -0700 (PDT) From: Luca Leonardo Scorcia To: linux-mediatek@lists.infradead.org Cc: Luca Leonardo Scorcia , Krzysztof Kozlowski , AngeloGioacchino Del Regno , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sen Chu , Sean Wang , Macpaul Lin , Lee Jones , Matthias Brugger , Liam Girdwood , Mark Brown , Linus Walleij , Val Packett , Julien Massot , 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, mfd@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Subject: [PATCH v10 3/9] regulator: dt-bindings: Add MediaTek MT6392 PMIC Date: Wed, 2 Sep 2026 21:25:39 +0200 Message-ID: <20260902193351.185771-4-l.scorcia@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260902193351.185771-1-l.scorcia@gmail.com> References: <20260902193351.185771-1-l.scorcia@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260902_123505_042667_5393A4C7 X-CRM114-Status: GOOD ( 17.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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