You've already forked sunxi-DT-overlays
mirror of
https://github.com/armbian/sunxi-DT-overlays.git
synced 2026-01-06 10:14:43 -08:00
Device Tree overlay examples for sunxi devices
These are some example overlays for the niche devices (i.e. IIO sensors), custom sensor boards with multiple devices on them or devices that require customization by end user (i.e. SPI displays and touch screens)
Compared to the other ones in this repository these are "standalone" - no fixup script is required, so they can be used with the configfs interface too.
double-spidev.dts
- overlay for 2 SPIdev devices on 1 SPI bus
- requires activating the SPI bus by a kernel provided overlay (i.e.
overlays=spi0) - requires using SPI bus that supports multiple chip selects (including software/GPIO based ones)
- requires
spi-add-cs1overlay on H3 and H5
gpio-button.dts
- overlay for a GPIO button, active low (when connected to GND), using either EINT capable GPIO pin or polling
- bindings documentation: gpio-keys.txt, gpio-keys-polled.txt
- internal pull-up is optional and not recommended unless using short wires
- requires adding
poll-intervalproperty if using "gpio-keys-polled" driver
i2c-apds9960.dts
- overlay for an apds9960 sensor connected to the I2C bus
- bindings documentation: apds9960.txt
- requires activating the I2C bus the device is connected to by a kernel provided overlay (i.e.
overlays=i2c1) - may require changing the interrupt GPIO specifier
- using external pull-up resistor on the interrupt line is highly recommended if the module doesn't have one
i2c-edt-ft5x06.dts
- overlay for a touch screen connected to the I2C bus
- bindings documentation: edt-ft5x06.txt
- requires activating the I2C bus the device is connected to by a kernel provided overlay (i.e.
overlays=i2c1) - may require changing the
compatibleproperty value even though currently it's not required - may require changing or removing wake and reset GPIOs
- may require changing the interrupt GPIO specifier
i2c-ina219.dts
- overlay for a INA219 current shunt and power monitor connected to the I2C bus
- bindings documentation: ina2xx.txt
- requires activating the I2C bus the device is connected to by a kernel provided overlay (i.e.
overlays=i2c1) - may require changing the
compatibleproperty value - may require changing the
regproperty value to the actual address of the chip - may require changing the
shunt-resistordepending on board resistor
i2c-pca857x.dts
- overlay for a PCA8574 GPIO/interrupt controller connected to the I2C bus
- bindings documentation: gpio-pcf857x.txt
- requires activating the I2C bus the device is connected to by a kernel provided overlay (i.e.
overlays=i2c0) - may require changing the
compatibleproperty value - may require changing the
regproperty value to the actual address of the chip - may require changing the interrupt GPIO specifier
sht1x.dts
- overlay for a Sensirion SHT1x sensor connected to 2 GPIO lines
- bindings documentation: sht15.txt
spi-ads7846.dts
- overlay for an ADS7846 touch screen connected to the SPI0 controller on H3 based board
- bindings documentation: ads7846.txt
- may require activating the SPI bus device is connected to by a kernel provided overlays (i.e.
overlays=spi0) - may require changing the
compatibleproperty value even though currently it's not required - may require adding wake GPIO
- may require changing the interrupt GPIO specifier
spi-enc28j60
- overlays for a ENC28J60 Ethernet controller connected to the SPI bus
- bindings documentation: microchip,enc28j60.txt
- may require activating the SPI bus device is connected to by a kernel provided overlays (i.e.
overlays=spi0) - may require changing the interrupt GPIO specifier
- using external pull-up resistor on the interrupt line is highly recommended if the module doesn't have one
spi-mcp251x
- overlays for a MCP251x CAN controller connected to the SPI bus
- bindings documentation: microchip,mcp251x.txt
- may require activating the SPI bus device is connected to by a kernel provided overlays (i.e.
overlays=spi0) - may require changing the
compatibleproperty value - may require changing the interrupt GPIO specifier
- may require changing the clock frequency to an actual value of the onboard resonator
- using external pull-up resistor on the interrupt line is highly recommended if the module doesn't have one