Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: stm32: fix stpmic node for stm32mp1 boards

On some STM32 MP15 boards, stpmic node is not correct which generates
warnings running "make dtbs_check W=1" command. Issues are:

-"regulator-active-discharge" is not a boolean but an uint32.
-"regulator-over-current-protection" is not a valid entry for vref_ddr.
-LDO4 has a fixed voltage (3v3) so min/max entries are not allowed.

Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>

+6 -18
+2 -5
arch/arm/boot/dts/stm32mp157a-stinger96.dtsi
··· 184 184 185 185 vdd_usb: ldo4 { 186 186 regulator-name = "vdd_usb"; 187 - regulator-min-microvolt = <3300000>; 188 - regulator-max-microvolt = <3300000>; 189 187 interrupts = <IT_CURLIM_LDO4 0>; 190 188 }; 191 189 ··· 206 208 vref_ddr: vref_ddr { 207 209 regulator-name = "vref_ddr"; 208 210 regulator-always-on; 209 - regulator-over-current-protection; 210 211 }; 211 212 212 213 bst_out: boost { ··· 216 219 vbus_otg: pwr_sw1 { 217 220 regulator-name = "vbus_otg"; 218 221 interrupts = <IT_OCP_OTG 0>; 219 - regulator-active-discharge; 222 + regulator-active-discharge = <1>; 220 223 }; 221 224 222 225 vbus_sw: pwr_sw2 { 223 226 regulator-name = "vbus_sw"; 224 227 interrupts = <IT_OCP_SWOUT 0>; 225 - regulator-active-discharge; 228 + regulator-active-discharge = <1>; 226 229 }; 227 230 }; 228 231
+1 -4
arch/arm/boot/dts/stm32mp157c-odyssey-som.dtsi
··· 173 173 174 174 vdd_usb: ldo4 { 175 175 regulator-name = "vdd_usb"; 176 - regulator-min-microvolt = <3300000>; 177 - regulator-max-microvolt = <3300000>; 178 176 interrupts = <IT_CURLIM_LDO4 0>; 179 177 }; 180 178 ··· 195 197 vref_ddr: vref_ddr { 196 198 regulator-name = "vref_ddr"; 197 199 regulator-always-on; 198 - regulator-over-current-protection; 199 200 }; 200 201 201 202 bst_out: boost { ··· 210 213 vbus_sw: pwr_sw2 { 211 214 regulator-name = "vbus_sw"; 212 215 interrupts = <IT_OCP_SWOUT 0>; 213 - regulator-active-discharge; 216 + regulator-active-discharge = <1>; 214 217 }; 215 218 }; 216 219
+1 -4
arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi
··· 333 333 334 334 vdd_usb: ldo4 { 335 335 regulator-name = "vdd_usb"; 336 - regulator-min-microvolt = <3300000>; 337 - regulator-max-microvolt = <3300000>; 338 336 interrupts = <IT_CURLIM_LDO4 0>; 339 337 }; 340 338 ··· 354 356 vref_ddr: vref_ddr { 355 357 regulator-name = "vref_ddr"; 356 358 regulator-always-on; 357 - regulator-over-current-protection; 358 359 }; 359 360 360 361 bst_out: boost { ··· 369 372 vbus_sw: pwr_sw2 { 370 373 regulator-name = "vbus_sw"; 371 374 interrupts = <IT_OCP_SWOUT 0>; 372 - regulator-active-discharge; 375 + regulator-active-discharge = <1>; 373 376 }; 374 377 }; 375 378
+2 -5
arch/arm/boot/dts/stm32mp15xx-osd32.dtsi
··· 146 146 147 147 vdd_usb: ldo4 { 148 148 regulator-name = "vdd_usb"; 149 - regulator-min-microvolt = <3300000>; 150 - regulator-max-microvolt = <3300000>; 151 149 interrupts = <IT_CURLIM_LDO4 0>; 152 150 }; 153 151 ··· 169 171 vref_ddr: vref_ddr { 170 172 regulator-name = "vref_ddr"; 171 173 regulator-always-on; 172 - regulator-over-current-protection; 173 174 }; 174 175 175 176 bst_out: boost { ··· 179 182 vbus_otg: pwr_sw1 { 180 183 regulator-name = "vbus_otg"; 181 184 interrupts = <IT_OCP_OTG 0>; 182 - regulator-active-discharge; 185 + regulator-active-discharge = <1>; 183 186 }; 184 187 185 188 vbus_sw: pwr_sw2 { 186 189 regulator-name = "vbus_sw"; 187 190 interrupts = <IT_OCP_SWOUT 0>; 188 - regulator-active-discharge; 191 + regulator-active-discharge = <1>; 189 192 }; 190 193 }; 191 194