Closed
Description
What package does this bug affect?
onion-dt-overlay-sw-spi in openwrt-22.03 branch
Describe the bug
After installation of onion-dt-overlay-sw-spi, no new spi device file is created in the Linux OS
To Reproduce
Before installation, only spidev0.1
, the hardware SPI CS1 bus is available in the /dev
directory
root@Omega-665D:/# ls /dev/
autofs mtd0 mtd4ro mtdblock4 shm ttyS11 ttyS6
bus mtd0ro mtd5 mtdblock5 spidev0.1 ttyS12 ttyS7
console mtd1 mtd5ro mtdblock6 stderr ttyS13 ttyS8
full mtd1ro mtd6 null stdin ttyS14 ttyS9
hwrng mtd2 mtd6ro port stdout ttyS15 urandom
i2c-0 mtd2ro mtdblock0 ppp tty ttyS2 watchdog
kmsg mtd3 mtdblock1 ptmx ttyS0 ttyS3 watchdog0
log mtd3ro mtdblock2 pts ttyS1 ttyS4 zero
mem mtd4 mtdblock3 random ttyS10 ttyS5
Steps to reproduce the behavior:
- Connect to internet
- Install the package
opkg update opkg install onion-dt-overlay-sw-spi
- reboot device
- Check if device tree overlay is applied:
cat /sys/kernel/config/device-tree/overlays/sw-spi/status
root@Omega-665D:/# cat /sys/kernel/config/device-tree/overlays/sw-spi/status applied
- Run
ls /dev
again:
root@Omega-665D:/# ls /dev/
autofs mtd0 mtd4ro mtdblock4 shm ttyS11 ttyS6
bus mtd0ro mtd5 mtdblock5 spidev0.1 ttyS12 ttyS7
console mtd1 mtd5ro mtdblock6 stderr ttyS13 ttyS8
full mtd1ro mtd6 null stdin ttyS14 ttyS9
hwrng mtd2 mtd6ro port stdout ttyS15 urandom
i2c-0 mtd2ro mtdblock0 ppp tty ttyS2 watchdog
kmsg mtd3 mtdblock1 ptmx ttyS0 ttyS3 watchdog0
log mtd3ro mtdblock2 pts ttyS1 ttyS4 zero
mem mtd4 mtdblock3 random ttyS10 ttyS5
No new SPI device
Expected behavior
Expecting to see a new /dev/spidev1.0
device that corresponds to the new software SPI bus
Screenshots or Console output

Version Info (please complete the following information):
- Firmware version: 22.03.5 b20240122
- Package name onion-dt-overlay-sw-spi
- Package Version: 1.0-3
- Repo branch: openwrt-22.03
Additional context
- Software SPI through device tree overlay originally implemented in Device Tree Overlays Loadable at Run-Time #62 - tested that device tree overlay was applied but did not test SPI device file operation
- Software SPI GPIOs changed in Change selected GPIOs for software SPI DT overlay package #77
Deliverables
- Changes as required to the
onion-dt-overlay-sw-spi
package source - Clear instructions/steps needed to enable software spi device on Omega2
- Screenshots/command line output demonstrating software SPI device enabled on Omega2
Metadata
Assignees
Type
Projects
Status
Completed
Activity