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