Revert "arm64: dts: rockchip: change the wifi power-on method for rk356x evb"

This reverts commit e37604f00f.

Signed-off-by: Alex Zhao <zzc@rock-chips.com>
Change-Id: I90a96482445710b6089acd5b6ad19264462b35f7
This commit is contained in:
Alex Zhao
2021-01-04 11:54:32 +08:00
committed by Tao Huang
parent 67be194d10
commit a6107c8add
7 changed files with 98 additions and 42 deletions

View File

@@ -315,10 +315,11 @@
cap-sd-highspeed; cap-sd-highspeed;
cap-sdio-irq; cap-sdio-irq;
keep-power-in-suspend; keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>; pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>;
sd-uhs-sdr104; sd-uhs-sdr104;
logic-remove-card;
status = "okay"; status = "okay";
}; };
@@ -351,8 +352,7 @@
&wireless_wlan { &wireless_wlan {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&wifi_poweren &wifi_host_wake_irq>; pinctrl-0 = <&wifi_host_wake_irq>;
WIFI,poweren_gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
}; };
@@ -376,10 +376,6 @@
}; };
wireless-wlan { wireless-wlan {
wifi_poweren: wifi-poweren {
rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
};
wifi_host_wake_irq: wifi-host-wake-irq { wifi_host_wake_irq: wifi-host-wake-irq {
rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>; rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>;
}; };

View File

@@ -298,11 +298,13 @@
}; };
}; };
wireless-wlan { sdio-pwrseq {
wifi_poweren: wifi-poweren { wifi_enable_h: wifi-enable-h {
rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
}; };
};
wireless-wlan {
wifi_host_wake_irq: wifi-host-wake-irq { wifi_host_wake_irq: wifi-host-wake-irq {
rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>; rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
}; };
@@ -387,13 +389,18 @@
cap-sd-highspeed; cap-sd-highspeed;
cap-sdio-irq; cap-sdio-irq;
keep-power-in-suspend; keep-power-in-suspend;
logic-remove-card; mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
sd-uhs-sdr104; sd-uhs-sdr104;
status = "okay"; status = "okay";
}; };
&sdio_pwrseq {
reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
};
&spdif_8ch { &spdif_8ch {
status = "okay"; status = "okay";
pinctrl-names = "default"; pinctrl-names = "default";
@@ -417,8 +424,7 @@
}; };
&wireless_wlan { &wireless_wlan {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&wifi_poweren &wifi_host_wake_irq>; pinctrl-0 = <&wifi_host_wake_irq>;
WIFI,poweren_gpio = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>;
WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>; WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
}; };

View File

@@ -173,11 +173,13 @@
}; };
}; };
wireless-wlan { sdio-pwrseq {
wifi_poweren: wifi-poweren { wifi_enable_h: wifi-enable-h {
rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
}; };
};
wireless-wlan {
wifi_host_wake_irq: wifi-host-wake-irq { wifi_host_wake_irq: wifi-host-wake-irq {
rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>; rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
}; };
@@ -223,6 +225,10 @@
status = "okay"; status = "okay";
}; };
&sdio_pwrseq {
reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
};
&sdmmc1 { &sdmmc1 {
max-frequency = <150000000>; max-frequency = <150000000>;
supports-sdio; supports-sdio;
@@ -231,10 +237,11 @@
cap-sd-highspeed; cap-sd-highspeed;
cap-sdio-irq; cap-sdio-irq;
keep-power-in-suspend; keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
sd-uhs-sdr104; sd-uhs-sdr104;
logic-remove-card;
status = "okay"; status = "okay";
}; };
@@ -272,7 +279,6 @@
&wireless_wlan { &wireless_wlan {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&wifi_poweren &wifi_host_wake_irq>; pinctrl-0 = <&wifi_host_wake_irq>;
WIFI,poweren_gpio = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>;
WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>; WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
}; };

View File

@@ -295,6 +295,22 @@
}; };
}; };
sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
clocks = <&rk809 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 = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
};
wireless_wlan: wireless-wlan { wireless_wlan: wireless-wlan {
compatible = "wlan-platdata"; compatible = "wlan-platdata";
rockchip,grf = <&grf>; rockchip,grf = <&grf>;
@@ -1410,6 +1426,12 @@
}; };
}; };
sdio-pwrseq {
wifi_enable_h: wifi-enable-h {
rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
usb { usb {
vcc5v0_host_en: vcc5v0-host-en { vcc5v0_host_en: vcc5v0-host-en {
rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;

View File

@@ -382,10 +382,6 @@
}; };
wireless-wlan { wireless-wlan {
wifi_poweren: wifi-poweren {
rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
};
wifi_host_wake_irq: wifi-host-wake-irq { wifi_host_wake_irq: wifi-host-wake-irq {
rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>; rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>;
}; };
@@ -436,10 +432,11 @@
cap-sd-highspeed; cap-sd-highspeed;
cap-sdio-irq; cap-sdio-irq;
keep-power-in-suspend; keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>; pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>;
sd-uhs-sdr104; sd-uhs-sdr104;
logic-remove-card;
status = "okay"; status = "okay";
}; };
@@ -467,8 +464,7 @@
&wireless_wlan { &wireless_wlan {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&wifi_poweren &wifi_host_wake_irq>; pinctrl-0 = <&wifi_host_wake_irq>;
WIFI,poweren_gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
}; };

View File

@@ -278,20 +278,22 @@
}; };
}; };
wireless-wlan { sdio-pwrseq {
wifi_poweren: wifi-poweren { wifi_enable_h: wifi-enable-h {
rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
}; };
wifi_host_wake_irq: wifi-host-wake-irq {
rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
};
wifi_32k: wifi-32k { wifi_32k: wifi-32k {
rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>; rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>;
}; };
}; };
wireless-wlan {
wifi_host_wake_irq: wifi-host-wake-irq {
rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
wireless-bluetooth { wireless-bluetooth {
uart1_gpios: uart1-gpios { uart1_gpios: uart1-gpios {
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -417,6 +419,19 @@
status = "okay"; status = "okay";
}; };
&sdio_pwrseq {
clocks = <&pmucru CLK_RTC_32K>;
pinctrl-0 = <&wifi_enable_h &wifi_32k>;
/*
* 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 = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
};
&sdmmc1 { &sdmmc1 {
max-frequency = <150000000>; max-frequency = <150000000>;
supports-sdio; supports-sdio;
@@ -425,10 +440,11 @@
cap-sd-highspeed; cap-sd-highspeed;
cap-sdio-irq; cap-sdio-irq;
keep-power-in-suspend; keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
sd-uhs-sdr104; sd-uhs-sdr104;
logic-remove-card;
status = "okay"; status = "okay";
}; };
@@ -454,8 +470,7 @@
&wireless_wlan { &wireless_wlan {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&wifi_poweren &wifi_host_wake_irq &wifi_32k>; pinctrl-0 = <&wifi_host_wake_irq>;
WIFI,poweren_gpio = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>;
WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>; WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
}; };

View File

@@ -210,12 +210,8 @@
}; };
}; };
wireless-wlan { sdio-pwrseq {
wifi_host_wake_irq: wifi-host-wake-irq { wifi_enable_h: wifi-enable-h {
rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
};
wifi_poweren: wifi-poweren {
rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
}; };
@@ -224,6 +220,12 @@
}; };
}; };
wireless-wlan {
wifi_host_wake_irq: wifi-host-wake-irq {
rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
wireless-bluetooth { wireless-bluetooth {
uart1_gpios: uart1-gpios { uart1_gpios: uart1-gpios {
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -243,10 +245,11 @@
cap-sd-highspeed; cap-sd-highspeed;
cap-sdio-irq; cap-sdio-irq;
keep-power-in-suspend; keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
sd-uhs-sdr104; sd-uhs-sdr104;
logic-remove-card;
status = "okay"; status = "okay";
}; };
@@ -254,6 +257,19 @@
status = "disabled"; status = "disabled";
}; };
&sdio_pwrseq {
clocks = <&pmucru CLK_RTC_32K>;
pinctrl-0 = <&wifi_enable_h &wifi_32k>;
/*
* 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 = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
};
&spdif_8ch { &spdif_8ch {
status = "disabled"; status = "disabled";
}; };
@@ -283,8 +299,7 @@
&wireless_wlan { &wireless_wlan {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&wifi_32k &wifi_poweren &wifi_host_wake_irq>; pinctrl-0 = <&wifi_host_wake_irq>;
WIFI,poweren_gpio = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>;
WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>; WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
}; };