Skip to content

Commit

Permalink
Restore The Creation of SPI overlays for the Allwinner A10 and A20, s…
Browse files Browse the repository at this point in the history
…o that when used in conjunction with the spidev overlay, the gpio pins are configured in SPI mode
  • Loading branch information
Ryzer58 committed Aug 19, 2024
1 parent 446ae8d commit 0fefbdc
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ryzer <[email protected]>
Date: Mon, 12 Aug 2024 00:25:36 +0100
Subject: Restore Allwinner A10 SPI 0 - 2 overlay creation so that pins can be corrected muxed into
SPI mode

Signed-off-by: Ryzer <[email protected]>
---
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..0a1c94e1eb12 100644
--- a/arch/arm/boot/dts/allwinner/overlay/Makefile
+++ b/arch/arm/boot/dts/allwinner/overlay/Makefile
@@ -5,10 +5,13 @@ dtb-$(CONFIG_MACH_SUN4I) += \
sun4i-a10-i2c1.dtbo \
sun4i-a10-i2c2.dtbo \
sun4i-a10-nand.dtbo \
sun4i-a10-pps-gpio.dtbo \
sun4i-a10-pwm.dtbo \
+ sun4i-a10-spi0.dtbo \
+ sun4i-a10-spi1.dtbo \
+ sun4i-a10-spi2.dtbo \
sun4i-a10-spdif-out.dtbo \
sun4i-a10-spi-jedec-nor.dtbo \
sun4i-a10-spi-spidev.dtbo \
sun4i-a10-uart2.dtbo \
sun4i-a10-uart3.dtbo \
--
Created with Armbian build tools https://github.com/armbian/build

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ryzer <[email protected]>
Date: Mon, 12 Aug 2024 00:32:49 +0100
Subject: Restore Allwinner A20 SPI 0 - 2 overlay creation so that pins can be corrected muxed into
SPI mode
Signed-off-by: Ryzer <[email protected]>
---
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 0a1c94e1eb12..2e3d756bc429 100644
--- a/arch/arm/boot/dts/allwinner/overlay/Makefile
+++ b/arch/arm/boot/dts/allwinner/overlay/Makefile
@@ -46,10 +46,13 @@ dtb-$(CONFIG_MACH_SUN7I) += \
sun7i-a20-i2c4.dtbo \
sun7i-a20-mmc2.dtbo \
sun7i-a20-nand.dtbo \
sun7i-a20-pps-gpio.dtbo \
sun7i-a20-pwm.dtbo \
+ sun7i-a20-spi0.dtbo \
+ sun7i-a20-spi1.dbto \
+ sun7i-a20-spi2.dbto \
sun7i-a20-spdif-out.dtbo \
sun7i-a20-spi-add-cs1.dtbo \
sun7i-a20-spi-jedec-nor.dtbo \
sun7i-a20-spi-spidev.dtbo \
sun7i-a20-uart2.dtbo \
--
Created with Armbian build tools https://github.com/armbian/build

2 changes: 2 additions & 0 deletions patch/kernel/archive/sunxi-6.6/series.conf
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,10 @@
patches.armbian/Compile-the-pwm-overlay.patch
patches.armbian/arm64-dts-overlay-sun50i-h616-bigtreetech-cb1.patch
patches.armbian/arm-dts-sun4i-a10-port-aliases-fix.patch
patches.armbian/arm-dts-sun4i-a10-reapply-spi-overlays.patch
patches.armbian/arm-dts-sun5i-a13-port-aliases-fix.patch
patches.armbian/arm-dts-sun7i-a20-port-aliases-fix.patch
patches.armbian/arm-dts-sun7i-a20-reapply-spi-overlays.patch
###################
patches.armbian/arm-dts-sunxi-h3-h5.dtsi-add-i2s0-i2s1-pins.patch
patches.armbian/arm-dts-sun5i-a13-olinuxino-micro-add-panel-lcd-olinuxino-4.3.patch
Expand Down

0 comments on commit 0fefbdc

Please sign in to comment.