1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2023 Rockchip Electronics Co., Ltd. 4 * 5 */ 6 7/dts-v1/; 8 9#include "rv1106.dtsi" 10#include "rv1106-evb-v10.dtsi" 11#include "rv1106-evb-cvr-dual-cam.dtsi" 12 13/ { 14 model = "Rockchip RV1106G EVB1 V11 Board For CVR Dual Camera"; 15 compatible = "rockchip,rv1106g-evb1-v11-cvr-dual-cam", "rockchip,rv1106"; 16 17 sdio_pwrseq: sdio-pwrseq { 18 compatible = "mmc-pwrseq-simple"; 19 pinctrl-names = "default"; 20 pinctrl-0 = <&wifi_enable_h &wifi_vbat>; 21 22 /* 23 * On the module itself this is one of these (depending 24 * on the actual card populated): 25 * - SDIO_RESET_L_WL_REG_ON 26 * - PDN (power down when low) 27 */ 28 post-power-on-delay-ms = <300>; 29 reset-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>, 30 <&gpio1 RK_PA0 GPIO_ACTIVE_LOW>; 31 }; 32 33 vcc_1v8: vcc-1v8 { 34 compatible = "regulator-fixed"; 35 regulator-name = "vcc_1v8"; 36 regulator-always-on; 37 regulator-boot-on; 38 regulator-min-microvolt = <1800000>; 39 regulator-max-microvolt = <1800000>; 40 }; 41 42 vcc_3v3: vcc-3v3 { 43 compatible = "regulator-fixed"; 44 regulator-name = "vcc_3v3"; 45 regulator-always-on; 46 regulator-boot-on; 47 regulator-min-microvolt = <3300000>; 48 regulator-max-microvolt = <3300000>; 49 }; 50 51 vcc3v3_sd: vcc3v3-sd { 52 compatible = "regulator-fixed"; 53 gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_LOW>; 54 regulator-name = "vcc3v3_sd"; 55 regulator-min-microvolt = <3300000>; 56 regulator-max-microvolt = <3300000>; 57 pinctrl-names = "default"; 58 pinctrl-0 = <&sdmmc_pwren>; 59 }; 60 61 vccio_sd: vccio-sd { 62 compatible = "regulator-gpio"; 63 regulator-name = "vccio_sd"; 64 regulator-min-microvolt = <1800000>; 65 regulator-max-microvolt = <3300000>; 66 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>; 67 states = <3300000 1 68 1800000 0>; 69 pinctrl-names = "default"; 70 pinctrl-0 = <&sdmmc_volt>; 71 }; 72 73 wireless_wlan: wireless-wlan { 74 compatible = "wlan-platdata"; 75 wifi_chip_type = "rtl8189fs"; 76 pinctrl-names = "default"; 77 pinctrl-0 = <&wifi_host_wake_irq>; 78 WIFI,host_wake_irq = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>; 79 status = "okay"; 80 }; 81}; 82 83&pinctrl { 84 sdio-pwrseq { 85 wifi_enable_h: wifi-enable-h { 86 rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; 87 }; 88 89 wifi_vbat: wifi-vbat { 90 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 91 }; 92 }; 93 94 sdmmc { 95 /omit-if-no-ref/ 96 sdmmc_pwren: sdmmc-pwren { 97 rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 98 }; 99 100 /omit-if-no-ref/ 101 sdmmc_volt: sdmmc-volt { 102 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 103 }; 104 }; 105 106 usb { 107 usb_pwren: usb-pwren { 108 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; 109 }; 110 }; 111 112 wireless-wlan { 113 wifi_host_wake_irq: wifi-host-wake-irq { 114 rockchip,pins = <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; 115 }; 116 }; 117}; 118 119&sdio { 120 max-frequency = <200000000>; 121 no-sd; 122 no-mmc; 123 bus-width = <4>; 124 cap-sd-highspeed; 125 cap-sdio-irq; 126 keep-power-in-suspend; 127 mmc-pwrseq = <&sdio_pwrseq>; 128 non-removable; 129 sd-uhs-sdr104; 130 pinctrl-names = "default"; 131 pinctrl-0 = <&sdmmc1m0_cmd &sdmmc1m0_clk &sdmmc1m0_bus4 &clk_32k>; 132 status = "okay"; 133}; 134 135&sdmmc { 136 max-frequency = <200000000>; 137 no-sdio; 138 no-mmc; 139 bus-width = <4>; 140 cap-mmc-highspeed; 141 cap-sd-highspeed; 142 disable-wp; 143 pinctrl-names = "normal", "idle"; 144 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_bus4>; 145 pinctrl-1 = <&sdmmc0_idle_pins &sdmmc0_det>; 146 sd-uhs-sdr12; 147 sd-uhs-sdr25; 148 sd-uhs-sdr50; 149 sd-uhs-sdr104; 150 vmmc-supply = <&vcc3v3_sd>; 151 vqmmc-supply = <&vccio_sd>; 152 status = "okay"; 153}; 154 155&pinctrl { 156 /delete-node/ usb; 157}; 158 159&sfc { 160 status = "okay"; 161 162 flash@0 { 163 compatible = "spi-nand"; 164 reg = <0>; 165 spi-max-frequency = <75000000>; 166 spi-rx-bus-width = <4>; 167 spi-tx-bus-width = <1>; 168 }; 169}; 170 171&u2phy_otg { 172 /delete-property/ vbus-supply; 173}; 174 175&usbdrd_dwc3 { 176 dr_mode = "peripheral"; 177}; 178 179&saradc { 180 status = "okay"; 181 vref-supply = <&vcc_1v8>; 182}; 183