From 31ed653166a45eda2403e311a3996b5df59d6775 Mon Sep 17 00:00:00 2001 From: Peter Seiderer Date: Tue, 21 Sep 2021 22:21:33 +0200 Subject: [PATCH] board/raspberrypicm4io: enable RTC and USB overlays The CM4 IO Board is equipped with an on-board RTC connected over I2C, and has USB 2.0 host ports. This commit loads the appropriate overlays to enable both. The USB 2.0 interface is by default disabled on CM4 to reduce the power consumption so it needs to be explicitly enabled on the CM4 IO Board to use the USB ports. Signed-off-by: Peter Seiderer Signed-off-by: Thomas Petazzoni --- board/raspberrypi/config_cm4io.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/raspberrypi/config_cm4io.txt b/board/raspberrypi/config_cm4io.txt index 01f60395b3..cf7e6df1a1 100644 --- a/board/raspberrypi/config_cm4io.txt +++ b/board/raspberrypi/config_cm4io.txt @@ -24,3 +24,10 @@ gpu_mem_1024=100 # fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console dtoverlay=miniuart-bt + +# enable RTC +dtparam=i2c_vc=on +dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi + +# enable dwc2 USB controller (USB 2.0) +dtoverlay=dwc2,dr_mode=host