Marek Vasut | 5278494 | 2022-09-26 18:50:00 +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 | /dts-v1/; |
| 6 | |
| 7 | #include "stm32mp151.dtsi" |
| 8 | #include "stm32mp15xx-dhcor-som.dtsi" |
| 9 | |
| 10 | / { |
| 11 | model = "DH electronics STM32MP15xx DHCOR Testbench"; |
| 12 | compatible = "dh,stm32mp15xx-dhcor-testbench", "st,stm32mp1xx"; |
| 13 | |
| 14 | aliases { |
| 15 | ethernet0 = ðernet0; |
| 16 | mmc0 = &sdmmc1; |
| 17 | mmc1 = &sdmmc2; |
| 18 | serial0 = &uart4; |
| 19 | serial1 = &uart7; |
| 20 | spi0 = &qspi; |
| 21 | }; |
| 22 | |
| 23 | chosen { |
| 24 | stdout-path = "serial0:115200n8"; |
| 25 | }; |
| 26 | |
| 27 | sd_switch: regulator-sd_switch { |
| 28 | compatible = "regulator-gpio"; |
| 29 | regulator-name = "sd_switch"; |
| 30 | regulator-min-microvolt = <1800000>; |
| 31 | regulator-max-microvolt = <2900000>; |
| 32 | regulator-type = "voltage"; |
| 33 | regulator-always-on; |
| 34 | |
| 35 | gpios = <&gpioi 5 GPIO_ACTIVE_HIGH>; |
| 36 | gpios-states = <0>; |
| 37 | states = <1800000 0x1>, |
| 38 | <2900000 0x0>; |
| 39 | }; |
| 40 | }; |
| 41 | |
| 42 | &adc { |
| 43 | pinctrl-names = "default"; |
| 44 | pinctrl-0 = <&adc12_ain_pins_b>; |
| 45 | vdd-supply = <&vdd>; |
| 46 | vdda-supply = <&vdda>; |
| 47 | vref-supply = <&vdda>; |
| 48 | status = "okay"; |
| 49 | |
| 50 | adc1: adc@0 { |
| 51 | st,adc-channels = <0 1 6>; |
| 52 | st,min-sample-time-nsecs = <5000>; |
| 53 | status = "okay"; |
| 54 | }; |
| 55 | |
| 56 | adc2: adc@100 { |
| 57 | st,adc-channels = <0 1 2>; |
| 58 | st,min-sample-time-nsecs = <5000>; |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | }; |
| 62 | |
| 63 | ðernet0 { |
| 64 | status = "okay"; |
| 65 | pinctrl-0 = <ðernet0_rgmii_pins_c>; |
| 66 | pinctrl-1 = <ðernet0_rgmii_sleep_pins_c>; |
| 67 | pinctrl-names = "default", "sleep"; |
| 68 | phy-mode = "rgmii"; |
| 69 | max-speed = <1000>; |
| 70 | phy-handle = <&phy0>; |
| 71 | |
| 72 | mdio0 { |
| 73 | #address-cells = <1>; |
| 74 | #size-cells = <0>; |
| 75 | compatible = "snps,dwmac-mdio"; |
| 76 | reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>; |
| 77 | reset-delay-us = <1000>; |
| 78 | |
| 79 | phy0: ethernet-phy@7 { |
| 80 | reg = <7>; |
| 81 | |
| 82 | rxc-skew-ps = <1500>; |
| 83 | rxdv-skew-ps = <540>; |
| 84 | rxd0-skew-ps = <420>; |
| 85 | rxd1-skew-ps = <420>; |
| 86 | rxd2-skew-ps = <420>; |
| 87 | rxd3-skew-ps = <420>; |
| 88 | |
| 89 | txc-skew-ps = <1440>; |
| 90 | txen-skew-ps = <540>; |
| 91 | txd0-skew-ps = <420>; |
| 92 | txd1-skew-ps = <420>; |
| 93 | txd2-skew-ps = <420>; |
| 94 | txd3-skew-ps = <420>; |
| 95 | }; |
| 96 | }; |
| 97 | }; |
| 98 | |
| 99 | &sdmmc1 { |
| 100 | pinctrl-names = "default", "opendrain", "sleep"; |
| 101 | pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>; |
| 102 | pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_b>; |
| 103 | pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_b>; |
| 104 | cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 105 | disable-wp; |
| 106 | st,sig-dir; |
| 107 | st,neg-edge; |
| 108 | st,use-ckin; |
| 109 | bus-width = <4>; |
| 110 | vmmc-supply = <&vdd_sd>; |
| 111 | vqmmc-supply = <&sd_switch>; |
| 112 | status = "okay"; |
| 113 | }; |
| 114 | |
| 115 | &sdmmc2 { |
| 116 | pinctrl-names = "default", "opendrain", "sleep"; |
| 117 | pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_c>; |
| 118 | pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_c>; |
| 119 | pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_c>; |
| 120 | bus-width = <8>; |
| 121 | mmc-ddr-1_8v; |
| 122 | no-sd; |
| 123 | no-sdio; |
| 124 | non-removable; |
| 125 | st,neg-edge; |
| 126 | vmmc-supply = <&v3v3>; |
| 127 | vqmmc-supply = <&v3v3>; |
| 128 | status = "okay"; |
| 129 | }; |
| 130 | |
| 131 | &uart4 { |
| 132 | pinctrl-names = "default"; |
| 133 | pinctrl-0 = <&uart4_pins_b>; |
| 134 | /delete-property/dmas; |
| 135 | /delete-property/dma-names; |
| 136 | status = "okay"; |
| 137 | }; |
| 138 | |
| 139 | &uart7 { |
| 140 | pinctrl-names = "default"; |
| 141 | pinctrl-0 = <&uart7_pins_a>; |
| 142 | uart-has-rtscts; |
| 143 | /delete-property/dmas; |
| 144 | /delete-property/dma-names; |
| 145 | status = "okay"; |
| 146 | }; |
| 147 | |
| 148 | &usbh_ehci { |
| 149 | phys = <&usbphyc_port0>; |
| 150 | phy-names = "usb"; |
| 151 | status = "okay"; |
| 152 | }; |
| 153 | |
| 154 | &usbotg_hs { |
| 155 | pinctrl-0 = <&usbotg_hs_pins_a>; |
| 156 | pinctrl-names = "default"; |
| 157 | phy-names = "usb2-phy"; |
| 158 | phys = <&usbphyc_port1 0>; |
| 159 | status = "okay"; |
| 160 | vbus-supply = <&vbus_otg>; |
| 161 | }; |
| 162 | |
| 163 | &usbphyc { |
| 164 | status = "okay"; |
| 165 | }; |
| 166 | |
| 167 | &usbphyc_port0 { |
| 168 | phy-supply = <&vdd_usb>; |
| 169 | }; |
| 170 | |
| 171 | &usbphyc_port1 { |
| 172 | phy-supply = <&vdd_usb>; |
| 173 | }; |
| 174 | |
| 175 | &vdd { |
| 176 | /delete-property/ regulator-always-on; |
| 177 | regulator-min-microvolt = <1200000>; |
| 178 | }; |