../ | ||
AD5593R.dts | 2069 | Feb 1 21:42:41 2024 |
ADS1015.dts | 2606 | Jan 26 13:39:32 2024 |
ENC28J60.dts | 1093 | Jan 15 18:26:01 2021 |
MCP23017.dts | 884 | Feb 1 21:42:41 2024 |
MUNTS-0018.dts | 636 | Jan 26 13:39:32 2024 |
Makefile | 1560 | Jan 7 15:53:36 2024 |
PCA8574.dts | 434 | Feb 2 11:40:17 2024 |
PCA9685.dts | 414 | Feb 2 11:40:17 2024 |
Pi3ClickShield-pi5.dts | 1430 | Mar 12 21:57:30 2024 |
Pi3ClickShield.dts | 1431 | Jan 26 13:39:32 2024 |
Pi4ClickShield-pi4.dts | 2255 | Dec 21 08:26:58 2024 |
Pi4ClickShield-pi5.dts | 2250 | Dec 21 08:26:58 2024 |
README.md | 3460 | Mar 12 08:45:42 2024 |
README.txt | 3285 | Feb 14 20:29:33 2024 |
W5500.dts | 1092 | Jan 15 18:26:01 2021 |
disable-ethernet-pi4.dts | 368 | Jan 21 00:20:18 2024 |
disable-ethernet-pi5.dts | 196 | Jan 21 00:20:18 2024 |
pwmchip0-pi5.dts | 452 | Mar 12 21:57:30 2024 |
pwmchip0.dts | 453 | Jan 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
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 |
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=0The I2C slave address may be 0x48 or 0x49.
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.
dtoverlay=MCP23017 dtparam=addr=0xNN dtparam=gpiopin=NThe I2C slave address may be 0x20 to 0x27.
dtoverlay=PCA8574 dtparam=addr=0xNNThe I2C slave address may be 0x20 to 0x27 (PCA8574, PCF8574) or 0x38 to 0x3F (PCA8574A, PCF8574A).
dtoverlay=PCA9685 dtparam=addr=0xNNPossible 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.
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.