Hi @ilmich,
I quickly checked the GPIOs for Wlan and so far I haven't found the source of the problem. At first glance, the pins are indeed those defined in the dtb...
To help me identify the pinctrl from the gpio kernel debug file, I've made myself a correspondence table, I don't know if it can help other people but i share it here : http://sandbox02.poc.ng/tvbox/rk322x_linux_gpio.txt
WIP :
* From Extract info from android DTS:
WIFI,host_wake_irq = <0x75 0x1c 0x00>; => gpio0/RK_PD4
WIFI,poweren_gpio = <0x7c 0x1a 0x00>; => gpio2/RK_PD2
BT,power_gpio = <0x7c 0x1d 0x00>; => gpio2/RK_PD5
uart_rts_gpios = <0xa9 0x06 0x01>; => gpio3/RK_PA6
BT,wake_gpio = <0xa9 0x1b 0x00>; => gpio3/RK_PD3
* From dmesg
[ 5.250216] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: uart_rts_gpios = 102. => GPIO3 RK_PA6
[ 5.250334] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,power_gpio = 93. => GPIO2 RK_PD5 => rk322x.dtsi =??=> uart0-cts (rockchip,pins = <2 RK_PD5 1 &pcfg_pull_none>;)
[ 5.250466] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_gpio = 123. => GPIO3 RK_PD3
[ 5.250604] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_host_irq = 122.
[ 4.789424] export led gpio: 39 => GPIO1 RK_PA7
/* defined in android dtb but fd650 not present */
[ 4.965395] fd650_devs_get_of_pdata sda gpio:13 => GPIO0 RK_PB5
[ 4.965530] fd650_devs_get_of_pdata scl gpio:116 => GPIO3 RK_PC4
* from /sys/kernel/degub/gpio
GPIOs 0-31, platform/pinctrl.17, gpio0:
gpio-13 (fd650_sda ) out hi GPIO0 RK_PB5 /* fd650 controle not present */
GPIOs 32-63, platform/pinctrl.17, gpio1:
gpio-35 (spk_ctl ) out lo GPIO1 RK_PA3
gpio-39 (power-led-normal ) out lo GPIO1 RK_PA7
GPIOs 64-95, platform/pinctrl.17, gpio2:
gpio-72 (phy_led ) out lo GPIO2 RK_PB0 /* orange led */
gpio-75 (power-hold ) in lo GPIO2 RK_PB3
gpio-90 (wlan_default_wlan_po) out hi GPIO2 RK_PD2
gpio-93 (ap6335_poweron ) out lo GPIO2 RK_PD3
GPIOs 96-127, platform/pinctrl.17, gpio3:
gpio-102 (ap6335_rts ) in hi GPIO3 RK_PA6
gpio-116 (fd650_scl ) out hi GPIO3 RK_PC2 /* fd650 controle not present */
gpio-117 (phy_link ) out lo GPIO3 RK_PC3
gpio-118 (otg_drv_gpio ) out hi GPIO3 RK_PC4
gpio-119 (power ) in hi GPIO3 RK_PC5
gpio-121 (menu ) in hi GPIO3 RK_PC7
gpio-122 (ap6335_wake_host ) in hi GPIO3 RK_PD2
gpio-123 (ap6335_wake ) in hi GPIO3 RK_PD3
Display More
To be continue ...