MuntsOS Embedded Linux Extra Device Tree Overlays

../
AD5593R.dts  2069Feb 1 21:42:41 2024
ADS1015.dts  2606Jan 26 13:39:32 2024
ENC28J60.dts  1093Jan 15 18:26:01 2021
MCP23017.dts  884Feb 1 21:42:41 2024
MUNTS-0018.dts  636Jan 26 13:39:32 2024
Makefile  1560Jan 7 15:53:36 2024
PCA8574.dts  434Feb 2 11:40:17 2024
PCA9685.dts  414Feb 2 11:40:17 2024
Pi3ClickShield-pi5.dts  1430Mar 12 21:57:30 2024
Pi3ClickShield.dts  1431Jan 26 13:39:32 2024
README.md  3460Mar 12 08:45:42 2024
README.txt  3285Feb 14 20:29:33 2024
W5500.dts  1092Jan 15 18:26:01 2021
disable-ethernet-pi4.dts  368Jan 21 00:20:18 2024
disable-ethernet-pi5.dts  196Jan 21 00:20:18 2024
pwmchip0-pi5.dts  452Mar 12 21:57:30 2024
pwmchip0.dts  453Jan 26 13:39:32 2024

Here are some collected device tree overlays for Raspberry Pi boards that have been written from scratch or customized from the kernel source distribution for MuntsOS.

For I2 devices, the easiest way to determine the correct slave address is to run i2cdetect -y 1 before and after attaching the device and see what changes. Then you can add the proper dtoverlay command to /boot/config.txt

AD5593R Analog/Digital I/O Expander

dtoverlay=AD5593R
dtparam=mode0=1
dtparam=mode1=1
dtparam=mode2=1
dtparam=mode3=1
dtparam=mode4=1
dtparam=mode5=1
dtparam=mode6=1
dtparam=mode7=1
dtparam=offstate0=0
dtparam=offstate1=0
dtparam=offstate2=0
dtparam=offstate3=0
dtparam=offstate4=0
dtparam=offstate5=0
dtparam=offstate6=0
dtparam=offstate7=0
Mode Values Off State Values
0 Unused
0 Pulldown resistor
1 ADC
1 Output low (sinking)
2 DAC
2 Output high (sourcing)
3 ADC and DAC
3 Tri-State (high impedance)
8 GPIO

ADS1015 Analog to Digital Converter

dtoverlay=ADS1015
dtparam=addr=0xNN
dtparam=cha_enable
dtparam=chb_enable
dtparam=chc_enable
dtparam=chd_enable
dtparam=cha_cfg=4
dtparam=chb_cfg=5
dtparam=chc_cfg=6
dtparam=chd_cfg=7
dtparam=cha_gain=0
dtparam=chb_gain=0
dtparam=chc_gain=0
dtparam=chd_gain=0
The I2C slave address may be 0x48 or 0x49.

ENC28J60 Ethernet Adapter

dtoverlay=ENC28J60
dtparam=cs=N
dtparam=irq=N

The value for the SPI slave select parameter cs is 0 for spidev0.0 or 1 for spidev0.1. Default is 0.
The value for GPIO interrupt signal parameter irq must be a GPIO number. Default is 25.

The default values are correct for the GeeekPi EN28J60 HAT so both dtparam lines may be omitted. Other ENC28J60 boards such as the Mikroelektronika ETH Click will likely require cs or irq or both.

MCP23017 GPIO Expander

dtoverlay=MCP23017
dtparam=addr=0xNN
dtparam=gpiopin=N
The I2C slave address may be 0x20 to 0x27.

PCA8574 GPIO Expander

dtoverlay=PCA8574
dtparam=addr=0xNN
The I2C slave address may be 0x20 to 0x27 (PCA8574, PCF8574) or 0x38 to 0x3F (PCA8574A, PCF8574A).

PCA9685 PWM Expander

dtoverlay=PCA9685
dtparam=addr=0xNN
Possible I2C slave addresses range from 0x40 to 0x7F, though some of these will conflict with other devices and reserved addresses. 0x40 and 0x70 are common. This overlay does not support GPIO mode.

W5500 Ethernet Adapter

dtoverlay=W5500
dtparam=cs=N
dtparam=irq=N

The value for the SPI slave select parameter cs is 0 for spidev0.0 or 1 for spidev0.1. Default is 0.
The value for GPIO interrupt signal parameter irq must be a GPIO number. Default is 25.


Questions or comments to Philip Munts phil@munts.net