Re: [RFC 0/3] Make WLAN and Bluetooth basically work for CI20

From: Paul Cercueil
Date: Wed Feb 15 2023 - 12:55:45 EST


Hi Nikolaus,

Le mercredi 15 février 2023 à 18:31 +0100, H. Nikolaus Schaller a
écrit :
> RFC V1 2023-02-15 18:31:58:
> With the applied patch
>
> rtc: jz4740: Register clock provider for the CLK32K pin
>
> by Paul Cercueil <paul@xxxxxxxxxxxxxxx> it is now possible to make
> the
> CI20 WiFi and Bluetooth setup do something reasonable.
>
> This series adds #clock-cells to the jz4780 and fixes the device tree
> for
> the CI20. It contains two ugly workarounds since BL_WAKE and WL_WAKE
> can not
> be controlled as shutdown-gpios or device-wakeup-gpios by the
> drivers.
> We also update the power setup and sequencing and add a clock chain
> for
> the 32 kHz clock.
> Finally, we enable some required CONFIGs for the CI20.

I do have my own patchset that I wanted to send in time for 6.3-rc1,
but the RTC patchset was merged very late so I was waiting for -rc1 to
be out before sending it to Thomas.

I think my DT changes are better as I have no workarounds. I need to
clean up the commits (and have proper commit messages) but you can find
my current work there:
https://github.com/OpenDingux/linux/commits/for-upstream-ci20

Cheers,
-Paul

>
> Tested on CI20 with v6.2-rc6.
>
> H. Nikolaus Schaller (3):
>   MIPS: DTS: jz4780: add #clock-cells to rtc_dev
>   MIPS: DTS: CI20: fixes for WiFi/Bluetooth
>   MIPS: configs: ci20: enable drivers we need for WiFi/Bluetooth
>
>  arch/mips/boot/dts/ingenic/ci20.dts    | 77 ++++++++++++++++++++++--
> --
>  arch/mips/boot/dts/ingenic/jz4780.dtsi |  2 +
>  arch/mips/configs/ci20_defconfig       | 18 +++++-
>  3 files changed, 84 insertions(+), 13 deletions(-)
>