Skip to content

Commit 8c9af42

Browse files
facchinmkartben
authored andcommitted
portenta_h7: enable onboard regulator
Enable PF1550 PMIC for Arduino Portenta H7 Signed-off-by: Martino Facchin <[email protected]>
1 parent efe3bf5 commit 8c9af42

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7.dts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,54 @@
8686

8787
&i2c1 {
8888
status = "okay";
89+
90+
pf1550: pmic@8 {
91+
status = "okay";
92+
reg = <0x8>;
93+
compatible = "nxp,pf1550";
94+
95+
pmic_regulators: regulators {
96+
status = "okay";
97+
compatible = "nxp,pf1550-regulator";
98+
pf1550_sw1: BUCK1 {
99+
regulator-init-microvolt = <3000000>;
100+
regulator-boot-on;
101+
};
102+
pf1550_sw2: BUCK2 {
103+
regulator-init-microvolt = <3300000>;
104+
regulator-boot-on;
105+
};
106+
pf1550_sw3: BUCK3 {
107+
regulator-init-microvolt = <3300000>;
108+
regulator-init-microamp = <2000000>;
109+
regulator-boot-on;
110+
};
111+
pf1550_ldo1: LDO1 {
112+
regulator-init-microvolt = <1000000>;
113+
regulator-boot-on;
114+
};
115+
pf1550_ldo2: LDO2 {
116+
regulator-init-microvolt = <1800000>;
117+
regulator-boot-on;
118+
};
119+
pf1550_ldo3: LDO3 {
120+
regulator-init-microvolt = <1200000>;
121+
regulator-boot-on;
122+
};
123+
};
124+
125+
pmic_charger: charger {
126+
status = "okay";
127+
compatible = "nxp,pf1550-charger";
128+
constant-charge-current-max-microamp = <100000>;
129+
constant-charge-voltage-max-microvolt = <4200000>;
130+
pf1550,int-gpios = <&gpiok 0 0>;
131+
pf1550,led-behaviour = "manual-off";
132+
pf1550,system-voltage-min-threshold-microvolt = <3500000>;
133+
pf1550,thermistor-monitoring-mode = "thermistor";
134+
pf1550,vbus-current-limit-microamp = <1500000>;
135+
};
136+
};
89137
};
90138

91139
/* Only one should be enabled */

boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ CONFIG_UART_LINE_CTRL=y
2525
# Enable regulator
2626
CONFIG_REGULATOR=y
2727
CONFIG_REGULATOR_FIXED=y
28+
29+
# Enable USB Stack
30+
CONFIG_USB_DEVICE_STACK=y

0 commit comments

Comments
 (0)