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 8525FF3D61E for ; Mon, 30 Mar 2026 08:35:33 +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=eZY/r0Q2Y0NxdHq45+egYGlikRLogBMu0oJhE3y/Rf0=; b=Vh2a6ady71a8Ut4mrfhRtPbFMP /d97Avm477EysLJk4OyxHUEKWRoKGy9KaD7KmqhQnJt2v1QvUeklOk6nPpXIqbfKIB9qTffwZSBtO drDQS1LYSSEH79dbDJEFzpijI+y4Ivo33JKeruUJiJZS6AnEpbQ4e9MaaWnLwGTu8CjyDlyWzNYz/ zgbvIBcT6o01DQdTjaU99FfU/MZrlxn6tOB4R0M3EbPA7pbXPFa482QZrUxNCJjbEMhqDRW+gW8ap 4pGJjYeZvCEfohPoNN0EnAkThmduNDAyIYuYSk1dcmL1unplX2olO4KWM6ZujpwbmUnwLXV+R6T/E PZZrFjEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w785o-0000000ArqV-1W63; Mon, 30 Mar 2026 08:35:28 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w785l-0000000Arp3-3DAp for linux-mediatek@bombadil.infradead.org; Mon, 30 Mar 2026 08:35:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=eZY/r0Q2Y0NxdHq45+egYGlikRLogBMu0oJhE3y/Rf0=; b=qPDq9lhqBRUZSSKG6xhFWKUSzs GN9N7u3zBy61rS2TL8lvcrW0dbMCoFJCswvGW2tvp+CR55UOgmXVrovatMpNwDj35AQ9a10SqLxND 6q8i0iEGvYTXFkAtDBEB2rpQ8mKw6yn/HH8EbpqaEg3QsJJzBtFo8bSaeAjK0xgs64BRubmLfy+pm KJNDo+1jFUEhhZQiwB+eMGsHZeTJb5F8JgN+Vf0UHe6xdwIMIV50FrOUlZf5whEH9GrHt7LMZSV5f JINdJ8TfSOTxr+/mtQAlIPzgMLRHbirdAKEjJAvzYS04SKDdlawVw5cBpUFyq6RvfI59rznPNjWS4 GoeWYEVw==; Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by desiato.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w785i-0000000DKMW-2lY1 for linux-mediatek@lists.infradead.org; Mon, 30 Mar 2026 08:35:24 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-48374014a77so50158795e9.3 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=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; bh=eZY/r0Q2Y0NxdHq45+egYGlikRLogBMu0oJhE3y/Rf0=; b=GDgHF++bpqaWQuHthmwm+odE1Q2k6LXPiwwEFLW0XfImurCUlrdnQuesNiZOXWEP4r rhiHFEzpo8vj+xI5W0zs11ghAHy8q0jUVXrveQ1OT1mFWBrIPpMUWFuGCtVpUtzWugCS 1FoGYnmY+NJwtT/mF1AScTBAQMslT4XeMFjI1NcO4gq0QJkArBCSbEaXUCO8N+cvyDZl IvO373TrY8McLnSoFa6gcrbRBionP/0AOv7WhAtudFePDG8ZHUgptjWMhk6ZTRqYy0Kb zBs4zoMmptET13C3vn7JqxDAb4ipVQCdhTN6JZeakJyj5Jd1xorRenkoUS9MrSW2tDh7 L52g== 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=a/hQO032nx/e72ve+4QfM5wNi/cgrcEZakuVWUek00lsF9y2AUs/cWTg4tsi2leJmp 64+EnmJeLR8QiuPpHTVR9oxZFyOCUXpeZz5SLbkVUGj1oHdL0bihrvRWSrLbTVbaCUhB l4Y7YWEGAkNS6n+ckD++9X1Rug38l6wb6/Rdmst7stSyAnpsd8FEOTTorPeeFxP8Drqu 6BJlFXYxJ965hRF4dI8J6ViQo3GZ8wV/GZE4b1JvnMBEQebb8VDQCt64a0WEneM2R6Nc j3azWU2kKjegO6+Z83XS1LD65kZxuXO3CrzZ1kRG7IHdjcSzaZEdEaASCf5GKi42wDVY NKxw== X-Gm-Message-State: AOJu0Yx3cvSH6iog63Plbw0Y0kt3Hxmm93qBNOgNHYVyAM/LkzMy4cOJ 2LmyFn58AkX+SMUsJLzwc4mjnN2OZEeJ0I13/5GGf1uCmIE5RFeSDrMa1VcF6tGO X-Gm-Gg: ATEYQzzg3NCGC8sBzuprWovrywXgPIuQXwXgPoKr9LEK4TSiv6x48Mrv08uEGWezQgq fAXDMtIlKfDHHzm5OrMMrZbDBScEjm1CI4SJ3JiQ3EtYMLnBWWLiHtRQqdQDw22Cnadxaghsleu nQxQI75yaW5TKBU3/DOMZ4uEU8MIInQBFinQRtJncQjrHaNgcfJHfFCcmqLh9AnOpNGTK2ghGMn oOu4rltK2X9sQQQIFIoqLVoi/O2opGq6RmKhHJZ17hCIBQMRoooACkemS9GQZmiG1sv07znxlf6 Q2adMhzYvS16Kyhwa0nKRnrmcir5enT3h6mhPOYSQA2yWFmOX+GzQ11b9LgejXOrjHMgSCmSawp nOFoLQAKx2YPFbMPm4mBq46nCf2iai7Hz7bQOPB5VeJRGrz0pJyZIXcTuXO8InrtMAatAyH9t+B qWL6w3cd+lYSluejKwtEg= 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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260330_093522_794049_96E57CD7 X-CRM114-Status: GOOD ( 16.37 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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 --- .../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,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..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.yaml# +$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 node. + 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: + 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# + properties: + regulator-allowed-modes: + description: | + BUCK regulators can set regulator-initial-mode and regulator-allowed-modes to + values specified in dt-bindings/regulator/mediatek,mt6392-regulator.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-allowed-modes to + values specified in dt-bindings/regulator/mediatek,mt6392-regulator.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/include/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 -- 2.43.0