1// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 2/* 3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved 4 * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics. 5 */ 6/dts-v1/; 7 8#include "stm32mp157.dtsi" 9#include "stm32mp15xc.dtsi" 10#include "stm32mp15-pinctrl.dtsi" 11#include "stm32mp15xxaa-pinctrl.dtsi" 12#include <dt-bindings/gpio/gpio.h> 13#include <dt-bindings/mfd/st,stpmic1.h> 14 15/ { 16 model = "STMicroelectronics STM32MP157C eval daughter"; 17 compatible = "st,stm32mp157c-ed1", "st,stm32mp157"; 18 19 chosen { 20 stdout-path = "serial0:115200n8"; 21 }; 22 23 memory@c0000000 { 24 device_type = "memory"; 25 reg = <0xC0000000 0x40000000>; 26 }; 27 28 reserved-memory { 29 #address-cells = <1>; 30 #size-cells = <1>; 31 ranges; 32 33 mcuram2: mcuram2@10000000 { 34 compatible = "shared-dma-pool"; 35 reg = <0x10000000 0x40000>; 36 no-map; 37 }; 38 39 vdev0vring0: vdev0vring0@10040000 { 40 compatible = "shared-dma-pool"; 41 reg = <0x10040000 0x1000>; 42 no-map; 43 }; 44 45 vdev0vring1: vdev0vring1@10041000 { 46 compatible = "shared-dma-pool"; 47 reg = <0x10041000 0x1000>; 48 no-map; 49 }; 50 51 vdev0buffer: vdev0buffer@10042000 { 52 compatible = "shared-dma-pool"; 53 reg = <0x10042000 0x4000>; 54 no-map; 55 }; 56 57 mcuram: mcuram@30000000 { 58 compatible = "shared-dma-pool"; 59 reg = <0x30000000 0x40000>; 60 no-map; 61 }; 62 63 retram: retram@38000000 { 64 compatible = "shared-dma-pool"; 65 reg = <0x38000000 0x10000>; 66 no-map; 67 }; 68 69 gpu_reserved: gpu@e8000000 { 70 reg = <0xe8000000 0x8000000>; 71 no-map; 72 }; 73 }; 74 75 aliases { 76 serial0 = &uart4; 77 }; 78 79 sd_switch: regulator-sd_switch { 80 compatible = "regulator-gpio"; 81 regulator-name = "sd_switch"; 82 regulator-min-microvolt = <1800000>; 83 regulator-max-microvolt = <2900000>; 84 regulator-type = "voltage"; 85 regulator-always-on; 86 87 gpios = <&gpiof 14 GPIO_ACTIVE_HIGH>; 88 gpios-states = <0>; 89 states = <1800000 0x1>, 90 <2900000 0x0>; 91 }; 92 93 vin: vin { 94 compatible = "regulator-fixed"; 95 regulator-name = "vin"; 96 regulator-min-microvolt = <5000000>; 97 regulator-max-microvolt = <5000000>; 98 regulator-always-on; 99 }; 100}; 101 102&adc { 103 /* ANA0, ANA1 are dedicated pins and don't need pinctrl: only in6. */ 104 pinctrl-0 = <&adc1_in6_pins_a>; 105 pinctrl-names = "default"; 106 vdd-supply = <&vdd>; 107 vdda-supply = <&vdda>; 108 vref-supply = <&vdda>; 109 status = "disabled"; 110 adc1: adc@0 { 111 st,adc-channels = <0 1 6>; 112 /* 16.5 ck_cycles sampling time */ 113 st,min-sample-time-nsecs = <400>; 114 status = "okay"; 115 }; 116}; 117 118&bsec { 119 board_id: board_id@ec { 120 reg = <0xec 0x4>; 121 st,non-secure-otp; 122 }; 123}; 124 125&crc1 { 126 status = "disabled"; 127}; 128 129&dac { 130 pinctrl-names = "default"; 131 pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>; 132 vref-supply = <&vdda>; 133 status = "disabled"; 134 dac1: dac@1 { 135 status = "okay"; 136 }; 137 dac2: dac@2 { 138 status = "okay"; 139 }; 140}; 141 142&dts { 143 status = "disabled"; 144}; 145 146&gpu { 147 contiguous-area = <&gpu_reserved>; 148}; 149 150&hash1 { 151 status = "disabled"; 152}; 153 154&i2c4 { 155 pinctrl-names = "default", "sleep"; 156 pinctrl-0 = <&i2c4_pins_a>; 157 pinctrl-1 = <&i2c4_sleep_pins_a>; 158 i2c-scl-rising-time-ns = <185>; 159 i2c-scl-falling-time-ns = <20>; 160 clock-frequency = <400000>; 161 status = "okay"; 162 /* spare dmas for other usage */ 163 /delete-property/dmas; 164 /delete-property/dma-names; 165 166 pmic: stpmic@33 { 167 compatible = "st,stpmic1"; 168 reg = <0x33>; 169 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>; 170 interrupt-controller; 171 #interrupt-cells = <2>; 172 status = "okay"; 173 174 regulators { 175 compatible = "st,stpmic1-regulators"; 176 buck1-supply = <&vin>; 177 buck2-supply = <&vin>; 178 buck3-supply = <&vin>; 179 buck4-supply = <&vin>; 180 ldo1-supply = <&v3v3>; 181 ldo2-supply = <&v3v3>; 182 ldo3-supply = <&vdd_ddr>; 183 ldo4-supply = <&vin>; 184 ldo5-supply = <&v3v3>; 185 ldo6-supply = <&v3v3>; 186 vref_ddr-supply = <&vin>; 187 boost-supply = <&vin>; 188 pwr_sw1-supply = <&bst_out>; 189 pwr_sw2-supply = <&bst_out>; 190 191 vddcore: buck1 { 192 regulator-name = "vddcore"; 193 regulator-min-microvolt = <1200000>; 194 regulator-max-microvolt = <1350000>; 195 regulator-always-on; 196 regulator-initial-mode = <0>; 197 regulator-over-current-protection; 198 }; 199 200 vdd_ddr: buck2 { 201 regulator-name = "vdd_ddr"; 202 regulator-min-microvolt = <1350000>; 203 regulator-max-microvolt = <1350000>; 204 regulator-always-on; 205 regulator-initial-mode = <0>; 206 regulator-over-current-protection; 207 }; 208 209 vdd: buck3 { 210 regulator-name = "vdd"; 211 regulator-min-microvolt = <3300000>; 212 regulator-max-microvolt = <3300000>; 213 regulator-always-on; 214 st,mask-reset; 215 regulator-initial-mode = <0>; 216 regulator-over-current-protection; 217 }; 218 219 v3v3: buck4 { 220 regulator-name = "v3v3"; 221 regulator-min-microvolt = <3300000>; 222 regulator-max-microvolt = <3300000>; 223 regulator-always-on; 224 regulator-over-current-protection; 225 regulator-initial-mode = <0>; 226 }; 227 228 vdda: ldo1 { 229 regulator-name = "vdda"; 230 regulator-min-microvolt = <2900000>; 231 regulator-max-microvolt = <2900000>; 232 interrupts = <IT_CURLIM_LDO1 0>; 233 }; 234 235 v2v8: ldo2 { 236 regulator-name = "v2v8"; 237 regulator-min-microvolt = <2800000>; 238 regulator-max-microvolt = <2800000>; 239 interrupts = <IT_CURLIM_LDO2 0>; 240 }; 241 242 vtt_ddr: ldo3 { 243 regulator-name = "vtt_ddr"; 244 regulator-min-microvolt = <500000>; 245 regulator-max-microvolt = <750000>; 246 regulator-always-on; 247 regulator-over-current-protection; 248 }; 249 250 vdd_usb: ldo4 { 251 regulator-name = "vdd_usb"; 252 interrupts = <IT_CURLIM_LDO4 0>; 253 }; 254 255 vdd_sd: ldo5 { 256 regulator-name = "vdd_sd"; 257 regulator-min-microvolt = <2900000>; 258 regulator-max-microvolt = <2900000>; 259 interrupts = <IT_CURLIM_LDO5 0>; 260 regulator-boot-on; 261 }; 262 263 v1v8: ldo6 { 264 regulator-name = "v1v8"; 265 regulator-min-microvolt = <1800000>; 266 regulator-max-microvolt = <1800000>; 267 interrupts = <IT_CURLIM_LDO6 0>; 268 }; 269 270 vref_ddr: vref_ddr { 271 regulator-name = "vref_ddr"; 272 regulator-always-on; 273 }; 274 275 bst_out: boost { 276 regulator-name = "bst_out"; 277 interrupts = <IT_OCP_BOOST 0>; 278 }; 279 280 vbus_otg: pwr_sw1 { 281 regulator-name = "vbus_otg"; 282 interrupts = <IT_OCP_OTG 0>; 283 }; 284 285 vbus_sw: pwr_sw2 { 286 regulator-name = "vbus_sw"; 287 interrupts = <IT_OCP_SWOUT 0>; 288 regulator-active-discharge = <1>; 289 }; 290 }; 291 292 onkey { 293 compatible = "st,stpmic1-onkey"; 294 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>; 295 interrupt-names = "onkey-falling", "onkey-rising"; 296 power-off-time-sec = <10>; 297 status = "disabled"; 298 }; 299 300 watchdog { 301 compatible = "st,stpmic1-wdt"; 302 status = "disabled"; 303 }; 304 }; 305}; 306 307&ipcc { 308 status = "disabled"; 309}; 310 311&iwdg1 { 312 timeout-sec = <32>; 313}; 314 315&iwdg2 { 316 timeout-sec = <32>; 317 status = "okay"; 318 secure-status = "disabled"; 319}; 320 321&m4_rproc { 322 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>, 323 <&vdev0vring1>, <&vdev0buffer>; 324 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>; 325 mbox-names = "vq0", "vq1", "shutdown", "detach"; 326 interrupt-parent = <&exti>; 327 interrupts = <68 1>; 328 status = "disabled"; 329}; 330 331&pwr_regulators { 332 vdd-supply = <&vdd>; 333 vdd_3v3_usbfs-supply = <&vdd_usb>; 334}; 335 336&rcc { 337 status = "okay"; 338}; 339 340&rng1 { 341 status = "okay"; 342}; 343 344&rtc { 345 status = "disabled"; 346}; 347 348&sdmmc1 { 349 pinctrl-names = "default", "opendrain", "sleep"; 350 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>; 351 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>; 352 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>; 353 cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; 354 disable-wp; 355 st,sig-dir; 356 st,neg-edge; 357 st,use-ckin; 358 bus-width = <4>; 359 vmmc-supply = <&vdd_sd>; 360 vqmmc-supply = <&sd_switch>; 361 sd-uhs-sdr12; 362 sd-uhs-sdr25; 363 sd-uhs-sdr50; 364 sd-uhs-ddr50; 365 status = "disabled"; 366}; 367 368&sdmmc2 { 369 pinctrl-names = "default", "opendrain", "sleep"; 370 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>; 371 pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>; 372 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>; 373 non-removable; 374 no-sd; 375 no-sdio; 376 st,neg-edge; 377 bus-width = <8>; 378 vmmc-supply = <&v3v3>; 379 vqmmc-supply = <&vdd>; 380 mmc-ddr-3_3v; 381 status = "disabled"; 382}; 383 384&timers6 { 385 status = "disabled"; 386 /* spare dmas for other usage */ 387 /delete-property/dmas; 388 /delete-property/dma-names; 389 timer@5 { 390 status = "okay"; 391 }; 392}; 393 394&uart4 { 395 pinctrl-names = "default", "sleep", "idle"; 396 pinctrl-0 = <&uart4_pins_a>; 397 pinctrl-1 = <&uart4_sleep_pins_a>; 398 pinctrl-2 = <&uart4_idle_pins_a>; 399 /delete-property/dmas; 400 /delete-property/dma-names; 401 status = "okay"; 402}; 403 404&usbotg_hs { 405 vbus-supply = <&vbus_otg>; 406}; 407 408&usbphyc_port0 { 409 phy-supply = <&vdd_usb>; 410}; 411 412&usbphyc_port1 { 413 phy-supply = <&vdd_usb>; 414}; 415