ARM64: dts: rk3399-tb: add wifi/sdio/sdcard support
authorxiaoyao <xiaoyao@rock-chips.com>
Thu, 31 Mar 2016 07:36:10 +0000 (15:36 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Fri, 1 Apr 2016 01:14:25 +0000 (09:14 +0800)
Change-Id: Id5b97f2eb3b1bd2eeb42882743a3e64f59d45128
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi

index 79cd312600047e5614568cff011dc7be785238f6..949e1dd61b60db7fb0949c8a94de5d6982ffaad7 100644 (file)
                compatible = "linux,spdif-dit";
                #sound-dai-cells = <0>;
        };
+
+       sdio_pwrseq: sdio-pwrseq {
+               compatible = "mmc-pwrseq-simple";
+               clocks = <&rk808 1>;
+               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 = <&gpio0 10 GPIO_ACTIVE_LOW>; /* GPIO0_B2 */
+       };
+
+       wireless-wlan {
+               compatible = "wlan-platdata";
+               rockchip,grf = <&grf>;
+               wifi_chip_type = "ap6354";
+               sdio_vref = <1800>;
+               WIFI,host_wake_irq = <&gpio0 3 GPIO_ACTIVE_HIGH>; /* GPIO0_a3 */
+               status = "okay";
+       };
+};
+
+&pinctrl {
+       sdio-pwrseq {
+               wifi_enable_h: wifi-enable-h {
+                       rockchip,pins = <0 10 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
 };
 
 &sdmmc {
        num-slots = <1>;
        pinctrl-names = "default";
        pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
-       status = "disabled";
+       status = "okay";
 };
 
 &sdio0 {
-       clock-frequency = <37500000>;
-       clock-freq-min-max = <200000 37500000>;
+       clock-frequency = <50000000>;
+       clock-freq-min-max = <200000 50000000>;
        supports-sdio;
        bus-width = <4>;
        disable-wp;
        cap-sd-highspeed;
        cap-sdio-irq;
        keep-power-in-suspend;
-       //mmc-pwrseq = <&sdio_pwrseq>;
+       mmc-pwrseq = <&sdio_pwrseq>;
        non-removable;
        num-slots = <1>;
        pinctrl-names = "default";
        pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
        sd-uhs-sdr104;
-       status = "disabled";
+       status = "okay";
 };
 
 &emmc_phy {