[Letux-kernel] MIPS: CI20: DTS: Add IW8103 Wifi + bluetooth

Alexandre GRIVEAUX agriveaux at deutnet.info
Sun Dec 15 16:38:56 CET 2019


> Ah, I see. So this means the chip is not powered up?
>
> What do you think is the reason? A problem in the device tree or in the regulator driver? Or the wrong GPIO?


I don't know, for me the power section for wifi and ethernet should be
the same but according to the board and

schematic (attached):

- Wifi module (RK309 on board IW8101/3 on schematic) use mosfet and
transistor (page 8)

- Ethernet use RT9013 (page 9)

>
> WiFi_VBAT seems to be controlled by a WLAN_PW_EN GPIO.
Yes, GPB19 i guessed.
> WL_REG_ON, BT_REG_ON, BT_RST_N are three more GPIOs to control power (likely inside the module).
>
> And it needs a 32kHz clock. It appears as if there are some test points to look at with oscilloscope, but I seem not to have a placement plan.

The 32KHz exist for the sleep mode and there a crystal next to the
module, the 32 KHz seem to be generated via main clock (page 3)

I need to do some investigation with oscilloscope but without placement
plan it's a bit difficult.

>
> So I think to power up WLAN it needs to:
> * activate WLAN_PW_EN (DMIC_IN/PB19) and WL_REG_ON (PF7)?
> * BT needs to activate WLAN_PW_EN (DMIC_IN/PB19) and BT_REG_ON (PF4) and deactivate BT_RST_N (PG8)?
>
> How does the 3.18 kernel do it in device tree?

At this time and my understanding 3.18 use regulator:

creator-ci20:~$ cat /sys/class/regulator/regulator.19/name    USB_CHARGER
creator-ci20:~$ cat /sys/class/regulator/regulator.18/name    VBUS
creator-ci20:~$ cat /sys/class/regulator/regulator.17/name    vrtc1v2
creator-ci20:~$ cat /sys/class/regulator/regulator.16/name    vrtc1v8
creator-ci20:~$ cat /sys/class/regulator/regulator.15/name    vcim1v5
creator-ci20:~$ cat /sys/class/regulator/regulator.14/name    vcim2v8
creator-ci20:~$ cat /sys/class/regulator/regulator.13/name    vwifi3v3
creator-ci20:~$ cat /sys/class/regulator/regulator.12/name    vcc2.5
creator-ci20:~$ cat /sys/class/regulator/regulator.11/name    SUDCDC_REG4
creator-ci20:~$ cat /sys/class/regulator/regulator.10/name    vccio3v3
creator-ci20:~$ cat /sys/class/regulator/regulator.9/name    vddmem1v5
creator-ci20:~$ cat /sys/class/regulator/regulator.8/name    vcore1v2

creator-ci20:~$ cat /sys/class/regulator/regulator.7/name    bt_wake_gpio
creator-ci20:~$ cat /sys/class/regulator/regulator.6/name    bt_reg_on_gpio
creator-ci20:~$ cat /sys/class/regulator/regulator.5/name    bt_reset_gpio
creator-ci20:~$ cat /sys/class/regulator/regulator.4/name    wifi_reset_gpio
creator-ci20:~$ cat /sys/class/regulator/regulator.3/name    wifi_power_gpio
creator-ci20:~$ cat /sys/class/regulator/regulator.2/name    hdmi_power
creator-ci20:~$ cat /sys/class/regulator/regulator.1/name    eth0_power

>
>>> BR and thanks,
>>> Nikolaus
>>>
>>>
>>> PS: I have a strange error during boot which
>>> may also be the reason of failure (no interrupt = no
>>> working interface):
>>>
>>> [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
>>> [    0.000000] NR_IRQS: 222
>>> [    0.000000] irq: :interrupt-controller at 10001000 didn't like hwirq-0x0 to VIRQ8 mapping (rc=-19)
>>> [    0.000000] irq: :interrupt-controller at 10001000 didn't like hwirq-0x1 to VIRQ9 mapping (rc=-19)
>>> [    0.000000] irq: :interrupt-controller at 10001000 didn't like hwirq-0x2 to VIRQ10 mapping (rc=-19)
>>> [    0.000000] irq: :interrupt-controller at 10001000 didn't like hwirq-0x3 to VIRQ11 mapping (rc=-19)
>>> ...
>> Seem more related to I2C, but I doesn't have this problem at this
>> time,
>> I need more details.
> I have to run another test with v5.5-rc2. Maybe it disappears :)
>
> Then I can help testing and finding issues.


Thanks for the help.

>
> BR and thanks,
> Nikolaus
>
Alexandre.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ci20_jz4780_v2.0.pdf
Type: application/pdf
Size: 346679 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20191215/75ee51d1/attachment-0003.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RK903 datasheet_V1.2_20120309.pdf
Type: application/pdf
Size: 716392 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20191215/75ee51d1/attachment-0004.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Radio with Integrated Bluetooth 4.0 + HS and FM Transceiver (Internal).pdf
Type: application/pdf
Size: 1906313 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20191215/75ee51d1/attachment-0005.pdf>


More information about the Letux-kernel mailing list