1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2022 Rockchip Electronics Co., Ltd. 4 * 5 */ 6 7/dts-v1/; 8 9#include "rk3528.dtsi" 10#include "rk3528-evb.dtsi" 11 12/ { 13 model = "Rockchip RK3528 EVB1 DDR4 V10 Board"; 14 compatible = "rockchip,rk3528-evb1-ddr4-v10", "rockchip,rk3528"; 15 16 sdio_pwrseq: sdio-pwrseq { 17 compatible = "mmc-pwrseq-simple"; 18 pinctrl-names = "default"; 19 pinctrl-0 = <&wifi_enable_h &clkm1_32k_out>; 20 reset-gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_LOW>; 21 }; 22 23 wireless_bluetooth: wireless-bluetooth { 24 compatible = "bluetooth-platdata"; 25 //wifi-bt-power-toggle; 26 uart_rts_gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_LOW>; 27 pinctrl-names = "default", "rts_gpio"; 28 pinctrl-0 = <&uart2m1_rtsn>; 29 pinctrl-1 = <&uart2m1_gpios>; 30 BT,reset_gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>; 31 BT,wake_gpio = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>; 32 BT,wake_host_irq = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>; 33 status = "okay"; 34 }; 35 36 wireless_wlan: wireless-wlan { 37 compatible = "wlan-platdata"; 38 rockchip,grf = <&grf>; 39 wifi_chip_type = "ap6275s"; 40 pinctrl-names = "default"; 41 pinctrl-0 = <&wifi_host_wake_irq>; 42 WIFI,host_wake_irq = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>; 43 status = "okay"; 44 }; 45 46}; 47 48&es7243_sound { 49 status = "disabled"; 50}; 51 52&gmac1 { 53 /* Use rgmii-rxid mode to disable rx delay inside Soc */ 54 phy-mode = "rgmii-rxid"; 55 clock_in_out = "output"; 56 57 snps,reset-gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>; 58 snps,reset-active-low; 59 /* Reset time is 20ms, 100ms for rtl8211f */ 60 snps,reset-delays-us = <0 20000 100000>; 61 62 tx_delay = <0x30>; 63 /* rx_delay = <0x3f>; */ 64 65 pinctrl-names = "default"; 66 pinctrl-0 = <&rgmii_miim 67 &rgmii_tx_bus2 68 &rgmii_rx_bus2 69 &rgmii_rgmii_clk 70 &rgmii_rgmii_bus>; 71 72 phy-handle = <&rgmii_phy>; 73 status = "okay"; 74}; 75 76&i2c6 { 77 status = "okay"; 78}; 79 80&mdio1 { 81 rgmii_phy: phy@1 { 82 compatible = "ethernet-phy-ieee802.3-c22"; 83 reg = <0x1>; 84 }; 85}; 86 87&sai1 { 88 status = "okay"; 89}; 90 91&sdio0 { 92 max-frequency = <200000000>; 93 no-sd; 94 no-mmc; 95 supports-sdio; 96 bus-width = <4>; 97 disable-wp; 98 cap-sd-highspeed; 99 cap-sdio-irq; 100 keep-power-in-suspend; 101 non-removable; 102 mmc-pwrseq = <&sdio_pwrseq>; 103 pinctrl-names = "default"; 104 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; 105 sd-uhs-sdr104; 106 status = "okay"; 107}; 108 109&uart2 { 110 status = "okay"; 111 pinctrl-names = "default"; 112 pinctrl-0 = <&uart2m1_xfer &uart2m1_ctsn>; 113}; 114 115&pinctrl { 116 sdio-pwrseq { 117 wifi_enable_h: wifi-enable-h { 118 rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 119 }; 120 121 wifi_32k: wifi-32k { 122 rockchip,pins = <1 RK_PC3 1 &pcfg_pull_none>; 123 }; 124 }; 125 126 wireless-wlan { 127 wifi_host_wake_irq: wifi-host-wake-irq { 128 rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>; 129 }; 130 }; 131 132 wireless-bluetooth { 133 uart2m1_gpios: uart2m1-gpios { 134 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 135 }; 136 }; 137}; 138