From nobody Thu Apr 2 22:24:26 2026 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 87B9D28C874 for ; Thu, 26 Mar 2026 08:11:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774512678; cv=none; b=B2JunKkL3gW02RyZ2hgWWuQYRcxs7QM5OM/RkXDqUYl63Qj/2TnOiKjvaT4R6oPoSnd7EI1TMLmhESNC8pySKa7815CtWcfgCJko/RsToXyzhVWLJqmh6TV+KQB6BKv+K/kV5AEvtGukloasRNWV3pg0nceB4biomL17QWZZ6wc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774512678; c=relaxed/simple; bh=EwuUqSjuq2TpsCXQyCsGq1NKjJLMxuw+FwCTlW/eit8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X1Mn8ZudZ31LrGHmm9HER4VL2c2Ebz2HKNxgXzYs2aMoXcLxip0bu3R2GhBTTlE6/+ubpqfC9ErMFL1hP6YgCdaQA2i9TNVy5Yw/IPe/zLCfsRDgPnJ/AePcux6EohGA9f+BEasfvuImsa1JnzQyPScuZmW9QSsC9CzJztrzols= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=XLgfpQUB; arc=none smtp.client-ip=209.85.216.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="XLgfpQUB" Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-35b905e9dc0so440338a91.3 for ; Thu, 26 Mar 2026 01:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1774512675; x=1775117475; 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=YEBDbGWMGSNIllBw+P70xdFs4cNvWJCEJNsNL7NIicU=; b=XLgfpQUBwbykWXAf8HVrBD4jQYZ7bKkvDdqCm2im/JKD+aqKAfMCTjaKiPMxlgB/Ox HoRC73e181ue19DfYfilCyi6NvfzgGlAILMxBRZje48HYojBh+hjWH+F0APkhq2tlIy3 OqTNZ2Qf9O0OUdSUR+UYd7ZvcZY+uiRtjZ9K0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774512675; x=1775117475; 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=YEBDbGWMGSNIllBw+P70xdFs4cNvWJCEJNsNL7NIicU=; b=ZGA0ZC+O6y0LkPRqCbkUWpPGIvtDnOWbG6QEQ4J+2j1717FOqlhNWcaWVB+I6dENkp OYm8CKdxyiTyGxBuHcwGUx3rc8O5TjIZi263YRzsJsHFLQSLuAx1GFuXUfozXU9cr/0R qNs9fL3MgLL8Xp07MRCSaweNIYTjGS9sj+Jm4WeiVpa8lXvT/amQ/g0ROhrlFcsxi/rI Fqvmenh8chJzVQFDEJtMCHX3g+TrFI8xlbd9LjlO0fyqHieyusymMivSMwPVDTf4HuUI n2YFmv5ReQ46hSrQbqjniJfE8Tb9bYEeqHOZ4iUPllbv17FQ/00GKaEEa2jIWs8aMcPz Qx6w== X-Gm-Message-State: AOJu0YwNe5HO4EUr/GQqsgJz+UpxzYhuDk8d+edcRu1LlIUxCvVw1j/r YGc8j1oQKrZXnAtoF773FWRilVCKwIYh7esv1tF47beHbn0k1AycH8l/PAaCVoixKw== X-Gm-Gg: ATEYQzwCMIuN/3rnPbFaxulBQ3U/0BiBOFEpG5bhmwvXu4+JUa8ccEbJiwctmw4Me4r nc6l/LgCl/eWRNByFMrJ/PGKVFMFxAG9aW5Bg4PPeVZ0cj+rZ29+KwnE38nalWxmVjbLVcANnPq bkfjXB5YQoHd4dFV3pE9rU/m3MGVwFwDf0BclT+N4vdAepk5QscXpO7i3PySZ5GtF3+7j/7xnPy BhZAJAlsIucuvCIZBjDhXqojDCrHD3ieLNMHpqFIheRep1V+02ptevqGZvoH4/N2E5wQcYgiv5G NNv4yLr9S3AUJ57wMmWgfI55sOFRYhXvoUJgkh4x+E9hBeDaSLjUw9oeijigSK6hztEILrT6iAj WIHUiuUnlZ9cZybba+ryLxz1fwgB7SPl33nuljsl0zW20fJLlyI4fsDsfDoEnGA8mSaoOfFT0g6 iTjWxUem+zolwtfPWP9a+01jlj4JVf9OsjNjQtCwtKG9bVlqeoytdXMvqcPP21Z3xmBhcsE32u8 nJ3l1D8 X-Received: by 2002:a17:90b:3a88:b0:35c:9fe:a58d with SMTP id 98e67ed59e1d1-35c0dd0949amr6018363a91.11.1774512674744; Thu, 26 Mar 2026 01:11:14 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2a00:79e0:201d:8:3ed5:7e63:b37c:a7d7]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35c22d09573sm823452a91.16.2026.03.26.01.11.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2026 01:11:14 -0700 (PDT) From: Chen-Yu Tsai To: Mark Brown , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/2] regulator: dt-bindings: mt6315: Add regulator supplies Date: Thu, 26 Mar 2026 16:10:48 +0800 Message-ID: <20260326081050.1115201-2-wenst@chromium.org> X-Mailer: git-send-email 2.53.0.1018.g2bb0e51243-goog In-Reply-To: <20260326081050.1115201-1-wenst@chromium.org> References: <20260326081050.1115201-1-wenst@chromium.org> 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" The MT6315 family of PMICs has 4 buck regulators. Each regulator has a separate supply. Add these supplies to the device tree binding. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley --- Changes since v1: - Moved *-supply to top level, same level as compatible --- .../bindings/regulator/mt6315-regulator.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/mt6315-regulator.y= aml b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml index fa6743bb269d..1c63265907f1 100644 --- a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml @@ -25,6 +25,15 @@ properties: reg: maxItems: 1 =20 + pvdd1-supply: + description: Supply for regulator vbuck1 + pvdd2-supply: + description: Supply for regulator vbuck2 + pvdd3-supply: + description: Supply for regulator vbuck3 + pvdd4-supply: + description: Supply for regulator vbuck4 + regulators: type: object description: List of regulators and its properties @@ -49,8 +58,11 @@ examples: pmic@6 { compatible =3D "mediatek,mt6315-regulator"; reg =3D <0x6 0>; + pvdd1-supply =3D <&pp4200_z2>; + pvdd3-supply =3D <&pp4200_z2>; =20 regulators { + vbuck1 { regulator-min-microvolt =3D <300000>; regulator-max-microvolt =3D <1193750>; --=20 2.53.0.1018.g2bb0e51243-goog From nobody Thu Apr 2 22:24:26 2026 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (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 E729136075D for ; Thu, 26 Mar 2026 08:11:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774512679; cv=none; b=WUkqUvJp0se+YzsmsXSkYUuGh0OcCmXqwJmAUK5cNzm/EtwSq14vR3KnWPuql66rG9AppgChLkctixJ+rIbiake3n8zxfyF91VDJ8tMT6/khrRjS738KJbLjqIvQkCrqYzL/eZdrG1Qd74y4Qth/lN19l+fww4WGNcBn2gqYH/4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774512679; c=relaxed/simple; bh=WVD+oQYU4DDjFVTcmhlg4TA6UdE36jaEIjF1vHU+HN8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Da2eJds878t6QRHNKSR+fr0GI+yw4uUIeOlWabnQ/fbQkDqTFWMAf82a5t3UBrHvJ/7xpTeva0b0GZ6MWbdSDBlbd4g29XsxFBnnE86kjbZrxml+OlsaQbof/AIdpmcZB6oN6dOJwh2MUq4uZuBnA5BGAvG2EnftVhyDlc4jL1c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=kKBP9zZV; arc=none smtp.client-ip=209.85.216.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="kKBP9zZV" Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-35c06831dd3so703146a91.2 for ; Thu, 26 Mar 2026 01:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1774512677; x=1775117477; 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=CC10WFWDdAyN+TFjNPYY2y7LqaKz7gtKkshZ6FuGwXQ=; b=kKBP9zZVmWQRQnekQhtilcASqz1VnyBnkhl1pze2bWbG3LPGTurbXoG3/hV+ud6qYD gIMensIMDP6u+N8YqLdkgxmGJD7dCixfANwlWV8BOL/ww0+6i7akQU13G72Peyt0T3FB LPfSMGP1CjCfvaAvOpHreRp8RYkMcwkSPILKU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774512677; x=1775117477; 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=CC10WFWDdAyN+TFjNPYY2y7LqaKz7gtKkshZ6FuGwXQ=; b=VNYI/6XNFFP7jSovc1mGURj1MVoy9dWo6gULbmCGK2Gl8QK1qxk9bv+nZQ3pLRs12K 0C+78oPJ41AdZa0bEk/h4FOiFzCJX7ZUDiM8P7K7IDN4E8CRu9JuvVTd+rduuBCfkwLk 3gtqj3mtv83vaq1O4G2Gv6CebnZMVXn+Y1sSXszBviJXU5uxdcwL6myytp4a+4jMD7uI 8MPpd0LIVM/SYvmBFUTtYhsXHIEhVEyHKhwUYZOllPXZyfsu/Gx3Ust72mJG9lBYx2LH o6/czuriaUMHnLAjyNgqckTcgruDmf2SBIR6rRByA7+4I1JF1xZTDgDfB5lb7sYrZr3n VLUw== X-Gm-Message-State: AOJu0Yxu+f/zoTt/ei31pI0KgVhpObXDXbr0+330bAu4gUNIcJKZqIkw UcoCUXjybtX0BbeVu8p1i7jWAOwViaEoUrGq7itwUExyNhrecEDFxW7JF8bxHs6hFw== X-Gm-Gg: ATEYQzyK3btJGvUh1FdRbjrgDTVDPeVtJdWiFBe4NrogIgHaN1klo92HBdHVYGoDcHo 4IObIz0Defe24fsPEZ0IJaO9IUA44Gisg+YexyPSZ3JuxWsvpxXT/zdkBNr4Tp6l4Af6zZL0r+X iHJQ81IOjp6mfAofJBe7FwEgxyUEIa4zB7LrxXcXCaYcWMxKjyL84DN/zGN1YVC/ozrd7ylf+hw p/T3p/lMlh7sLaM78+wOcHraB2ETYEw84Y93xlLGZtVEaLrmEvZYoWacUTa0ItiCMoV93JhPAvn 84HUn92a5s3g0yTSTDfZutT563hAzTti4BdzcPJR5q+/LXO6HUOHajaJLkWe3jWRYyJzb3SSaHJ IqcZiDSGzWCtGKNmqRtNMx857iOVa30u6SckPpRjby8/p3LzzfCT3TM37tFUKp7lJu/5kwC3IZp oxsEaHquPB7luGoY7p2mZfPzjZHogywiRNFRFjMGmEBX+c8ztrYib+btxow8voxJOdm4PFmJUWH FZIUbAq X-Received: by 2002:a17:90b:2645:b0:359:ff8a:ee44 with SMTP id 98e67ed59e1d1-35c0dc8ee2bmr6266111a91.2.1774512677238; Thu, 26 Mar 2026 01:11:17 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2a00:79e0:201d:8:3ed5:7e63:b37c:a7d7]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35c22d09573sm823452a91.16.2026.03.26.01.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2026 01:11:16 -0700 (PDT) From: Chen-Yu Tsai To: Mark Brown , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/2] regulator: mt6315: Add regulator supplies Date: Thu, 26 Mar 2026 16:10:49 +0800 Message-ID: <20260326081050.1115201-3-wenst@chromium.org> X-Mailer: git-send-email 2.53.0.1018.g2bb0e51243-goog In-Reply-To: <20260326081050.1115201-1-wenst@chromium.org> References: <20260326081050.1115201-1-wenst@chromium.org> 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" The MT6315 family of PMICs has 4 buck regulators. Each regulator has a separate supply. Add these supplies to the driver. Signed-off-by: Chen-Yu Tsai --- drivers/regulator/mt6315-regulator.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/mt6315-regulator.c b/drivers/regulator/mt631= 5-regulator.c index d3f93aae0fc5..231e64fb0596 100644 --- a/drivers/regulator/mt6315-regulator.c +++ b/drivers/regulator/mt6315-regulator.c @@ -31,10 +31,11 @@ struct mt6315_chip { struct regmap *regmap; }; =20 -#define MT_BUCK(_name, _bid, _vsel) \ +#define MT_BUCK(_name, _bid, _supply, _vsel) \ [_bid] =3D { \ .desc =3D { \ .name =3D _name, \ + .supply_name =3D _supply, \ .of_match =3D of_match_ptr(_name), \ .regulators_node =3D "regulators", \ .ops =3D &mt6315_volt_range_ops, \ @@ -190,10 +191,10 @@ static const struct regulator_ops mt6315_volt_range_o= ps =3D { }; =20 static const struct mt6315_regulator_info mt6315_regulators[MT6315_VBUCK_M= AX] =3D { - MT_BUCK("vbuck1", MT6315_VBUCK1, MT6315_BUCK_TOP_ELR0), - MT_BUCK("vbuck2", MT6315_VBUCK2, MT6315_BUCK_TOP_ELR2), - MT_BUCK("vbuck3", MT6315_VBUCK3, MT6315_BUCK_TOP_ELR4), - MT_BUCK("vbuck4", MT6315_VBUCK4, MT6315_BUCK_TOP_ELR6), + MT_BUCK("vbuck1", MT6315_VBUCK1, "pvdd1", MT6315_BUCK_TOP_ELR0), + MT_BUCK("vbuck2", MT6315_VBUCK2, "pvdd2", MT6315_BUCK_TOP_ELR2), + MT_BUCK("vbuck3", MT6315_VBUCK3, "pvdd3", MT6315_BUCK_TOP_ELR4), + MT_BUCK("vbuck4", MT6315_VBUCK4, "pvdd4", MT6315_BUCK_TOP_ELR6), }; =20 static const struct regmap_config mt6315_regmap_config =3D { --=20 2.53.0.1018.g2bb0e51243-goog