Custom RK3288 board with AP6212A - BCMDHD driver kernel hang
up vote
0
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 snipper for sdio
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";
};
Can anyone please help me ?
linux kernel driver
add a comment |
up vote
0
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 snipper for sdio
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";
};
Can anyone please help me ?
linux kernel driver
add a comment |
up vote
0
down vote
favorite
up vote
0
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 snipper for sdio
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";
};
Can anyone please help me ?
linux kernel driver
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 snipper for sdio
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";
};
Can anyone please help me ?
linux kernel driver
linux kernel driver
asked Nov 19 at 23:23
Abhi
11
11
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2fstackoverflow.com%2fquestions%2f53384087%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