Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause |
2 | /* | ||||
3 | * Copyright (C) 2020 Marek Vasut <marex@denx.de> | ||||
4 | */ | ||||
5 | |||||
6 | #include "stm32mp15xx-dhcor-u-boot.dtsi" | ||||
7 | |||||
8 | / { | ||||
9 | aliases { | ||||
10 | mmc0 = &sdmmc1; | ||||
11 | mmc1 = &sdmmc2; | ||||
12 | usb0 = &usbotg_hs; | ||||
13 | }; | ||||
14 | |||||
15 | config { | ||||
16 | u-boot,boot-led = "led1"; | ||||
17 | u-boot,error-led = "led4"; | ||||
Marek Vasut | 47b98ba | 2020-04-22 13:18:11 +0200 | [diff] [blame] | 18 | dh,board-coding-gpios = <&gpiog 13 0>, <&gpiod 9 0>; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 19 | }; |
20 | }; | ||||
21 | |||||
Marek Vasut | b004949 | 2021-11-13 03:27:37 +0100 | [diff] [blame] | 22 | ðernet0 { |
Marek Vasut | 8b08dfb | 2021-12-30 23:46:46 +0100 | [diff] [blame] | 23 | phy-reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>; |
24 | |||||
Marek Vasut | b004949 | 2021-11-13 03:27:37 +0100 | [diff] [blame] | 25 | mdio0 { |
26 | ethernet-phy@7 { | ||||
27 | reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>; | ||||
28 | reset-assert-us = <11000>; | ||||
29 | reset-deassert-us = <1000>; | ||||
30 | }; | ||||
31 | }; | ||||
32 | }; | ||||
33 | |||||
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 34 | &sdmmc1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 35 | bootph-pre-ram; |
Marek Vasut | 5f5ce60 | 2021-11-13 03:29:44 +0100 | [diff] [blame] | 36 | st,use-ckin; |
37 | st,cmd-gpios = <&gpiod 2 0>; | ||||
38 | st,ck-gpios = <&gpioc 12 0>; | ||||
39 | st,ckin-gpios = <&gpioe 4 0>; | ||||
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 40 | }; |
41 | |||||
42 | &sdmmc1_b4_pins_a { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 43 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 44 | pins1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 45 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 46 | }; |
47 | pins2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 48 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 49 | }; |
50 | }; | ||||
51 | |||||
52 | &sdmmc1_dir_pins_b { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 53 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 54 | pins1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 55 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 56 | }; |
57 | pins2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 58 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 59 | }; |
60 | }; | ||||
61 | |||||
62 | &sdmmc2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 63 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 64 | }; |
65 | |||||
66 | &sdmmc2_b4_pins_a { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 67 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 68 | pins1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 69 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 70 | }; |
71 | pins2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 72 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 73 | }; |
74 | }; | ||||
75 | |||||
Marek Vasut | 29d247a | 2021-07-20 23:46:07 +0200 | [diff] [blame] | 76 | &sdmmc2_d47_pins_c { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 77 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 78 | pins { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 79 | bootph-pre-ram; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 80 | }; |
81 | }; | ||||
82 | |||||
83 | &uart4 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 84 | bootph-all; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 85 | }; |
86 | |||||
87 | &uart4_pins_b { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 88 | bootph-all; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 89 | pins1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 90 | bootph-all; |
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 91 | }; |
92 | pins2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 93 | bootph-all; |
Marek Vasut | 8d9de5b | 2020-08-22 22:45:36 +0200 | [diff] [blame] | 94 | /delete-property/ bias-disable; |
95 | bias-pull-up; | ||||
Marek Vasut | 526c951 | 2020-03-31 19:51:36 +0200 | [diff] [blame] | 96 | }; |
97 | }; | ||||
98 | |||||
99 | &usbotg_hs { | ||||
100 | u-boot,force-b-session-valid; | ||||
101 | hnp-srp-disable; | ||||
102 | }; | ||||
Marek Vasut | bc3e3f0 | 2022-02-03 02:49:29 +0100 | [diff] [blame] | 103 | |
Marek Vasut | 69e8995 | 2022-09-23 03:31:22 +0200 | [diff] [blame] | 104 | &vdd { |
105 | /delete-property/ regulator-always-on; | ||||
106 | }; | ||||
107 | |||||
Marek Vasut | bc3e3f0 | 2022-02-03 02:49:29 +0100 | [diff] [blame] | 108 | &vdd_io { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 109 | bootph-pre-ram; |
Marek Vasut | bc3e3f0 | 2022-02-03 02:49:29 +0100 | [diff] [blame] | 110 | }; |