Marek Vasut | e31d987 | 2022-06-13 11:55:21 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (C) 2022 Marek Vasut <marex@denx.de> |
| 4 | */ |
| 5 | |
| 6 | #include "stm32mp15xx-dhcor-u-boot.dtsi" |
| 7 | |
| 8 | /delete-node/ &ksz8851; |
| 9 | |
| 10 | / { |
| 11 | aliases { |
| 12 | mmc0 = &sdmmc1; |
| 13 | mmc1 = &sdmmc2; |
| 14 | usb0 = &usbotg_hs; |
| 15 | ethernet1 = &ks8851; |
| 16 | }; |
| 17 | |
| 18 | config { |
| 19 | dh,board-coding-gpios = <&gpioh 9 0>, <&gpioh 8 0>, <&gpioh 3 0>; |
| 20 | }; |
| 21 | |
| 22 | /* This is actually on FMC2, but we do not have bus driver for that */ |
| 23 | ks8851: ks8851mll@64000000 { |
| 24 | compatible = "micrel,ks8851-mll"; |
| 25 | reg = <0x64000000 0x20000>; |
| 26 | }; |
| 27 | }; |
| 28 | |
| 29 | ðernet0 { |
| 30 | phy-reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>; |
| 31 | |
| 32 | mdio0 { |
| 33 | ethernet-phy@7 { |
| 34 | reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>; |
| 35 | reset-assert-us = <11000>; |
| 36 | reset-deassert-us = <1000>; |
| 37 | }; |
| 38 | }; |
| 39 | }; |
| 40 | |
| 41 | &pinctrl { |
| 42 | /* These should bound to FMC2 bus driver, but we do not have one */ |
| 43 | pinctrl-0 = <&fmc_pins_b>; |
| 44 | pinctrl-1 = <&fmc_sleep_pins_b>; |
| 45 | pinctrl-names = "default", "sleep"; |
| 46 | }; |
| 47 | |
| 48 | &sdmmc1 { |
| 49 | u-boot,dm-spl; |
| 50 | st,use-ckin; |
| 51 | st,cmd-gpios = <&gpiod 2 0>; |
| 52 | st,ck-gpios = <&gpioc 12 0>; |
| 53 | st,ckin-gpios = <&gpioe 4 0>; |
| 54 | }; |
| 55 | |
| 56 | &sdmmc1_b4_pins_a { |
| 57 | u-boot,dm-spl; |
| 58 | pins1 { |
| 59 | u-boot,dm-spl; |
| 60 | }; |
| 61 | pins2 { |
| 62 | u-boot,dm-spl; |
| 63 | }; |
| 64 | }; |
| 65 | |
| 66 | &sdmmc1_dir_pins_b { |
| 67 | u-boot,dm-spl; |
| 68 | pins1 { |
| 69 | u-boot,dm-spl; |
| 70 | }; |
| 71 | pins2 { |
| 72 | u-boot,dm-spl; |
| 73 | }; |
| 74 | }; |
| 75 | |
| 76 | &sdmmc2 { |
| 77 | u-boot,dm-spl; |
| 78 | }; |
| 79 | |
| 80 | &sdmmc2_b4_pins_a { |
| 81 | u-boot,dm-spl; |
| 82 | pins1 { |
| 83 | u-boot,dm-spl; |
| 84 | }; |
| 85 | pins2 { |
| 86 | u-boot,dm-spl; |
| 87 | }; |
| 88 | }; |
| 89 | |
| 90 | &sdmmc2_d47_pins_c { |
| 91 | u-boot,dm-spl; |
| 92 | pins { |
| 93 | u-boot,dm-spl; |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | &sdmmc3 { /* SDIO Wi-Fi */ |
| 98 | status = "disabled"; |
| 99 | }; |
| 100 | |
| 101 | &uart4 { |
| 102 | u-boot,dm-pre-reloc; |
| 103 | }; |
| 104 | |
| 105 | &uart4_pins_d { |
| 106 | u-boot,dm-pre-reloc; |
| 107 | pins1 { |
| 108 | u-boot,dm-pre-reloc; |
| 109 | }; |
| 110 | pins2 { |
| 111 | u-boot,dm-pre-reloc; |
| 112 | /delete-property/ bias-disable; |
| 113 | bias-pull-up; |
| 114 | }; |
| 115 | }; |
| 116 | |
| 117 | &usbotg_hs { |
| 118 | u-boot,force-b-session-valid; |
| 119 | hnp-srp-disable; |
| 120 | }; |