summaryrefslogtreecommitdiffstats
path: root/board/orangepi/orangepi-zero/patches/linux/0003-ARM-dts-orange-pi-zero-enable-spidev.patch
diff options
context:
space:
mode:
authorSergey Matyukevich <geomatsi@gmail.com>2017-05-25 00:50:33 +0300
committerPeter Korsgaard <peter@korsgaard.com>2017-06-08 21:23:38 +0200
commite3c1c6e41e65d3d96677a9c989e4bed32f758da0 (patch)
treed57cba3b1e1fb353752df4c605b592dc8241bd9b /board/orangepi/orangepi-zero/patches/linux/0003-ARM-dts-orange-pi-zero-enable-spidev.patch
parentb0fc65a11b2ac11dc492146ec50168739810c2f8 (diff)
downloadbuildroot-e3c1c6e41e65d3d96677a9c989e4bed32f758da0.tar.gz
buildroot-e3c1c6e41e65d3d96677a9c989e4bed32f758da0.zip
board/orangepi: add basic support for orangepi-zero board
This patch adds basic support for orangepi-zero board. Board support package includes the following components: - mainline kernel v4.11 - mainline u-boot v2017.03 - extra kernel config options: spidev, spi nor flash, wifi - dts patches to enable SPI NOR and spidev More details about this board are available here: - http://linux-sunxi.org/Orange_Pi_Zero Note that at the moment networking is not supported right out of the box. Ethernet submission to mainline kernel is a work in progress, see the latest dwmac-sun8i branches at https://github.com/montjoie/linux On-board SDIO WiFi chip XR819 is supported by off-the-tree wireless driver available at https://github.com/fifteenhex/xradio Changes from v1: * Send patch using proper subject * Update xr819 kernel dts patch: add compatible property [Peter: fix s/PC/Zero/ typo] Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board/orangepi/orangepi-zero/patches/linux/0003-ARM-dts-orange-pi-zero-enable-spidev.patch')
-rw-r--r--board/orangepi/orangepi-zero/patches/linux/0003-ARM-dts-orange-pi-zero-enable-spidev.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/board/orangepi/orangepi-zero/patches/linux/0003-ARM-dts-orange-pi-zero-enable-spidev.patch b/board/orangepi/orangepi-zero/patches/linux/0003-ARM-dts-orange-pi-zero-enable-spidev.patch
new file mode 100644
index 0000000000..553155ce12
--- /dev/null
+++ b/board/orangepi/orangepi-zero/patches/linux/0003-ARM-dts-orange-pi-zero-enable-spidev.patch
@@ -0,0 +1,42 @@
+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 3/3] 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/sun8i-h2-plus-orangepi-zero.dts | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+index cdf19821b1f3..7242aaecb14f 100644
+--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
++++ b/arch/arm/boot/dts/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
+
OpenPOWER on IntegriCloud