1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Copyright (c) 2021 Oleksij Rempel <kernel@pengutronix.de>, Pengutronix
6 #include "sama5d36.dtsi"
10 compatible = "microchip,sama5d3-ksz9477-evb", "atmel,sama5d36",
11 "atmel,sama5d3", "atmel,sama5";
17 reg_3v3: regulator-3v3 {
18 compatible = "regulator-fixed";
19 regulator-name = "3v3";
20 regulator-min-microvolt = <3300000>;
21 regulator-max-microvolt = <3300000>;
24 reg_vcc_mmc0: regulator-mmc0 {
25 compatible = "regulator-fixed";
26 pinctrl-names = "default";
27 pinctrl-0 = <&pinctrl_mcc0_vcc>;
28 regulator-name = "mmc0-vcc";
29 regulator-max-microvolt = <3300000>;
30 regulator-min-microvolt = <3300000>;
31 gpio = <&pioE 2 GPIO_ACTIVE_LOW>;
40 pinctrl-0 = <&pinctrl_ebi_nand_addr>;
41 pinctrl-names = "default";
46 pinctrl-0 = <&pinctrl_i2c0_pu>;
61 clock-frequency = <12000000>;
65 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3
66 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>;
72 cd-gpios = <&pioE 0 GPIO_ACTIVE_LOW>;
74 vmmc-supply = <®_vcc_mmc0>;
75 vqmmc-supply = <®_3v3>;
87 nand-ecc-strength = <4>;
88 nand-ecc-step-size = <512>;
95 clock-frequency = <32768>;
99 cs-gpios = <&pioD 13 GPIO_ACTIVE_LOW>, <0>, <0>,
100 <&pioD 16 GPIO_ACTIVE_LOW>;
105 pinctrl-0 = <&pinctrl_spi_ksz>;
106 cs-gpios = <&pioC 25 GPIO_ACTIVE_LOW>;
110 compatible = "microchip,ksz9477";
112 spi-max-frequency = <1000000>;
117 #address-cells = <1>;
149 phy-mode = "rgmii-txid";
161 pinctrl-names = "default";
162 pinctrl-0 = <&pinctrl_usba_vbus>;
163 atmel,vbus-gpio = <&pioE 9 GPIO_ACTIVE_HIGH>;
169 pinctrl_i2c0_pu: i2c0-pu {
171 <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
172 <AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
175 pinctrl_mmc0_cd: mmc0-cd {
176 atmel,pins = <AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
179 pinctrl_mcc0_vcc: mmc0-vcc {
180 atmel,pins = <AT91_PIOE 2 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
183 pinctrl_spi_ksz: spi-ksz {
187 AT91_PIOC 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
189 AT91_PIOC 23 AT91_PERIPH_A AT91_PINCTRL_NONE
191 AT91_PIOC 24 AT91_PERIPH_A AT91_PINCTRL_NONE
194 AT91_PIOC 25 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
196 AT91_PIOB 28 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH
197 /* switch PME_N, SoC IN */
198 AT91_PIOC 30 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP
200 AT91_PIOC 31 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH
204 pinctrl_usba_vbus: usba-vbus {
206 <AT91_PIOE 9 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;