hc
2023-11-07 f45e756958099c35d6afb746df1d40a1c6302cfc
enable wifi gpio
2 files modified
22 ■■■■ changed files
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi 18 ●●●● patch | view | raw | blame | history
kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi 4 ●●●● patch | view | raw | blame | history
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -548,8 +548,8 @@
548548 };
549549
550550 wireless-bluetooth {
551
- uart8_gpios: uart8-gpios {
552
- rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
551
+ uart1_gpios: uart1-gpios {
552
+ rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
553553 };
554554 };
555555
....@@ -663,7 +663,7 @@
663663 &wireless_wlan {
664664 pinctrl-names = "default";
665665 pinctrl-0 = <&wifi_host_wake_irq>;
666
- WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
666
+ WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
667667 };
668668
669669 &wireless_bluetooth {
....@@ -671,13 +671,13 @@
671671 clocks = <&rk809 1>;
672672 clock-names = "ext_clock";
673673 //wifi-bt-power-toggle;
674
- uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
674
+ uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
675675 pinctrl-names = "default", "rts_gpio";
676
- pinctrl-0 = <&uart8m0_rtsn>;
677
- pinctrl-1 = <&uart8_gpios>;
678
- BT,reset_gpio = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>;
679
- BT,wake_gpio = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
680
- BT,wake_host_irq = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
676
+ pinctrl-0 = <&uart1m0_rtsn>;
677
+ pinctrl-1 = <&uart1_gpios>;
678
+ BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
679
+ BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
680
+ BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
681681 status = "okay";
682682 };
683683
kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
....@@ -345,7 +345,7 @@
345345 * - PDN (power down when low)
346346 */
347347 post-power-on-delay-ms = <200>;
348
- reset-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
348
+ reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
349349 };
350350
351351 wireless_wlan: wireless-wlan {
....@@ -1518,7 +1518,7 @@
15181518
15191519 sdio-pwrseq {
15201520 wifi_enable_h: wifi-enable-h {
1521
- rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
1521
+ rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
15221522 };
15231523 };
15241524