David Bauer | dcde9f6 | 2021-01-07 00:06:11 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd |
| 4 | * (C) Copyright 2020 David Bauer |
| 5 | */ |
| 6 | |
| 7 | #include "rk3328-u-boot.dtsi" |
| 8 | #include "rk3328-sdram-ddr4-666.dtsi" |
| 9 | / { |
| 10 | chosen { |
| 11 | u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc; |
| 12 | }; |
| 13 | }; |
| 14 | |
| 15 | &gpio0 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 16 | bootph-pre-ram; |
David Bauer | dcde9f6 | 2021-01-07 00:06:11 +0100 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | &pinctrl { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 20 | bootph-pre-ram; |
David Bauer | dcde9f6 | 2021-01-07 00:06:11 +0100 | [diff] [blame] | 21 | }; |
| 22 | |
Peter Robinson | 7715db3 | 2021-07-22 16:20:43 +0100 | [diff] [blame] | 23 | &sdmmc0m1_pin { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 24 | bootph-pre-ram; |
David Bauer | dcde9f6 | 2021-01-07 00:06:11 +0100 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | &pcfg_pull_up_4ma { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 28 | bootph-pre-ram; |
David Bauer | dcde9f6 | 2021-01-07 00:06:11 +0100 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | /* Need this and all the pinctrl/gpio stuff above to set pinmux */ |
| 32 | &vcc_sd { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 33 | bootph-pre-ram; |
David Bauer | dcde9f6 | 2021-01-07 00:06:11 +0100 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | &gmac2io { |
| 37 | snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; |
| 38 | snps,reset-active-low; |
| 39 | snps,reset-delays-us = <0 10000 50000>; |
| 40 | }; |