Files
build/patch/kernel/archive/sunxi-6.6/patches.armbian/arm-dts-sun4i-a10-reapply-spi-overlays.patch
Ryzer58 0aed5abe02 Sunxi overlays - fix dts peripheral aliases (#8290)
* correct system patch used for aliasing on Allwinner A10, A13 and A20 to ensure consistent allocation of device IDs

* Re-introduce spi overlays for each bus so that when used in conjuction with a device driver overlay, the pins are correctly muxed into SPI mode

* Ensure SPI overlay patches are applied

* Fix typo in patch name

* Move alias patches further down series.conf to ensure they are only called after the intial overlay creation

* Rephrase subject heading to improve clarity

* Fix interface aliases on Allwinner A10 for I2C, SPI and UART

* Fix interface aliases on Allwinner A13 for I2C and UART

* Fix interface aliases on Allwinner A20 for I2C, SPI and UART

* Fix SPI 2 pin names in line with latest revision of the Allwinner A10 device tree

* Fix SPI 2 pin names in line with latest revision of the Allwinner A20 device tree

* Create overlays for each bus on the Allwinner A20 so that the corresponding pins can be set into spi mode

* Create overlays for each bus on the Allwinner A10 so that the corresponding pins can be set into spi mode

* Condense alias path corrections into the intial overlay creation patch instead of applying a further patch on topof it to enact these corrections

* Remove references to our no longer needed addtional overlays

* rename to include 'arm-dts..' for consistency with other dts related patches

* Fix mistake in SPI overlay patches naming which leads to build failure

* Fix typo in application of spi2 overlay that was leading to compilation failure

* Amend the assigned aliases in overlay creation so that the kernel correctly maps the bus/port number to match the physical hardware numbering

* Update pin labels for SPI 2 to use current names as defined in sun4i-a10.dtsi and sun7i-a20.dtsi. fixed typo in sun5i-a13-spi-spidev as compatibility field should be sun5i-a13

* Re-introduce compilation of spi bus overlays on Allwinner A10 and A20 SOCs which are necessary to ensure that the pins are correctly muxed into spi mode
2025-06-11 23:54:06 +02:00

32 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ryzer58 <ryestar101@gmail.com>
Date: Sun, 15 Dec 2024 23:29:14 +0000
Subject: Re-introduce spi overlays for each bus so that pins are muxed corectly into SPI mode
Signed-off-by: Ryzer58 <ryestar101@gmail.com>
---
arch/arm/boot/dts/allwinner/overlay/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boot/dts/allwinner/overlay/Makefile b/arch/arm/boot/dts/allwinner/overlay/Makefile
index 23ecb62e2478..44547b7d6afd 100644
--- a/arch/arm/boot/dts/allwinner/overlay/Makefile
+++ b/arch/arm/boot/dts/allwinner/overlay/Makefile
@@ -6,10 +6,13 @@ dtb-$(CONFIG_MACH_SUN4I) += \
sun4i-a10-i2c2.dtbo \
sun4i-a10-nand.dtbo \
sun4i-a10-pps-gpio.dtbo \
sun4i-a10-pwm.dtbo \
sun4i-a10-spdif-out.dtbo \
+ sun4i-a10-spi0.dtbo \
+ sun4i-a10-spi1.dtbo \
+ sun4i-a10-spi2.dtbo \
sun4i-a10-spi-jedec-nor.dtbo \
sun4i-a10-spi-spidev.dtbo \
sun4i-a10-uart2.dtbo \
sun4i-a10-uart3.dtbo \
sun4i-a10-uart4.dtbo \
--
Created with Armbian build tools https://github.com/armbian/build