diff --git a/firmware/config.txt b/firmware/config.txt new file mode 100755 index 0000000..afe2822 --- /dev/null +++ b/firmware/config.txt @@ -0,0 +1,98 @@ +# For more options and information see +# http://rpf.io/configtxt +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +#hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +#dtparam=i2c_arm=on +#dtparam=i2s=on +#dtparam=spi=on + +# Uncomment this to enable infrared communication. +#dtoverlay=gpio-ir,gpio_pin=17 +#dtoverlay=gpio-ir-tx,gpio_pin=18 + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on + +# Automatically load overlays for detected cameras +camera_auto_detect=1 + +# Automatically load overlays for detected DSI displays +display_auto_detect=1 + +# Enable DRM VC4 V3D driver +dtoverlay=vc4-kms-v3d +max_framebuffers=2 + +# Run in 64-bit mode +arm_64bit=1 + +# Disable compensation for displays with overscan +disable_overscan=1 + +[cm4] +# Enable host mode on the 2711 built-in XHCI USB controller. +# This line should be removed if the legacy DWC2 controller is required +# (e.g. for USB device mode) or if USB support is not required. +#otg_mode=1 + +[all] + +[pi4] +# Run as fast as firmware / board allows +arm_boost=1 + +[all] + +[cm4] +dtoverlay=dwc2,dr_mode=host +dtparam=ant2 +enable_uart=1 +force_eeprom_read=0 +disable_poe_fan=1 + +######## iotg-rpi4 configuration - Begin +dtoverlay=iotg-rpi4/iotg-rpi4-ie-a,can +dtoverlay=iotg-rpi4/iotg-rpi4-ie-b,can +dtoverlay=iotg-rpi4/iotg-rpi4-eeprom +dtoverlay=iotg-rpi4/iotg-rpi4-rtc +dtoverlay=iotg-rpi4/iotg-rpi4-gpio-exp +######## iotg-rpi4 configuration - End diff --git a/firmware/overlays/iotg-rpi4/README b/firmware/overlays/iotg-rpi4/README new file mode 100755 index 0000000..2a31158 --- /dev/null +++ b/firmware/overlays/iotg-rpi4/README @@ -0,0 +1,69 @@ +Name: iotg-rpi4-eeprom +Info: Compulab IOTG-RPi4 EEPROM AT24C08 over I2C6 bus, address 0x54 + The EEPROM stores sensitive Manufacturing Data which should + not be changed or modified +Load: dtoverlay=iotg-rpi4-eeprom +Params: + +Name: iotg-rpi4-gpio-exp +Info: Compulab IOTG-RPi4 GPIO Expanders PCA9555 over I2C6 bus + - #1: address 0x27: user LEDs, various RST signals for internal use + - #2: address 0x21: IEx type detect signals +Load: dtoverlay=iotg-rpi4-gpio-exp +Params: + +Name: iotg-rpi4-rtc +Info: Compulab IOTG-RPi4 RTC AM1805 I2C1 bus, address 0x69 +Load: dtoverlay=iotg-rpi4-rtc +Params: + +Name: iotg-rpi4-tpm +Info: Compulab IOTG-RPi4 TPM SLB9670 by Infineon over SPI1 bus, CS1 +Load: dtoverlay=iotg-rpi4-tpm +Params: + +Name: iotg-rpi4-dio +Info: Compulab IOTG-RPi4 Digital inputs and outputs (DIO) extension module +Load: dtoverlay=iotg-rpi4-dio, +Params: ab Configure slot A as output (GPIOs 0-3) and + slot B as input (GPIOs 4-7) + (boolean, optional) + cd Configure slot C as output (GPIOs 8-11) and + slot D as input (GPIOs 18-21) + (boolean, optional) + +Name: iotg-rpi4-ie-a +Info: Compulab IOTG-RPi4 IEA extension module +Load: dtoverlay=iotg-rpi4-ie-a,= +Params: can Configure MCP251xFD CAN controller + over SPI3 bus, CS0 + (boolean, optional) + uart Configure UART2 on GPIOs 0,1 + (boolean, optional) + +Name: iotg-rpi4-ie-b +Info: Compulab IOTG-RPi4 IEB extension module +Load: dtoverlay=iotg-rpi4-ie-b,= +Params: can Configure MCP251xFD CAN controller + over SPI4 bus, CS0 + (boolean, optional) + uart Configure UART3 on GPIOs 4,5 + (boolean, optional) + +Name: iotg-rpi4-ie-c +Info: Compulab IOTG-RPi4 IEC extension module +Load: dtoverlay=iotg-rpi4-ie-c,= +Params: can Configure MCP251xFD CAN controller + over SPI0 bus, CS0 + (boolean, optional) + uart Configure UART4 on GPIOs 8,9 + (boolean, optional) + +Name: iotg-rpi4-ie-d +Info: Compulab IOTG-RPi4 IED extension module +Load: dtoverlay=iotg-rpi4-ie-d,= +Params: can Configure MCP251xFD CAN controller + over SPI1 bus, CS0 + (boolean, optional) + uart Configure UART5 on GPIOs 12,13 + (boolean, optional) diff --git a/firmware/overlays/iotg-rpi4/iotg-rpi4-dio.dtbo b/firmware/overlays/iotg-rpi4/iotg-rpi4-dio.dtbo new file mode 100755 index 0000000..7b58839 Binary files /dev/null and b/firmware/overlays/iotg-rpi4/iotg-rpi4-dio.dtbo differ diff --git a/firmware/overlays/iotg-rpi4/iotg-rpi4-eeprom.dtbo b/firmware/overlays/iotg-rpi4/iotg-rpi4-eeprom.dtbo new file mode 100755 index 0000000..2a23e73 Binary files /dev/null and b/firmware/overlays/iotg-rpi4/iotg-rpi4-eeprom.dtbo differ diff --git a/firmware/overlays/iotg-rpi4/iotg-rpi4-gpio-exp.dtbo b/firmware/overlays/iotg-rpi4/iotg-rpi4-gpio-exp.dtbo new file mode 100755 index 0000000..5f38307 Binary files /dev/null and b/firmware/overlays/iotg-rpi4/iotg-rpi4-gpio-exp.dtbo differ diff --git a/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-a.dtbo b/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-a.dtbo new file mode 100755 index 0000000..89fb72c Binary files /dev/null and b/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-a.dtbo differ diff --git a/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-b.dtbo b/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-b.dtbo new file mode 100755 index 0000000..626d1d2 Binary files /dev/null and b/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-b.dtbo differ diff --git a/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-c.dtbo b/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-c.dtbo new file mode 100755 index 0000000..3512ee5 Binary files /dev/null and b/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-c.dtbo differ diff --git a/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-d.dtbo b/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-d.dtbo new file mode 100755 index 0000000..d68bc50 Binary files /dev/null and b/firmware/overlays/iotg-rpi4/iotg-rpi4-ie-d.dtbo differ diff --git a/firmware/overlays/iotg-rpi4/iotg-rpi4-rtc.dtbo b/firmware/overlays/iotg-rpi4/iotg-rpi4-rtc.dtbo new file mode 100755 index 0000000..f7d8107 Binary files /dev/null and b/firmware/overlays/iotg-rpi4/iotg-rpi4-rtc.dtbo differ diff --git a/firmware/overlays/iotg-rpi4/iotg-rpi4-tpm.dtbo b/firmware/overlays/iotg-rpi4/iotg-rpi4-tpm.dtbo new file mode 100755 index 0000000..d68b193 Binary files /dev/null and b/firmware/overlays/iotg-rpi4/iotg-rpi4-tpm.dtbo differ