Jonas Karlman | 0103212 | 2024-08-02 22:12:19 +0000 | [diff] [blame^] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | |
| 3 | /dts-v1/; |
| 4 | |
| 5 | #include "rk3566-radxa-zero-3.dtsi" |
| 6 | |
| 7 | / { |
| 8 | model = "Radxa ZERO 3W"; |
| 9 | compatible = "radxa,zero-3w", "rockchip,rk3566"; |
| 10 | |
| 11 | aliases { |
| 12 | mmc1 = &sdhci; |
| 13 | mmc2 = &sdmmc1; |
| 14 | }; |
| 15 | |
| 16 | sdio_pwrseq: sdio-pwrseq { |
| 17 | compatible = "mmc-pwrseq-simple"; |
| 18 | clocks = <&rk817 1>; |
| 19 | clock-names = "ext_clock"; |
| 20 | pinctrl-names = "default"; |
| 21 | pinctrl-0 = <&wifi_reg_on_h>; |
| 22 | post-power-on-delay-ms = <100>; |
| 23 | power-off-delay-us = <5000000>; |
| 24 | reset-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_LOW>; |
| 25 | }; |
| 26 | }; |
| 27 | |
| 28 | &pinctrl { |
| 29 | bluetooth { |
| 30 | bt_reg_on_h: bt-reg-on-h { |
| 31 | rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; |
| 32 | }; |
| 33 | |
| 34 | bt_wake_host_h: bt-wake-host-h { |
| 35 | rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 36 | }; |
| 37 | |
| 38 | host_wake_bt_h: host-wake-bt-h { |
| 39 | rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 40 | }; |
| 41 | }; |
| 42 | |
| 43 | wifi { |
| 44 | wifi_reg_on_h: wifi-reg-on-h { |
| 45 | rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 46 | }; |
| 47 | |
| 48 | wifi_wake_host_h: wifi-wake-host-h { |
| 49 | rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; |
| 50 | }; |
| 51 | }; |
| 52 | }; |
| 53 | |
| 54 | &sdhci { |
| 55 | bus-width = <8>; |
| 56 | cap-mmc-highspeed; |
| 57 | max-frequency = <200000000>; |
| 58 | mmc-hs200-1_8v; |
| 59 | no-sd; |
| 60 | no-sdio; |
| 61 | non-removable; |
| 62 | pinctrl-names = "default"; |
| 63 | pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; |
| 64 | vmmc-supply = <&vcc_3v3>; |
| 65 | vqmmc-supply = <&vcc_1v8>; |
| 66 | status = "okay"; |
| 67 | }; |
| 68 | |
| 69 | &sdmmc1 { |
| 70 | bus-width = <4>; |
| 71 | cap-sd-highspeed; |
| 72 | cap-sdio-irq; |
| 73 | keep-power-in-suspend; |
| 74 | mmc-pwrseq = <&sdio_pwrseq>; |
| 75 | no-mmc; |
| 76 | no-sd; |
| 77 | non-removable; |
| 78 | pinctrl-names = "default"; |
| 79 | pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_clk &sdmmc1_cmd>; |
| 80 | sd-uhs-sdr104; |
| 81 | vmmc-supply = <&vcc_3v3>; |
| 82 | vqmmc-supply = <&vcc_1v8>; |
| 83 | status = "okay"; |
| 84 | }; |
| 85 | |
| 86 | &uart1 { |
| 87 | pinctrl-names = "default"; |
| 88 | pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>; |
| 89 | uart-has-rtscts; |
| 90 | status = "okay"; |
| 91 | }; |