arm64: dts add Rockchip RK3328 EVB board for wifi
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3328-evb.dts
index 4f502fe0d39433bad86915c5d4a014f0d048c45d..2ff40704183e4a6a00cf5379b5662a09675d8b40 100644 (file)
                regulator-always-on;
                regulator-boot-on;
        };
+
+       sdio_pwrseq: sdio-pwrseq {
+               compatible = "mmc-pwrseq-simple";
+               pinctrl-names = "default";
+               pinctrl-0 = <&wifi_enable_h>;
+
+               /*
+                * On the module itself this is one of these (depending
+                * on the actual card populated):
+                * - SDIO_RESET_L_WL_REG_ON
+                * - PDN (power down when low)
+                */
+               reset-gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
+       };
+
+       wireless-wlan {
+               compatible = "wlan-platdata";
+               rockchip,grf = <&grf>;
+               wifi_chip_type = "ap6354";
+               sdio_vref = <1800>;
+               WIFI,host_wake_irq = <&gpio1 19 GPIO_ACTIVE_HIGH>;
+               status = "okay";
+       };
+
 };
 
 &cpu0 {
                        <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;  /* gpio2_a6 */
                };
        };
+
+       sdio-pwrseq {
+               wifi_enable_h: wifi-enable-h {
+               rockchip,pins =
+                       <1 18 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
 };