1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) Protonic Holland
4 * Author: David Jander <david@protonic.nl>
8 #include "stm32mp151a-prtt1l.dtsi"
11 model = "Protonic PRTT1C";
12 compatible = "prt,prtt1c", "st,stm32mp151";
14 clock_ksz9031: clock-ksz9031 {
15 compatible = "fixed-clock";
17 clock-frequency = <25000000>;
20 clock_sja1105: clock-sja1105 {
21 compatible = "fixed-clock";
23 clock-frequency = <25000000>;
26 pse_t1l1: ethernet-pse-1 {
27 compatible = "podl-pse-regulator";
28 pse-supply = <®_t1l1>;
32 pse_t1l2: ethernet-pse-2 {
33 compatible = "podl-pse-regulator";
34 pse-supply = <®_t1l2>;
39 compatible = "virtual,mdio-gpio";
42 gpios = <&gpioc 1 GPIO_ACTIVE_HIGH
43 &gpioa 2 GPIO_ACTIVE_HIGH>;
47 reg_t1l1: regulator-pse-t1l1 {
48 compatible = "regulator-fixed";
49 regulator-name = "pse-t1l1";
50 regulator-min-microvolt = <12000000>;
51 regulator-max-microvolt = <12000000>;
52 gpio = <&gpiog 13 GPIO_ACTIVE_HIGH>;
56 reg_t1l2: regulator-pse-t1l2 {
57 compatible = "regulator-fixed";
58 regulator-name = "pse-t1l2";
59 regulator-min-microvolt = <12000000>;
60 regulator-max-microvolt = <12000000>;
61 gpio = <&gpiog 14 GPIO_ACTIVE_HIGH>;
65 wifi_pwrseq: wifi-pwrseq {
66 compatible = "mmc-pwrseq-simple";
67 reset-gpios = <&gpiod 8 GPIO_ACTIVE_LOW>;
80 "", "", "", "PHY0_nRESET", "PHY0_nINT", "", "", "",
81 "", "", "", "", "", "", "", "SPI1_nSS";
86 "", "", "", "", "", "", "", "",
87 "WFM_RESET", "", "", "", "", "", "", "";
92 "SDMMC2_nRESET", "", "", "", "", "", "SPI1_nRESET", "",
93 "", "", "", "", "WFM_nIRQ", "", "", "";
98 "", "", "", "", "", "", "", "PHY3_nINT",
99 "PHY1_nINT", "PHY3_nRESET", "PHY2_nINT", "PHY2_nRESET",
100 "PHY1_nRESET", "SPE1_PWR", "SPE0_PWR", "";
104 /* All this DP83TD510E PHYs can't be probed before switch@0 is
105 * probed so we need to use compatible with PHYid
108 t1l0_phy: ethernet-phy@6 {
109 compatible = "ethernet-phy-id2000.0181";
111 interrupts-extended = <&gpioa 4 IRQ_TYPE_LEVEL_LOW>;
112 reset-gpios = <&gpioa 3 GPIO_ACTIVE_LOW>;
113 reset-assert-us = <10>;
114 reset-deassert-us = <35>;
118 t1l1_phy: ethernet-phy@7 {
119 compatible = "ethernet-phy-id2000.0181";
121 interrupts-extended = <&gpiog 8 IRQ_TYPE_LEVEL_LOW>;
122 reset-gpios = <&gpiog 12 GPIO_ACTIVE_LOW>;
123 reset-assert-us = <10>;
124 reset-deassert-us = <35>;
129 t1l2_phy: ethernet-phy@10 {
130 compatible = "ethernet-phy-id2000.0181";
132 interrupts-extended = <&gpiog 10 IRQ_TYPE_LEVEL_LOW>;
133 reset-gpios = <&gpiog 11 GPIO_ACTIVE_LOW>;
134 reset-assert-us = <10>;
135 reset-deassert-us = <35>;
140 rj45_phy: ethernet-phy@2 {
142 interrupts-extended = <&gpiog 7 IRQ_TYPE_LEVEL_LOW>;
143 reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
144 reset-assert-us = <10000>;
145 reset-deassert-us = <1000>;
147 clocks = <&clock_ksz9031>;
156 pinctrl-names = "default", "opendrain", "sleep";
157 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
158 pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
159 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
166 vmmc-supply = <®_3v3>;
167 vqmmc-supply = <®_3v3>;
171 &sdmmc2_b4_od_pins_a {
173 pinmux = <STM32_PINMUX('B', 14, AF9)>, /* SDMMC2_D0 */
174 <STM32_PINMUX('B', 7, AF10)>, /* SDMMC2_D1 */
175 <STM32_PINMUX('B', 3, AF9)>, /* SDMMC2_D2 */
176 <STM32_PINMUX('B', 4, AF9)>; /* SDMMC2_D3 */
182 pinmux = <STM32_PINMUX('B', 14, AF9)>, /* SDMMC2_D0 */
183 <STM32_PINMUX('B', 7, AF10)>, /* SDMMC2_D1 */
184 <STM32_PINMUX('B', 3, AF9)>, /* SDMMC2_D2 */
185 <STM32_PINMUX('B', 4, AF9)>, /* SDMMC2_D3 */
186 <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
190 &sdmmc2_b4_sleep_pins_a {
192 pinmux = <STM32_PINMUX('B', 14, ANALOG)>, /* SDMMC2_D0 */
193 <STM32_PINMUX('B', 7, ANALOG)>, /* SDMMC2_D1 */
194 <STM32_PINMUX('B', 3, ANALOG)>, /* SDMMC2_D2 */
195 <STM32_PINMUX('B', 4, ANALOG)>, /* SDMMC2_D3 */
196 <STM32_PINMUX('E', 3, ANALOG)>, /* SDMMC2_CK */
197 <STM32_PINMUX('G', 6, ANALOG)>; /* SDMMC2_CMD */
203 pinmux = <STM32_PINMUX('A', 8, AF9)>, /* SDMMC2_D4 */
204 <STM32_PINMUX('A', 9, AF10)>, /* SDMMC2_D5 */
205 <STM32_PINMUX('C', 6, AF10)>, /* SDMMC2_D6 */
206 <STM32_PINMUX('C', 7, AF10)>; /* SDMMC2_D7 */
210 &sdmmc2_d47_sleep_pins_a {
212 pinmux = <STM32_PINMUX('A', 8, ANALOG)>, /* SDMMC2_D4 */
213 <STM32_PINMUX('A', 9, ANALOG)>, /* SDMMC2_D5 */
214 <STM32_PINMUX('C', 6, ANALOG)>, /* SDMMC2_D6 */
215 <STM32_PINMUX('D', 3, ANALOG)>; /* SDMMC2_D7 */
220 pinctrl-names = "default", "opendrain", "sleep";
221 pinctrl-0 = <&sdmmc3_b4_pins_b>;
222 pinctrl-1 = <&sdmmc3_b4_od_pins_b>;
223 pinctrl-2 = <&sdmmc3_b4_sleep_pins_b>;
228 vmmc-supply = <®_3v3>;
229 vqmmc-supply = <®_3v3>;
230 mmc-pwrseq = <&wifi_pwrseq>;
231 #address-cells = <1>;
236 compatible = "prt,prtt1c-wfm200", "silabs,wf200";
241 &sdmmc3_b4_od_pins_b {
243 pinmux = <STM32_PINMUX('D', 1, AF10)>, /* SDMMC3_D0 */
244 <STM32_PINMUX('D', 4, AF10)>, /* SDMMC3_D1 */
245 <STM32_PINMUX('D', 5, AF10)>, /* SDMMC3_D2 */
246 <STM32_PINMUX('D', 7, AF10)>; /* SDMMC3_D3 */
252 pinmux = <STM32_PINMUX('D', 1, AF10)>, /* SDMMC3_D0 */
253 <STM32_PINMUX('D', 4, AF10)>, /* SDMMC3_D1 */
254 <STM32_PINMUX('D', 5, AF10)>, /* SDMMC3_D2 */
255 <STM32_PINMUX('D', 7, AF10)>, /* SDMMC3_D3 */
256 <STM32_PINMUX('D', 0, AF10)>; /* SDMMC3_CMD */
260 &sdmmc3_b4_sleep_pins_b {
262 pinmux = <STM32_PINMUX('D', 1, ANALOG)>, /* SDMMC3_D0 */
263 <STM32_PINMUX('D', 4, ANALOG)>, /* SDMMC3_D1 */
264 <STM32_PINMUX('D', 5, ANALOG)>, /* SDMMC3_D2 */
265 <STM32_PINMUX('D', 7, ANALOG)>, /* SDMMC3_D3 */
266 <STM32_PINMUX('G', 15, ANALOG)>, /* SDMMC3_CK */
267 <STM32_PINMUX('D', 0, ANALOG)>; /* SDMMC3_CMD */
272 pinctrl-0 = <&spi1_pins_b>;
273 pinctrl-names = "default";
274 cs-gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
275 /delete-property/dmas;
276 /delete-property/dma-names;
280 compatible = "nxp,sja1105q";
282 spi-max-frequency = <4000000>;
283 spi-rx-delay-us = <1>;
284 spi-tx-delay-us = <1>;
287 reset-gpios = <&gpioe 6 GPIO_ACTIVE_LOW>;
289 clocks = <&clock_sja1105>;
292 #address-cells = <1>;
299 phy-handle = <&t1l0_phy>;
306 phy-handle = <&t1l1_phy>;
313 phy-handle = <&t1l2_phy>;
319 phy-handle = <&rj45_phy>;
320 phy-mode = "rgmii-id";
326 ethernet = <ðernet0>;