| Message ID | 20240427015517.413015-1-gael.portay@rtone.fr |
|---|---|
| State | Changes Requested |
| Headers | show |
| Series | [RESEND,1/1] board/raspberrypi_{3_qt5we, cm4io*}: autoprobe of bluetooth driver | expand |
Hello Gaël, On Sat, 27 Apr 2024 03:55:17 +0200, Gaël PORTAY <gael.portay@rtone.fr> wrote: > The config.txt of the Rasperry Pi's supporting Wi-Fi and Bluetooth (i.e. > zero W, zero 2 W, 3, and 4) switch the Bluetooth function to use the > mini-UART (ttyS0) and restore UART0 (ttyAMA0) over the GPIOs 14 and 15 > (as per miniuart-bt-overlay.dts[1]). All of them turn on the parameter > krnbt to autoprobe the bluetooth driver. > > However, the config.txt for Pi 3 (Qt5 WebEngine) and the Compute Module > 4 IO (32-bit and 64-bit) add the miniuart-bt overlay as well but do not > turn on the parameter krnbt. > > This adds the missing dtparam=krnbt=on for these config.txt for the > beauty of consistency. Or remove the the krnbt parameter from all RPi defconfigs as the default changed since linux kernel 6.1.x, see [2]... Regards, Peter [2] https://github.com/raspberrypi/linux/commit/ec08e93837efa2e75e5cab4d80427fdf7ea23da1 > > [1]: https://github.com/raspberrypi/linux/blob/rpi-5.10.y/arch/arm/boot/dts/overlays/miniuart-bt-overlay.dts > > Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr> > --- > board/raspberrypi/config_3_qt5we.txt | 3 +++ > board/raspberrypi/config_cm4io.txt | 3 +++ > board/raspberrypi/config_cm4io_64bit.txt | 3 +++ > 3 files changed, 9 insertions(+) > > diff --git a/board/raspberrypi/config_3_qt5we.txt b/board/raspberrypi/config_3_qt5we.txt > index 752310b179..f68a1f28f5 100644 > --- a/board/raspberrypi/config_3_qt5we.txt > +++ b/board/raspberrypi/config_3_qt5we.txt > @@ -24,3 +24,6 @@ gpu_mem_1024=200 > > # fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console > dtoverlay=miniuart-bt > + > +# enable autoprobing of Bluetooth driver without need of hciattach/btattach > +dtparam=krnbt=on > diff --git a/board/raspberrypi/config_cm4io.txt b/board/raspberrypi/config_cm4io.txt > index cf7e6df1a1..d36795c4ff 100644 > --- a/board/raspberrypi/config_cm4io.txt > +++ b/board/raspberrypi/config_cm4io.txt > @@ -25,6 +25,9 @@ gpu_mem_1024=100 > # fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console > dtoverlay=miniuart-bt > > +# enable autoprobing of Bluetooth driver without need of hciattach/btattach > +dtparam=krnbt=on > + > # enable RTC > dtparam=i2c_vc=on > dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi > diff --git a/board/raspberrypi/config_cm4io_64bit.txt b/board/raspberrypi/config_cm4io_64bit.txt > index 813f6eba7b..b5d8406e69 100644 > --- a/board/raspberrypi/config_cm4io_64bit.txt > +++ b/board/raspberrypi/config_cm4io_64bit.txt > @@ -25,6 +25,9 @@ gpu_mem_1024=100 > # fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console > dtoverlay=miniuart-bt > > +# enable autoprobing of Bluetooth driver without need of hciattach/btattach > +dtparam=krnbt=on > + > # enable RTC > dtparam=i2c_vc=on > dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi > -- > 2.44.0 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Peter, On Sat Apr 27, 2024 at 9:19 PM CEST, Peter Seiderer wrote: > Or remove the the krnbt parameter from all RPi defconfigs as the > default changed since linux kernel 6.1.x, see [2]... > Oh, so true. Now, I remember to have sent that patch before (or right after) the kernel was bump to 6.1; it was intended to get merged in the branch 2023.11 :/ And, I should have the change removing the krnbt dtparam somewhere... Do you make the change yourself? > Regards, > Peter > > [2] https://github.com/raspberrypi/linux/commit/ec08e93837efa2e75e5cab4d80427fdf7ea23da1 Regards, Gaël
diff --git a/board/raspberrypi/config_3_qt5we.txt b/board/raspberrypi/config_3_qt5we.txt index 752310b179..f68a1f28f5 100644 --- a/board/raspberrypi/config_3_qt5we.txt +++ b/board/raspberrypi/config_3_qt5we.txt @@ -24,3 +24,6 @@ gpu_mem_1024=200 # fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console dtoverlay=miniuart-bt + +# enable autoprobing of Bluetooth driver without need of hciattach/btattach +dtparam=krnbt=on diff --git a/board/raspberrypi/config_cm4io.txt b/board/raspberrypi/config_cm4io.txt index cf7e6df1a1..d36795c4ff 100644 --- a/board/raspberrypi/config_cm4io.txt +++ b/board/raspberrypi/config_cm4io.txt @@ -25,6 +25,9 @@ gpu_mem_1024=100 # fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console dtoverlay=miniuart-bt +# enable autoprobing of Bluetooth driver without need of hciattach/btattach +dtparam=krnbt=on + # enable RTC dtparam=i2c_vc=on dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi diff --git a/board/raspberrypi/config_cm4io_64bit.txt b/board/raspberrypi/config_cm4io_64bit.txt index 813f6eba7b..b5d8406e69 100644 --- a/board/raspberrypi/config_cm4io_64bit.txt +++ b/board/raspberrypi/config_cm4io_64bit.txt @@ -25,6 +25,9 @@ gpu_mem_1024=100 # fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console dtoverlay=miniuart-bt +# enable autoprobing of Bluetooth driver without need of hciattach/btattach +dtparam=krnbt=on + # enable RTC dtparam=i2c_vc=on dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi
The config.txt of the Rasperry Pi's supporting Wi-Fi and Bluetooth (i.e. zero W, zero 2 W, 3, and 4) switch the Bluetooth function to use the mini-UART (ttyS0) and restore UART0 (ttyAMA0) over the GPIOs 14 and 15 (as per miniuart-bt-overlay.dts[1]). All of them turn on the parameter krnbt to autoprobe the bluetooth driver. However, the config.txt for Pi 3 (Qt5 WebEngine) and the Compute Module 4 IO (32-bit and 64-bit) add the miniuart-bt overlay as well but do not turn on the parameter krnbt. This adds the missing dtparam=krnbt=on for these config.txt for the beauty of consistency. [1]: https://github.com/raspberrypi/linux/blob/rpi-5.10.y/arch/arm/boot/dts/overlays/miniuart-bt-overlay.dts Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr> --- board/raspberrypi/config_3_qt5we.txt | 3 +++ board/raspberrypi/config_cm4io.txt | 3 +++ board/raspberrypi/config_cm4io_64bit.txt | 3 +++ 3 files changed, 9 insertions(+) -- 2.44.0