Best (recommended) way to configure CM3Lite
Posted: Tue Feb 14, 2017 8:50 am
Hi,
started working on my first project using a CM3Lite. I'm now asking myself what is the best - or recommended way - to configure the GPIO.
I need to have peripherals initialised as early as possible, that's why I first thought of having my custom dt-blob.bin file.
In addition, I'm looking for an easy way to configure (enable/disable) some of the peripherals why I think overlays will be suited best for this.
So, here's what I intend to use:
24-bit DPI-Interface (ALT2 mode on GPIO 0 - 27) --> own blob or 24-bit overlay can be used
SD1 (ALT3 mode on GPIO 34 - 39) for WiFi module --> default overlay (sdio-overlay.dts) can't be used since it's configuring the wrong GPIO --> modify this for custom overlay or is there another one doing the same?
both UARTs (UART0 = ALT3 on GPIO31+32, UART1=ALT5 on GPIO40+41) --> is there an overlay for this and is it still UART1 that can be enabled/disabled via raspi-config? Which of them will be used for SSH in case this is enabled?
I2C (SDx0 on GPIO28+29) --> is there an overlay?
In addition some of the remaining GPIO are used for controlling ofter HW (enable signals, reset, PWM, etc). How to deal with them - overlay of device tree blob?
DPI1, CAM0 will be treated similiar to RPi3B initialization, only one USB port will be there.
Thank's for your feedback, rgds
Joerg
started working on my first project using a CM3Lite. I'm now asking myself what is the best - or recommended way - to configure the GPIO.
I need to have peripherals initialised as early as possible, that's why I first thought of having my custom dt-blob.bin file.
In addition, I'm looking for an easy way to configure (enable/disable) some of the peripherals why I think overlays will be suited best for this.
So, here's what I intend to use:
24-bit DPI-Interface (ALT2 mode on GPIO 0 - 27) --> own blob or 24-bit overlay can be used
SD1 (ALT3 mode on GPIO 34 - 39) for WiFi module --> default overlay (sdio-overlay.dts) can't be used since it's configuring the wrong GPIO --> modify this for custom overlay or is there another one doing the same?
both UARTs (UART0 = ALT3 on GPIO31+32, UART1=ALT5 on GPIO40+41) --> is there an overlay for this and is it still UART1 that can be enabled/disabled via raspi-config? Which of them will be used for SSH in case this is enabled?
I2C (SDx0 on GPIO28+29) --> is there an overlay?
In addition some of the remaining GPIO are used for controlling ofter HW (enable signals, reset, PWM, etc). How to deal with them - overlay of device tree blob?
DPI1, CAM0 will be treated similiar to RPi3B initialization, only one USB port will be there.
Thank's for your feedback, rgds
Joerg