Patrick Delaunay | a674313 | 2018-07-09 15:17:19 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) STMicroelectronics 2017 - All Rights Reserved |
| 4 | * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics. |
| 5 | */ |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 6 | /dts-v1/; |
| 7 | |
Patrick Delaunay | a674313 | 2018-07-09 15:17:19 +0200 | [diff] [blame] | 8 | #include "stm32mp157c.dtsi" |
| 9 | #include "stm32mp157-pinctrl.dtsi" |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 10 | #include <dt-bindings/gpio/gpio.h> |
Patrick Delaunay | d46c22b | 2019-02-04 11:26:16 +0100 | [diff] [blame] | 11 | #include <dt-bindings/mfd/st,stpmic1.h> |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 12 | |
| 13 | / { |
Patrick Delaunay | a674313 | 2018-07-09 15:17:19 +0200 | [diff] [blame] | 14 | model = "STMicroelectronics STM32MP157C eval daughter"; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 15 | compatible = "st,stm32mp157c-ed1", "st,stm32mp157"; |
| 16 | |
| 17 | chosen { |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 18 | stdout-path = "serial0:115200n8"; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 19 | }; |
| 20 | |
Patrick Delaunay | a674313 | 2018-07-09 15:17:19 +0200 | [diff] [blame] | 21 | memory@c0000000 { |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 22 | device_type = "memory"; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 23 | reg = <0xC0000000 0x40000000>; |
| 24 | }; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 25 | |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 26 | aliases { |
| 27 | serial0 = &uart4; |
| 28 | }; |
| 29 | |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 30 | sd_switch: regulator-sd_switch { |
| 31 | compatible = "regulator-gpio"; |
| 32 | regulator-name = "sd_switch"; |
| 33 | regulator-min-microvolt = <1800000>; |
| 34 | regulator-max-microvolt = <2900000>; |
| 35 | regulator-type = "voltage"; |
| 36 | regulator-always-on; |
| 37 | |
| 38 | gpios = <&gpiof 14 GPIO_ACTIVE_HIGH>; |
| 39 | gpios-states = <0>; |
| 40 | states = <1800000 0x1 2900000 0x0>; |
| 41 | }; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 42 | }; |
| 43 | |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 44 | &dts { |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 45 | status = "okay"; |
| 46 | }; |
| 47 | |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 48 | &i2c4 { |
| 49 | pinctrl-names = "default"; |
| 50 | pinctrl-0 = <&i2c4_pins_a>; |
| 51 | i2c-scl-rising-time-ns = <185>; |
| 52 | i2c-scl-falling-time-ns = <20>; |
| 53 | status = "okay"; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 54 | /* spare dmas for other usage */ |
| 55 | /delete-property/dmas; |
| 56 | /delete-property/dma-names; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 57 | |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 58 | pmic: stpmic@33 { |
Patrick Delaunay | 42f01aa | 2019-02-04 11:26:17 +0100 | [diff] [blame] | 59 | compatible = "st,stpmic1"; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 60 | reg = <0x33>; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 61 | interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 62 | interrupt-controller; |
| 63 | #interrupt-cells = <2>; |
| 64 | status = "okay"; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 65 | |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 66 | regulators { |
Patrick Delaunay | 42f01aa | 2019-02-04 11:26:17 +0100 | [diff] [blame] | 67 | compatible = "st,stpmic1-regulators"; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 68 | ldo1-supply = <&v3v3>; |
| 69 | ldo2-supply = <&v3v3>; |
| 70 | ldo3-supply = <&vdd_ddr>; |
| 71 | ldo5-supply = <&v3v3>; |
| 72 | ldo6-supply = <&v3v3>; |
| 73 | pwr_sw1-supply = <&bst_out>; |
| 74 | pwr_sw2-supply = <&bst_out>; |
| 75 | |
| 76 | vddcore: buck1 { |
| 77 | regulator-name = "vddcore"; |
| 78 | regulator-min-microvolt = <800000>; |
| 79 | regulator-max-microvolt = <1350000>; |
| 80 | regulator-always-on; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 81 | regulator-initial-mode = <0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 82 | regulator-over-current-protection; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 83 | }; |
| 84 | |
| 85 | vdd_ddr: buck2 { |
| 86 | regulator-name = "vdd_ddr"; |
| 87 | regulator-min-microvolt = <1350000>; |
| 88 | regulator-max-microvolt = <1350000>; |
| 89 | regulator-always-on; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 90 | regulator-initial-mode = <0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 91 | regulator-over-current-protection; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | vdd: buck3 { |
| 95 | regulator-name = "vdd"; |
| 96 | regulator-min-microvolt = <3300000>; |
| 97 | regulator-max-microvolt = <3300000>; |
| 98 | regulator-always-on; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 99 | st,mask-reset; |
| 100 | regulator-initial-mode = <0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 101 | regulator-over-current-protection; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 102 | }; |
| 103 | |
| 104 | v3v3: buck4 { |
| 105 | regulator-name = "v3v3"; |
| 106 | regulator-min-microvolt = <3300000>; |
| 107 | regulator-max-microvolt = <3300000>; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 108 | regulator-always-on; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 109 | regulator-over-current-protection; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 110 | regulator-initial-mode = <0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 111 | }; |
| 112 | |
| 113 | vdda: ldo1 { |
| 114 | regulator-name = "vdda"; |
| 115 | regulator-min-microvolt = <2900000>; |
| 116 | regulator-max-microvolt = <2900000>; |
| 117 | interrupts = <IT_CURLIM_LDO1 0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 118 | }; |
| 119 | |
| 120 | v2v8: ldo2 { |
| 121 | regulator-name = "v2v8"; |
| 122 | regulator-min-microvolt = <2800000>; |
| 123 | regulator-max-microvolt = <2800000>; |
| 124 | interrupts = <IT_CURLIM_LDO2 0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 125 | }; |
| 126 | |
| 127 | vtt_ddr: ldo3 { |
| 128 | regulator-name = "vtt_ddr"; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 129 | regulator-min-microvolt = <500000>; |
| 130 | regulator-max-microvolt = <750000>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 131 | regulator-always-on; |
| 132 | regulator-over-current-protection; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 133 | }; |
| 134 | |
| 135 | vdd_usb: ldo4 { |
| 136 | regulator-name = "vdd_usb"; |
| 137 | regulator-min-microvolt = <3300000>; |
| 138 | regulator-max-microvolt = <3300000>; |
| 139 | interrupts = <IT_CURLIM_LDO4 0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 140 | }; |
| 141 | |
| 142 | vdd_sd: ldo5 { |
| 143 | regulator-name = "vdd_sd"; |
| 144 | regulator-min-microvolt = <2900000>; |
| 145 | regulator-max-microvolt = <2900000>; |
| 146 | interrupts = <IT_CURLIM_LDO5 0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 147 | regulator-boot-on; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 148 | }; |
| 149 | |
| 150 | v1v8: ldo6 { |
| 151 | regulator-name = "v1v8"; |
| 152 | regulator-min-microvolt = <1800000>; |
| 153 | regulator-max-microvolt = <1800000>; |
| 154 | interrupts = <IT_CURLIM_LDO6 0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 155 | }; |
| 156 | |
| 157 | vref_ddr: vref_ddr { |
| 158 | regulator-name = "vref_ddr"; |
| 159 | regulator-always-on; |
| 160 | regulator-over-current-protection; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 161 | }; |
| 162 | |
| 163 | bst_out: boost { |
| 164 | regulator-name = "bst_out"; |
| 165 | interrupts = <IT_OCP_BOOST 0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 166 | }; |
| 167 | |
| 168 | vbus_otg: pwr_sw1 { |
| 169 | regulator-name = "vbus_otg"; |
| 170 | interrupts = <IT_OCP_OTG 0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 171 | }; |
| 172 | |
| 173 | vbus_sw: pwr_sw2 { |
| 174 | regulator-name = "vbus_sw"; |
| 175 | interrupts = <IT_OCP_SWOUT 0>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 176 | regulator-active-discharge; |
| 177 | }; |
| 178 | }; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 179 | |
| 180 | onkey { |
| 181 | compatible = "st,stpmic1-onkey"; |
| 182 | interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>; |
| 183 | interrupt-names = "onkey-falling", "onkey-rising"; |
| 184 | power-off-time-sec = <10>; |
| 185 | status = "okay"; |
| 186 | }; |
| 187 | |
| 188 | watchdog { |
| 189 | compatible = "st,stpmic1-wdt"; |
| 190 | status = "disabled"; |
| 191 | }; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 192 | }; |
| 193 | }; |
| 194 | |
Fabien Dessenne | 1958dae | 2019-05-14 11:20:37 +0200 | [diff] [blame] | 195 | &ipcc { |
| 196 | status = "okay"; |
| 197 | }; |
| 198 | |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 199 | &iwdg2 { |
| 200 | timeout-sec = <32>; |
| 201 | status = "okay"; |
| 202 | }; |
| 203 | |
Patrick Delaunay | a674313 | 2018-07-09 15:17:19 +0200 | [diff] [blame] | 204 | &pwr { |
| 205 | pwr-supply = <&vdd>; |
| 206 | }; |
| 207 | |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 208 | &rng1 { |
| 209 | status = "okay"; |
| 210 | }; |
| 211 | |
| 212 | &rtc { |
| 213 | status = "okay"; |
| 214 | }; |
| 215 | |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 216 | &sdmmc1 { |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 217 | pinctrl-names = "default", "opendrain", "sleep"; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 218 | pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 219 | pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>; |
| 220 | pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 221 | broken-cd; |
Patrice Chotard | c89b87c | 2019-02-12 17:17:58 +0100 | [diff] [blame] | 222 | st,sig-dir; |
| 223 | st,neg-edge; |
| 224 | st,use-ckin; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 225 | bus-width = <4>; |
Patrice Chotard | 21299d3 | 2018-04-26 17:13:11 +0200 | [diff] [blame] | 226 | vmmc-supply = <&vdd_sd>; |
| 227 | vqmmc-supply = <&sd_switch>; |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 228 | status = "okay"; |
| 229 | }; |
| 230 | |
Patrick Delaunay | 0ed232b | 2018-03-20 10:54:52 +0100 | [diff] [blame] | 231 | &sdmmc2 { |
Patrick Delaunay | 0ed232b | 2018-03-20 10:54:52 +0100 | [diff] [blame] | 232 | pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>; |
| 233 | non-removable; |
| 234 | no-sd; |
| 235 | no-sdio; |
Patrice Chotard | c89b87c | 2019-02-12 17:17:58 +0100 | [diff] [blame] | 236 | st,sig-dir; |
| 237 | st,neg-edge; |
Patrick Delaunay | 0ed232b | 2018-03-20 10:54:52 +0100 | [diff] [blame] | 238 | bus-width = <8>; |
Patrick Delaunay | a674313 | 2018-07-09 15:17:19 +0200 | [diff] [blame] | 239 | vmmc-supply = <&v3v3>; |
| 240 | vqmmc-supply = <&vdd>; |
Patrick Delaunay | 0ed232b | 2018-03-20 10:54:52 +0100 | [diff] [blame] | 241 | status = "okay"; |
| 242 | }; |
| 243 | |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 244 | &timers6 { |
| 245 | status = "okay"; |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 246 | /* spare dmas for other usage */ |
| 247 | /delete-property/dmas; |
| 248 | /delete-property/dma-names; |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 249 | timer@5 { |
| 250 | status = "okay"; |
| 251 | }; |
| 252 | }; |
| 253 | |
Patrick Delaunay | 3d2d115 | 2018-03-12 10:46:17 +0100 | [diff] [blame] | 254 | &uart4 { |
| 255 | pinctrl-names = "default"; |
| 256 | pinctrl-0 = <&uart4_pins_a>; |
| 257 | status = "okay"; |
| 258 | }; |
Patrick Delaunay | a674313 | 2018-07-09 15:17:19 +0200 | [diff] [blame] | 259 | |
Patrick Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 260 | &usbotg_hs { |
| 261 | vbus-supply = <&vbus_otg>; |
| 262 | }; |
| 263 | |
Patrick Delaunay | a674313 | 2018-07-09 15:17:19 +0200 | [diff] [blame] | 264 | &usbphyc_port0 { |
| 265 | phy-supply = <&vdd_usb>; |
Patrick Delaunay | a674313 | 2018-07-09 15:17:19 +0200 | [diff] [blame] | 266 | }; |
| 267 | |
| 268 | &usbphyc_port1 { |
| 269 | phy-supply = <&vdd_usb>; |
Patrick Delaunay | a674313 | 2018-07-09 15:17:19 +0200 | [diff] [blame] | 270 | }; |