Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: rockchip: Add the SDIO wifi on Radxa Rock2 square

Enable the sdio0 slot on the Rock2 square which has a broadcom wifi chip
attached and add a power sequence to enable the wifi chip and turn on
the required 32k clock.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>

authored by

Sjoerd Simons and committed by
Heiko Stuebner
dfa31117 30c4cbcd

+31 -1
+31 -1
arch/arm/boot/dts/rk3288-rock2-square.dts
··· 86 86 #sound-dai-cells = <0>; 87 87 }; 88 88 89 + sdio_pwrseq: sdio-pwrseq { 90 + compatible = "mmc-pwrseq-simple"; 91 + clocks = <&hym8563>; 92 + clock-names = "ext_clock"; 93 + pinctrl-names = "default"; 94 + pinctrl-0 = <&wifi_enable>; 95 + reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>; 96 + }; 97 + 89 98 vcc_usb_host: vcc-host-regulator { 90 99 compatible = "regulator-fixed"; 91 100 enable-active-high; ··· 118 109 regulator-max-microvolt = <3300000>; 119 110 vin-supply = <&vcc_io>; 120 111 }; 112 + }; 113 + 114 + &sdio0 { 115 + bus-width = <4>; 116 + cap-sd-highspeed; 117 + cap-sdio-irq; 118 + disable-wp; 119 + mmc-pwrseq = <&sdio_pwrseq>; 120 + non-removable; 121 + num-slots = <1>; 122 + pinctrl-names = "default"; 123 + pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>; 124 + vmmc-supply = <&vcc_io>; 125 + vqmmc-supply = <&vcc_18>; 126 + status = "okay"; 121 127 }; 122 128 123 129 &sdmmc { ··· 159 135 }; 160 136 161 137 &i2c0 { 162 - hym8563@51 { 138 + hym8563: hym8563@51 { 163 139 compatible = "haoyu,hym8563"; 164 140 reg = <0x51>; 165 141 #clock-cells = <0>; ··· 199 175 sdmmc { 200 176 sdmmc_pwr: sdmmc-pwr { 201 177 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>; 178 + }; 179 + }; 180 + 181 + sdio { 182 + wifi_enable: wifi-enable { 183 + rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>; 202 184 }; 203 185 }; 204 186 };