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