8e9681c52e
Switch to the new Linux LTS release 6.6.3. Switch to the latest U-Boot 2023.10. Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
From 8dd1b2a696bb7e9914abd11cc6f5c0f54c33d626 Mon Sep 17 00:00:00 2001
|
|
From: Sergey Matyukevich <geomatsi@gmail.com>
|
|
Date: Sat, 20 May 2017 15:36:51 +0300
|
|
Subject: [PATCH] ARM: dts: orange-pi-zero: enable spidev
|
|
|
|
On orange-pi-zero board SPI1 pins are accessible via GPIO expansion port.
|
|
This patch enables spidev driver for SPI1.
|
|
|
|
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
|
|
---
|
|
arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts | 11 +++++++++++
|
|
1 file changed, 11 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts
|
|
index cdf19821b1f3..7242aaecb14f 100644
|
|
--- a/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts
|
|
+++ b/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts
|
|
@@ -59,6 +59,7 @@
|
|
serial0 = &uart0;
|
|
/* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
|
|
ethernet1 = &xr819;
|
|
+ spi1 = &spi1;
|
|
};
|
|
|
|
chosen {
|
|
@@ -177,3 +178,13 @@
|
|
};
|
|
};
|
|
};
|
|
+
|
|
+&spi1 {
|
|
+ status = "okay";
|
|
+
|
|
+ spidev@0 {
|
|
+ compatible = "rohm,dh2228fv";
|
|
+ reg = <0>;
|
|
+ spi-max-frequency = <10000000>;
|
|
+ };
|
|
+};
|
|
--
|
|
2.11.0
|
|
|