From: gwl Date: Thu, 27 Feb 2014 08:31:47 +0000 (+0800) Subject: wifi: enable sdio interface. add wifi resources into dts. X-Git-Tag: firefly_0821_release~6258 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=076eb0885ae2338c28372d49db9efbfc18083c70;p=firefly-linux-kernel-4.4.55.git wifi: enable sdio interface. add wifi resources into dts. --- diff --git a/arch/arm/boot/dts/rk3188-mmc.dtsi b/arch/arm/boot/dts/rk3188-mmc.dtsi index 1305446118b6..20992232c8c1 100755 --- a/arch/arm/boot/dts/rk3188-mmc.dtsi +++ b/arch/arm/boot/dts/rk3188-mmc.dtsi @@ -62,13 +62,13 @@ mmc,ocr = <(MMC_VDD_25_26 | MMC_VDD_26_27 | MMC_VDD_27_28 | MMC_VDD_28_29 | MMC_VDD_29_30 | MMC_VDD_30_31 | MMC_VDD_31_32 | MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_34_35 )>; - mmc,use_dma = ; - mmc,dma_ch = ; - mmc,int = ; - //mmc,int = ; - //OOB pin? - mmc,emmc_is_selected = <0>; - status = "disabled"; + //mmc,use_dma = ; + //mmc,dma_ch = ; + //mmc,int = ; + ////mmc,int = ; + ////OOB pin? + //mmc,emmc_is_selected = <0>; + status = "okay"; }; emmc: rksdmmc@1021C000 { diff --git a/arch/arm/boot/dts/rk3188-tb.dts b/arch/arm/boot/dts/rk3188-tb.dts index 10cf2816add8..133fca36150a 100755 --- a/arch/arm/boot/dts/rk3188-tb.dts +++ b/arch/arm/boot/dts/rk3188-tb.dts @@ -19,6 +19,35 @@ status = "okay"; }; + wireless-wlan { + compatible = "wlan-platdata"; + wifi_chip_type = ""; + sdio_vref = <28000>; + + wlan_ctrl_pmic { + power_ctrl_by_pmu = "false"; + pmu_regulator = "act_ldo3"; + pmu_enable_level = <1>; //1->HIGH, 0->LOW + }; + + wlan_ctrl_gpios { + gpio0 { + pin-func = "wlan_poweren"; + gpios = <&gpio3 GPIO_D0 GPIO_ACTIVE_HIGH>; + }; + + gpio1 { + pin-func = "wlan_reset"; + #gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>; + }; + + gpio2 { + pin-func = "wlan_wake_host_irq"; + gpios = <&gpio3 GPIO_D2 GPIO_ACTIVE_HIGH>; + }; + }; + }; + backlight { compatible = "pwm-backlight"; pwms = <&pwm3 0 25000>;