Skip to content

Commit af62a09

Browse files
author
Yixun Lan
committed
dts: riscv: spacemit: k3: add P1 PMIC regulator tree
Add the P1 PMIC's regulator topology tree for pico-itx board. Link: https://lore.kernel.org/r/20260327-02-k3-i2c-v2-1-9c6b374470c6@kernel.org Signed-off-by: Yixun Lan <dlan@kernel.org>
1 parent cb322cb commit af62a09

2 files changed

Lines changed: 158 additions & 0 deletions

File tree

arch/riscv/boot/dts/spacemit/k3-pico-itx.dts

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,153 @@
2525
device_type = "memory";
2626
reg = <0x1 0x00000000 0x4 0x00000000>;
2727
};
28+
29+
reg_aux_vcc5v: regulator-aux-vcc5v {
30+
compatible = "regulator-fixed";
31+
regulator-name = "AUX_VCC5V";
32+
regulator-min-microvolt = <5000000>;
33+
regulator-max-microvolt = <5000000>;
34+
regulator-always-on;
35+
};
36+
};
37+
38+
&i2c8 {
39+
pinctrl-names = "default";
40+
pinctrl-0 = <&i2c8_cfg>;
41+
status = "okay";
42+
43+
p1@41 {
44+
compatible = "spacemit,p1";
45+
reg = <0x41>;
46+
interrupts = <64 IRQ_TYPE_LEVEL_HIGH>;
47+
vin1-supply = <&reg_aux_vcc5v>;
48+
vin2-supply = <&reg_aux_vcc5v>;
49+
vin3-supply = <&reg_aux_vcc5v>;
50+
vin4-supply = <&reg_aux_vcc5v>;
51+
vin5-supply = <&reg_aux_vcc5v>;
52+
vin6-supply = <&reg_aux_vcc5v>;
53+
aldoin-supply = <&reg_aux_vcc5v>;
54+
dldoin1-supply = <&buck4>;
55+
dldoin2-supply = <&buck4>;
56+
57+
regulators {
58+
buck1: buck1 {
59+
regulator-min-microvolt = <1050000>;
60+
regulator-max-microvolt = <1050000>;
61+
regulator-ramp-delay = <5000>;
62+
regulator-always-on;
63+
};
64+
65+
buck2: buck2 {
66+
regulator-min-microvolt = <1050000>;
67+
regulator-max-microvolt = <1050000>;
68+
regulator-ramp-delay = <5000>;
69+
regulator-always-on;
70+
};
71+
72+
buck3: buck3 {
73+
regulator-min-microvolt = <800000>;
74+
regulator-max-microvolt = <800000>;
75+
regulator-ramp-delay = <5000>;
76+
regulator-always-on;
77+
};
78+
79+
buck4: buck4 {
80+
regulator-min-microvolt = <2100000>;
81+
regulator-max-microvolt = <2100000>;
82+
regulator-ramp-delay = <5000>;
83+
regulator-always-on;
84+
};
85+
86+
buck5: buck5 {
87+
regulator-min-microvolt = <1800000>;
88+
regulator-max-microvolt = <1800000>;
89+
regulator-ramp-delay = <5000>;
90+
regulator-always-on;
91+
};
92+
93+
buck6: buck6 {
94+
regulator-min-microvolt = <500000>;
95+
regulator-max-microvolt = <500000>;
96+
regulator-ramp-delay = <5000>;
97+
regulator-always-on;
98+
};
99+
100+
aldo1: aldo1 {
101+
regulator-min-microvolt = <1800000>;
102+
regulator-max-microvolt = <3300000>;
103+
regulator-always-on;
104+
regulator-boot-on;
105+
};
106+
107+
aldo2: aldo2 {
108+
regulator-min-microvolt = <1800000>;
109+
regulator-max-microvolt = <1800000>;
110+
regulator-always-on;
111+
regulator-boot-on;
112+
};
113+
114+
aldo3: aldo3 {
115+
regulator-min-microvolt = <500000>;
116+
regulator-max-microvolt = <3400000>;
117+
};
118+
119+
aldo4: aldo4 {
120+
regulator-min-microvolt = <3300000>;
121+
regulator-max-microvolt = <3300000>;
122+
regulator-always-on;
123+
regulator-boot-on;
124+
};
125+
126+
dldo1: dldo1 {
127+
regulator-min-microvolt = <1200000>;
128+
regulator-max-microvolt = <1200000>;
129+
regulator-always-on;
130+
regulator-boot-on;
131+
};
132+
133+
dldo2: dldo2 {
134+
regulator-min-microvolt = <900000>;
135+
regulator-max-microvolt = <900000>;
136+
regulator-always-on;
137+
regulator-boot-on;
138+
};
139+
140+
dldo3: dldo3 {
141+
regulator-min-microvolt = <800000>;
142+
regulator-max-microvolt = <800000>;
143+
regulator-always-on;
144+
regulator-boot-on;
145+
};
146+
147+
dldo4: dldo4 {
148+
regulator-min-microvolt = <1800000>;
149+
regulator-max-microvolt = <1800000>;
150+
regulator-boot-on;
151+
};
152+
153+
dldo5: dldo5 {
154+
regulator-min-microvolt = <1800000>;
155+
regulator-max-microvolt = <1800000>;
156+
regulator-always-on;
157+
regulator-boot-on;
158+
};
159+
160+
dldo6: dldo6 {
161+
regulator-min-microvolt = <1800000>;
162+
regulator-max-microvolt = <1800000>;
163+
regulator-always-on;
164+
regulator-boot-on;
165+
};
166+
167+
dldo7: dldo7 {
168+
regulator-min-microvolt = <1800000>;
169+
regulator-max-microvolt = <1800000>;
170+
regulator-always-on;
171+
regulator-boot-on;
172+
};
173+
};
174+
};
28175
};
29176

30177
&eth0 {

arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@
4545
};
4646
};
4747

48+
/omit-if-no-ref/
49+
i2c8_cfg: i2c8-cfg {
50+
i2c8-pins {
51+
pinmux = <K3_PADCONF(128, 0)>, /* i2c8 scl */
52+
<K3_PADCONF(129, 0)>; /* i2c8 sda */
53+
54+
bias-pull-up = <0>;
55+
drive-strength = <25>;
56+
};
57+
};
58+
4859
/omit-if-no-ref/
4960
uart0_0_cfg: uart0-0-cfg {
5061
uart0-0-pins {

0 commit comments

Comments
 (0)