ARM: dts: rk3288: support AP6335 wifi for rk3288-firefly
authorNickey Yang <nickey.yang@rock-chips.com>
Mon, 8 Aug 2016 06:19:17 +0000 (14:19 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 11 Aug 2016 02:16:17 +0000 (10:16 +0800)
This patch add and enable AP6335 wifi node for rk3288-firefly

Change-Id: I5db126aa50b7d83cd50498d487c35383c900b855
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
arch/arm/boot/dts/rk3288-firefly.dtsi

index 6bfbd7fd9a63c4c8425310b926968f58ed2c5717..3c9f984b83ca826b47b19891569909839acb9880 100644 (file)
                };
        };
 
                };
        };
 
+       sdio_pwrseq: sdio-pwrseq {
+               compatible = "mmc-pwrseq-simple";
+               clocks = <&hym8563>;
+               clock-names = "ext_clock";
+               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 = <&gpio4 28 GPIO_ACTIVE_LOW>;
+       };
+
        vbat_wl: vcc_sys: vsys-regulator {
                compatible = "regulator-fixed";
                regulator-name = "vcc_sys";
        vbat_wl: vcc_sys: vsys-regulator {
                compatible = "regulator-fixed";
                regulator-name = "vcc_sys";
                regulator-always-on;
                vin-supply = <&vcc_io>;
        };
                regulator-always-on;
                vin-supply = <&vcc_io>;
        };
+
+       wireless-wlan {
+               compatible = "wlan-platdata";
+               rockchip,grf = <&grf>;
+               wifi_chip_type = "ap6335";
+               sdio_vref = <1800>;
+               WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
+               status = "okay";
+       };
 };
 
 &cpu0 {
 };
 
 &cpu0 {
                };
        };
 
                };
        };
 
+       sdio-pwrseq {
+               wifi_enable_h: wifi-enable-h {
+                       rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        sdmmc {
                sdmmc_pwr: sdmmc-pwr {
                        rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
        sdmmc {
                sdmmc_pwr: sdmmc-pwr {
                        rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
 };
 
 &sdio0 {
 };
 
 &sdio0 {
+       clock-frequency = <50000000>;
+       clock-freq-min-max = <200000 50000000>;
+
        bus-width = <4>;
        bus-width = <4>;
+       cap-sd-highspeed;
+       cap-sdio-irq;
        disable-wp;
        disable-wp;
+       keep-power-in-suspend;
+       mmc-pwrseq = <&sdio_pwrseq>;
        non-removable;
        num-slots = <1>;
        pinctrl-names = "default";
        non-removable;
        num-slots = <1>;
        pinctrl-names = "default";
-       pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>;
+       pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>;
+       sd-uhs-sdr104;
+       supports-sdio;
        vmmc-supply = <&vbat_wl>;
        vqmmc-supply = <&vccio_wl>;
        status = "okay";
        vmmc-supply = <&vbat_wl>;
        vqmmc-supply = <&vccio_wl>;
        status = "okay";