Skip to content

Commit b457a0b

Browse files
committed
portenta_h7: enable onboard regulator
Enable PF1550 PMIC for Arduino Portenta H7 Signed-off-by: Martino Facchin <[email protected]>
1 parent 22bbfc1 commit b457a0b

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7.dts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,53 @@
8787

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

92139
/* Only one should be enabled */

boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7_defconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ CONFIG_UART_LINE_CTRL=y
2525
# Enable regulator
2626
CONFIG_REGULATOR=y
2727
CONFIG_REGULATOR_FIXED=y
28+
CONFIG_REGULATOR_PF1550=y
29+
30+
# Enable charger
31+
CONFIG_CHARGER=y
32+
CONFIG_CHARGER_PF1550=y
2833

2934
# Enable USB Stack
3035
CONFIG_USB_DEVICE_STACK=y
36+
37+
# Enable i2c driver
38+
CONFIG_I2C=y

0 commit comments

Comments
 (0)