1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) 2019-2020 Marek Vasut <marex@denx.de>
6 #include "stm32mp15-pinctrl.dtsi"
7 #include "stm32mp15xxaa-pinctrl.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/mfd/st,stpmic1.h>
13 ethernet0 = ðernet0;
18 device_type = "memory";
19 reg = <0xC0000000 0x40000000>;
27 mcuram2: mcuram2@10000000 {
28 compatible = "shared-dma-pool";
29 reg = <0x10000000 0x40000>;
33 vdev0vring0: vdev0vring0@10040000 {
34 compatible = "shared-dma-pool";
35 reg = <0x10040000 0x1000>;
39 vdev0vring1: vdev0vring1@10041000 {
40 compatible = "shared-dma-pool";
41 reg = <0x10041000 0x1000>;
45 vdev0buffer: vdev0buffer@10042000 {
46 compatible = "shared-dma-pool";
47 reg = <0x10042000 0x4000>;
51 mcuram: mcuram@30000000 {
52 compatible = "shared-dma-pool";
53 reg = <0x30000000 0x40000>;
57 retram: retram@38000000 {
58 compatible = "shared-dma-pool";
59 reg = <0x38000000 0x10000>;
64 ethernet_vio: vioregulator {
65 compatible = "regulator-fixed";
66 regulator-name = "vio";
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
69 gpio = <&gpiog 3 GPIO_ACTIVE_LOW>;
78 vdda-supply = <&vdda>;
79 vref-supply = <&vdda>;
83 st,min-sample-time-nsecs = <5000>;
84 st,adc-channels = <0>;
89 st,adc-channels = <1>;
90 st,min-sample-time-nsecs = <5000>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>;
102 vref-supply = <&vdda>;
119 pinctrl-0 = <ðernet0_rmii_pins_a>;
120 pinctrl-1 = <ðernet0_rmii_sleep_pins_a>;
121 pinctrl-names = "default", "sleep";
124 phy-handle = <&phy0>;
128 #address-cells = <1>;
130 compatible = "snps,dwmac-mdio";
132 phy0: ethernet-phy@1 {
135 compatible = "ethernet-phy-id0007.c0f0",
136 "ethernet-phy-ieee802.3-c22";
137 clocks = <&rcc ETHCK_K>;
138 reset-gpios = <&gpioh 3 GPIO_ACTIVE_LOW>;
139 reset-assert-us = <500>;
140 reset-deassert-us = <500>;
141 interrupt-parent = <&gpioi>;
142 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
148 pinctrl-names = "default", "sleep";
149 pinctrl-0 = <&fmc_pins_b>;
150 pinctrl-1 = <&fmc_sleep_pins_b>;
153 ksz8851: ethernet@1,0 {
154 compatible = "micrel,ks8851-mll";
155 reg = <1 0x0 0x2>, <1 0x2 0x20000>;
156 interrupt-parent = <&gpioc>;
157 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
160 /* Timing values are in nS */
161 st,fmc2-ebi-cs-mux-enable;
162 st,fmc2-ebi-cs-transaction-type = <4>;
163 st,fmc2-ebi-cs-buswidth = <16>;
164 st,fmc2-ebi-cs-address-setup-ns = <5>;
165 st,fmc2-ebi-cs-address-hold-ns = <5>;
166 st,fmc2-ebi-cs-bus-turnaround-ns = <5>;
167 st,fmc2-ebi-cs-data-setup-ns = <45>;
168 st,fmc2-ebi-cs-data-hold-ns = <1>;
169 st,fmc2-ebi-cs-write-address-setup-ns = <5>;
170 st,fmc2-ebi-cs-write-address-hold-ns = <5>;
171 st,fmc2-ebi-cs-write-bus-turnaround-ns = <5>;
172 st,fmc2-ebi-cs-write-data-setup-ns = <45>;
173 st,fmc2-ebi-cs-write-data-hold-ns = <1>;
178 gpio-line-names = "", "", "", "",
179 "", "", "DHCOM-K", "",
185 gpio-line-names = "", "", "", "",
187 "DHCOM-Q", "", "", "",
192 gpio-line-names = "", "", "", "",
193 "", "", "DHCOM-E", "",
200 gpio-line-names = "", "", "", "",
201 "", "", "DHCOM-B", "",
202 "", "", "", "DHCOM-F",
203 "DHCOM-D", "", "", "";
207 gpio-line-names = "", "", "", "",
208 "", "", "DHCOM-P", "",
214 gpio-line-names = "", "", "", "DHCOM-A",
221 gpio-line-names = "DHCOM-C", "", "", "",
223 "DHCOM-L", "", "", "",
228 gpio-line-names = "", "", "", "",
229 "", "", "", "DHCOM-N",
230 "DHCOM-J", "DHCOM-W", "DHCOM-V", "DHCOM-U",
231 "DHCOM-T", "", "DHCOM-S", "";
235 gpio-line-names = "DHCOM-G", "DHCOM-O", "DHCOM-H", "DHCOM-I",
236 "DHCOM-R", "DHCOM-M", "", "",
242 pinctrl-names = "default";
243 pinctrl-0 = <&i2c4_pins_a>;
244 i2c-scl-rising-time-ns = <185>;
245 i2c-scl-falling-time-ns = <20>;
247 /* spare dmas for other usage */
248 /delete-property/dmas;
249 /delete-property/dma-names;
252 compatible = "microcrystal,rv8803";
257 compatible = "st,stpmic1";
259 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
260 interrupt-controller;
261 #interrupt-cells = <2>;
265 compatible = "st,stpmic1-regulators";
266 ldo1-supply = <&v3v3>;
267 ldo2-supply = <&v3v3>;
268 ldo3-supply = <&vdd_ddr>;
269 ldo5-supply = <&v3v3>;
270 ldo6-supply = <&v3v3>;
271 pwr_sw1-supply = <&bst_out>;
272 pwr_sw2-supply = <&bst_out>;
275 regulator-name = "vddcore";
276 regulator-min-microvolt = <800000>;
277 regulator-max-microvolt = <1350000>;
279 regulator-initial-mode = <0>;
280 regulator-over-current-protection;
284 regulator-name = "vdd_ddr";
285 regulator-min-microvolt = <1350000>;
286 regulator-max-microvolt = <1350000>;
288 regulator-initial-mode = <0>;
289 regulator-over-current-protection;
293 regulator-name = "vdd";
294 regulator-min-microvolt = <3300000>;
295 regulator-max-microvolt = <3300000>;
298 regulator-initial-mode = <0>;
299 regulator-over-current-protection;
303 regulator-name = "v3v3";
304 regulator-min-microvolt = <3300000>;
305 regulator-max-microvolt = <3300000>;
307 regulator-over-current-protection;
308 regulator-initial-mode = <0>;
312 regulator-name = "vdda";
314 regulator-min-microvolt = <2900000>;
315 regulator-max-microvolt = <2900000>;
316 interrupts = <IT_CURLIM_LDO1 0>;
320 regulator-name = "v2v8";
321 regulator-min-microvolt = <2800000>;
322 regulator-max-microvolt = <2800000>;
323 interrupts = <IT_CURLIM_LDO2 0>;
327 regulator-name = "vtt_ddr";
328 regulator-min-microvolt = <500000>;
329 regulator-max-microvolt = <750000>;
331 regulator-over-current-protection;
335 regulator-name = "vdd_usb";
336 interrupts = <IT_CURLIM_LDO4 0>;
340 regulator-name = "vdd_sd";
341 regulator-min-microvolt = <2900000>;
342 regulator-max-microvolt = <2900000>;
343 interrupts = <IT_CURLIM_LDO5 0>;
348 regulator-name = "v1v8";
349 regulator-min-microvolt = <1800000>;
350 regulator-max-microvolt = <1800000>;
351 interrupts = <IT_CURLIM_LDO6 0>;
355 regulator-name = "vref_ddr";
360 regulator-name = "bst_out";
361 interrupts = <IT_OCP_BOOST 0>;
365 regulator-name = "vbus_otg";
366 interrupts = <IT_OCP_OTG 0>;
370 regulator-name = "vbus_sw";
371 interrupts = <IT_OCP_SWOUT 0>;
372 regulator-active-discharge = <1>;
377 compatible = "st,stpmic1-onkey";
378 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
379 interrupt-names = "onkey-falling", "onkey-rising";
380 power-off-time-sec = <10>;
385 compatible = "st,stpmic1-wdt";
391 compatible = "ti,tsc2004";
393 vio-supply = <&v3v3>;
394 interrupts-extended = <&gpioh 15 IRQ_TYPE_EDGE_FALLING>;
398 compatible = "atmel,24c02";
414 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
415 <&vdev0vring1>, <&vdev0buffer>;
416 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
417 mbox-names = "vq0", "vq1", "shutdown";
418 interrupt-parent = <&exti>;
425 vdd_3v3_usbfs-supply = <&vdd_usb>;
429 pinctrl-names = "default", "sleep";
430 pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>;
431 pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>;
432 reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
433 #address-cells = <1>;
438 compatible = "jedec,spi-nor";
440 spi-rx-bus-width = <4>;
441 spi-max-frequency = <108000000>;
442 #address-cells = <1>;
456 pinctrl-names = "default", "opendrain", "sleep", "init";
457 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
458 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
459 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
460 pinctrl-3 = <&sdmmc1_b4_init_pins_a &sdmmc1_dir_init_pins_a>;
461 cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
466 st,cmd-gpios = <&gpiod 2 0>;
467 st,ck-gpios = <&gpioc 12 0>;
468 st,ckin-gpios = <&gpioe 4 0>;
470 vmmc-supply = <&vdd_sd>;
476 * SD bus pull-up resistors:
477 * - optional on SoMs with SD voltage translator
478 * - mandatory on SoMs without SD voltage translator
489 pinctrl-names = "default", "opendrain", "sleep";
490 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
491 pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
492 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
498 vmmc-supply = <&v3v3>;
499 vqmmc-supply = <&v3v3>;
505 pinctrl-names = "default", "opendrain", "sleep";
506 pinctrl-0 = <&sdmmc3_b4_pins_a>;
507 pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
508 pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
512 vmmc-supply = <&v3v3>;
513 vqmmc-supply = <&v3v3>;
519 pinctrl-names = "default";
520 pinctrl-0 = <&uart4_pins_a>;