Skip to content

Commit 0995118

Browse files
docularxulag-linaro
authored andcommitted
dt-bindings: mfd: spacemit,p1: Add individual regulator supply properties
Add supply properties that match the P1 PMIC's actual hardware topology where each buck converter has its own VIN pin and LDO groups share common input pins. Supply names are defined according to the pinout names in the P1 datasheet. The existing "vin-supply" is dropped from the binding document as the updated spacemit P1 driver no longer parses it. Only the per-rail names ("vin1-supply", "vin2-supply", ...) are supported. Signed-off-by: Guodong Xu <guodong@riscstar.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Alex Elder <elder@riscstar.com> Link: https://patch.msgid.link/20260206-spacemit-p1-v4-1-8f695d93811e@riscstar.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 0735e30 commit 0995118

1 file changed

Lines changed: 47 additions & 2 deletions

File tree

Documentation/devicetree/bindings/mfd/spacemit,p1.yaml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,41 @@ properties:
2727
interrupts:
2828
maxItems: 1
2929

30-
vin-supply:
31-
description: Input supply phandle.
30+
vin1-supply:
31+
description:
32+
Power supply for BUCK1. Required if BUCK1 is defined.
33+
34+
vin2-supply:
35+
description:
36+
Power supply for BUCK2. Required if BUCK2 is defined.
37+
38+
vin3-supply:
39+
description:
40+
Power supply for BUCK3. Required if BUCK3 is defined.
41+
42+
vin4-supply:
43+
description:
44+
Power supply for BUCK4. Required if BUCK4 is defined.
45+
46+
vin5-supply:
47+
description:
48+
Power supply for BUCK5. Required if BUCK5 is defined.
49+
50+
vin6-supply:
51+
description:
52+
Power supply for BUCK6. Required if BUCK6 is defined.
53+
54+
aldoin-supply:
55+
description:
56+
Power supply for ALDO1-4. Required if any are defined.
57+
58+
dldoin1-supply:
59+
description:
60+
Power supply for DLDO1-4. Required if any are defined.
61+
62+
dldoin2-supply:
63+
description:
64+
Power supply for DLDO5-7. Required if any are defined.
3265

3366
regulators:
3467
type: object
@@ -58,6 +91,10 @@ examples:
5891
compatible = "spacemit,p1";
5992
reg = <0x41>;
6093
interrupts = <64>;
94+
vin1-supply = <&reg_vcc_5v>;
95+
vin5-supply = <&reg_vcc_5v>;
96+
aldoin-supply = <&reg_vcc_5v>;
97+
dldoin1-supply = <&buck5>;
6198
6299
regulators {
63100
buck1 {
@@ -68,6 +105,14 @@ examples:
68105
regulator-always-on;
69106
};
70107
108+
buck5: buck5 {
109+
regulator-name = "buck5";
110+
regulator-min-microvolt = <500000>;
111+
regulator-max-microvolt = <3450000>;
112+
regulator-ramp-delay = <5000>;
113+
regulator-always-on;
114+
};
115+
71116
aldo1 {
72117
regulator-name = "aldo1";
73118
regulator-min-microvolt = <500000>;

0 commit comments

Comments
 (0)