Custom RK3288 board with AP6212A - BCMDHD driver kernel hang

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have a RK3288 based custom board with AP6212A wifi/bt chipset. I am using rockhip-linux 4.4 with bcmdhd driver. It is using the SDIO protocol. After the driver loads the kernel freezes when it tries to execute the command "WLC_UP" anywhere in the driver.
dhd_conf_set_intiovar(dhd, WLC_UP, "up", 0, 0, FALSE);
The console gets frozen and also HDMI is freezes as well. If I comment the lines with WLC_UP in the driver, then I get a normal boot and also wlan0 gets registered and is up but cannot scan or connect to wifi.
Here is the dts snippet for sdio and wireless section:
wireless-bluetooth
compatible = "bluetooth-platdata";
clocks = <&rk818 1>;
clock-names = "ext_clock";
uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
pinctrl-names = "default", "rts_gpio";
pinctrl-0 = <&uart0_rts>;
pinctrl-1 = <&uart0_gpios>;
BT,reset_gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
BT,wake_gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
status = "okay";
;
wireless-wlan
compatible = "wlan-platdata";
rockchip,grf = <&grf>;
wifi_chip_type = "ap6212";
sdio_vref = <1800>;
WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
status = "okay";
;
&sdio0
clock-frequency = <50000000>;
clock-freq-min-max = <200000 50000000>;
bus-width = <4>;
cap-sd-highspeed;
cap-sdio-irq;
disable-wp;
ignore-pm-notify;
keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
num-slots = <1>;
pinctrl-names = "default";
pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>;
sd-uhs-sdr104;
supports-sdio;
vmmc-supply = <&vcc_wlin>;
vqmmc-supply = <&vccio_wl>;
status = "okay";
;
linux kernel-modules
New contributor
Abhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
1
down vote
favorite
I have a RK3288 based custom board with AP6212A wifi/bt chipset. I am using rockhip-linux 4.4 with bcmdhd driver. It is using the SDIO protocol. After the driver loads the kernel freezes when it tries to execute the command "WLC_UP" anywhere in the driver.
dhd_conf_set_intiovar(dhd, WLC_UP, "up", 0, 0, FALSE);
The console gets frozen and also HDMI is freezes as well. If I comment the lines with WLC_UP in the driver, then I get a normal boot and also wlan0 gets registered and is up but cannot scan or connect to wifi.
Here is the dts snippet for sdio and wireless section:
wireless-bluetooth
compatible = "bluetooth-platdata";
clocks = <&rk818 1>;
clock-names = "ext_clock";
uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
pinctrl-names = "default", "rts_gpio";
pinctrl-0 = <&uart0_rts>;
pinctrl-1 = <&uart0_gpios>;
BT,reset_gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
BT,wake_gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
status = "okay";
;
wireless-wlan
compatible = "wlan-platdata";
rockchip,grf = <&grf>;
wifi_chip_type = "ap6212";
sdio_vref = <1800>;
WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
status = "okay";
;
&sdio0
clock-frequency = <50000000>;
clock-freq-min-max = <200000 50000000>;
bus-width = <4>;
cap-sd-highspeed;
cap-sdio-irq;
disable-wp;
ignore-pm-notify;
keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
num-slots = <1>;
pinctrl-names = "default";
pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>;
sd-uhs-sdr104;
supports-sdio;
vmmc-supply = <&vcc_wlin>;
vqmmc-supply = <&vccio_wl>;
status = "okay";
;
linux kernel-modules
New contributor
Abhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a RK3288 based custom board with AP6212A wifi/bt chipset. I am using rockhip-linux 4.4 with bcmdhd driver. It is using the SDIO protocol. After the driver loads the kernel freezes when it tries to execute the command "WLC_UP" anywhere in the driver.
dhd_conf_set_intiovar(dhd, WLC_UP, "up", 0, 0, FALSE);
The console gets frozen and also HDMI is freezes as well. If I comment the lines with WLC_UP in the driver, then I get a normal boot and also wlan0 gets registered and is up but cannot scan or connect to wifi.
Here is the dts snippet for sdio and wireless section:
wireless-bluetooth
compatible = "bluetooth-platdata";
clocks = <&rk818 1>;
clock-names = "ext_clock";
uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
pinctrl-names = "default", "rts_gpio";
pinctrl-0 = <&uart0_rts>;
pinctrl-1 = <&uart0_gpios>;
BT,reset_gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
BT,wake_gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
status = "okay";
;
wireless-wlan
compatible = "wlan-platdata";
rockchip,grf = <&grf>;
wifi_chip_type = "ap6212";
sdio_vref = <1800>;
WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
status = "okay";
;
&sdio0
clock-frequency = <50000000>;
clock-freq-min-max = <200000 50000000>;
bus-width = <4>;
cap-sd-highspeed;
cap-sdio-irq;
disable-wp;
ignore-pm-notify;
keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
num-slots = <1>;
pinctrl-names = "default";
pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>;
sd-uhs-sdr104;
supports-sdio;
vmmc-supply = <&vcc_wlin>;
vqmmc-supply = <&vccio_wl>;
status = "okay";
;
linux kernel-modules
New contributor
Abhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have a RK3288 based custom board with AP6212A wifi/bt chipset. I am using rockhip-linux 4.4 with bcmdhd driver. It is using the SDIO protocol. After the driver loads the kernel freezes when it tries to execute the command "WLC_UP" anywhere in the driver.
dhd_conf_set_intiovar(dhd, WLC_UP, "up", 0, 0, FALSE);
The console gets frozen and also HDMI is freezes as well. If I comment the lines with WLC_UP in the driver, then I get a normal boot and also wlan0 gets registered and is up but cannot scan or connect to wifi.
Here is the dts snippet for sdio and wireless section:
wireless-bluetooth
compatible = "bluetooth-platdata";
clocks = <&rk818 1>;
clock-names = "ext_clock";
uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
pinctrl-names = "default", "rts_gpio";
pinctrl-0 = <&uart0_rts>;
pinctrl-1 = <&uart0_gpios>;
BT,reset_gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
BT,wake_gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
status = "okay";
;
wireless-wlan
compatible = "wlan-platdata";
rockchip,grf = <&grf>;
wifi_chip_type = "ap6212";
sdio_vref = <1800>;
WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
status = "okay";
;
&sdio0
clock-frequency = <50000000>;
clock-freq-min-max = <200000 50000000>;
bus-width = <4>;
cap-sd-highspeed;
cap-sdio-irq;
disable-wp;
ignore-pm-notify;
keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
num-slots = <1>;
pinctrl-names = "default";
pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>;
sd-uhs-sdr104;
supports-sdio;
vmmc-supply = <&vcc_wlin>;
vqmmc-supply = <&vccio_wl>;
status = "okay";
;
linux kernel-modules
linux kernel-modules
New contributor
Abhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Abhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Nov 20 at 6:29
Rui F Ribeiro
38.2k1475125
38.2k1475125
New contributor
Abhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 20 at 0:15
Abhi
61
61
New contributor
Abhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Abhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Abhi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Abhi is a new contributor. Be nice, and check out our Code of Conduct.
Abhi is a new contributor. Be nice, and check out our Code of Conduct.
Abhi is a new contributor. Be nice, and check out our Code of Conduct.
Abhi is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482869%2fcustom-rk3288-board-with-ap6212a-bcmdhd-driver-kernel-hang%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown