Custom RK3288 board with AP6212A - BCMDHD driver kernel hang

The name of the pictureThe name of the pictureThe name of the pictureClash 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";

;









share|improve this question









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.























    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";

    ;









    share|improve this question









    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.





















      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";

      ;









      share|improve this question









      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






      share|improve this question









      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.











      share|improve this question









      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.









      share|improve this question




      share|improve this question








      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.

























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Abhi is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          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






























          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.









           

          draft saved


          draft discarded


















          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.













           


          draft saved


          draft discarded














          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





















































          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






          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)