Skip to content

Commit 7148529

Browse files
soburikartben
authored andcommitted
boards: m5stack: cores3: Add AXP2101 regulator configuration
Adding configuration for enabling AXP2101 regulator. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent 3048e6d commit 7148529

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,20 @@
3030
reg = <0x10>;
3131
};
3232
};
33+
34+
&regulator {
35+
vddcam_3v3: ALDO3 {
36+
regulator-min-microvolt = <3000000>;
37+
/* regulator-init-microvolt = <3300000>; */
38+
regulator-max-microvolt = <3500000>;
39+
regulator-boot-on;
40+
status = "okay";
41+
};
42+
43+
avdd: BLDO1 {
44+
regulator-min-microvolt = <2700000>;
45+
/* regulator-init-microvolt = <2800000>; */
46+
regulator-max-microvolt = <3300000>;
47+
status = "okay";
48+
};
49+
};

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,81 @@
7878
pinctrl-0 = <&i2c0_default>;
7979
pinctrl-names = "default";
8080

81+
axp2101@34 {
82+
compatible = "x-powers,axp2101";
83+
reg = <0x34>;
84+
status = "okay";
85+
86+
regulator: regulator {
87+
compatible = "x-powers,axp2101-regulator";
88+
status = "okay";
89+
90+
/*
91+
* Typically, no initialization is performed since non-volatile
92+
* values are used.
93+
* If you remove the commenting, initialization will be performed
94+
* with the default value.
95+
*/
96+
97+
vdd_3v3: DCDC1 {
98+
regulator-min-microvolt = <3000000>;
99+
/* regulator-init-microvolt = <3300000>; */
100+
regulator-max-microvolt = <3300000>;
101+
regulator-boot-on;
102+
regulator-always-on;
103+
status = "okay";
104+
};
105+
106+
vcc_3v3: DCDC3 {
107+
regulator-min-microvolt = <3100000>;
108+
/* regulator-init-microvolt = <3300000>; */
109+
regulator-max-microvolt = <3500000>;
110+
regulator-boot-on;
111+
regulator-always-on;
112+
status = "okay";
113+
};
114+
115+
vdd_1v8: ALDO1 {
116+
regulator-min-microvolt = <1700000>;
117+
/* regulator-init-microvolt = <1800000>; */
118+
regulator-max-microvolt = <1900000>;
119+
regulator-boot-on;
120+
status = "okay";
121+
};
122+
123+
vdda_3v3: ALDO2 {
124+
regulator-min-microvolt = <3100000>;
125+
/* regulator-init-microvolt = <3300000>; */
126+
regulator-max-microvolt = <3500000>;
127+
regulator-boot-on;
128+
status = "okay";
129+
};
130+
131+
vdd_3v3_sd: ALDO4 {
132+
regulator-min-microvolt = <3100000>;
133+
/* regulator-init-microvolt = <3300000>; */
134+
regulator-max-microvolt = <3500000>;
135+
regulator-boot-on;
136+
status = "okay";
137+
};
138+
139+
dvdd: BLDO2 {
140+
regulator-min-microvolt = <3100000>;
141+
/* regulator-init-microvolt = <3300000>; */
142+
regulator-max-microvolt = <3500000>;
143+
status = "okay";
144+
};
145+
146+
vcc_bl: DLDO1 {
147+
regulator-min-microvolt = <2500000>;
148+
/* regulator-init-microvolt = <3300000>; */
149+
regulator-max-microvolt = <3300000>;
150+
regulator-boot-on;
151+
status = "okay";
152+
};
153+
};
154+
};
155+
81156
bm8563_rtc: bm8563@51 {
82157
compatible = "nxp,pcf8563";
83158
reg = <0x51>;

0 commit comments

Comments
 (0)