Jump to content

[Armbian build PR] - Sunxi overlays - fix dts peripheral aliases


Recommended Posts

Posted

Description

Fix the peripheral aliases to ensure consistent allocation when enabled, so that kernel assignment matches the numbering convention of the SOC. This targets the Allwinner A10 and A20 and ensures, that for example if enabling UART2 exposes it correctly in userspace as ttyS2 rather than dynamically assigning it to the first avaliable ttySx slot. Secondly spidev overlays creates an instance of spidevX.Y based on the bus specified with armbianEnv.txt however it does not correctly configure the corresponding pins into spi mode. To resolve this the individual spi bus overlays have been include in the makefile. The desired bus must be enabled alongside spidev or seperately if using another spi device driver in order to be functional. I have also corrected the A10 spi overlays where they incorrectly target the A20.

How Has This Been Tested?

Built and tested on Pcduino 2 running 6.12.23-current-sunxi

pcduino2-current-uart pcduino2-spidev-alias pcduino2-spi-pin-mux

Built and tested on Pcduino 3 running 6.14.5-edge sunxi

pcduino3-edge-uart pcduino3-spi-test

Checklist:

  • [ ] My code follows the style guidelines of this project
  • [ ] I have performed a self-review of my own code
  • [ ] My changes generate no new warnings

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines