Commit 1ce22284 authored by Marek Belisko's avatar Marek Belisko
Browse files

Drop sunxi kernel recipe



Moved to meta-iqrf-sunxi layer
Signed-off-by: default avatarMarek Belisko <marek.belisko@open-nandra.com>
parent 7b202fd3
From 7cebf137ea6310bb2f3bde110dca80aa51705ae4 Mon Sep 17 00:00:00 2001
From: Marek Belisko <marek.belisko@open-nandra.com>
Date: Fri, 5 Feb 2021 15:05:19 +0100
Subject: [PATCH] sun8i-h2-orangepi-zero: Enable spidev + uart1 + uart2
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
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 c3d16d4..35bc4b5 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
@@ -176,15 +176,21 @@
};
&spi0 {
- /* Disable SPI NOR by default: it optional on Orange Pi Zero boards */
- status = "disabled";
+ status = "okay";
+ spidev0: spi@0 {
+ compatible = "semtech,sx1301";
+ reg = <0>;
+ spi-max-frequency = <1000000>;
+ };
+};
+
+&spi1 {
+ status = "okay";
- flash@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "mxicy,mx25l1606e", "winbond,w25q128";
- reg = <0>;
- spi-max-frequency = <40000000>;
+ spidev1: spi@0 {
+ compatible = "semtech,sx1301";
+ reg = <0>;
+ spi-max-frequency = <1000000>;
};
};
--
2.7.4
From 0859598602b09c61940502b9fca4a8dc40cf5673 Mon Sep 17 00:00:00 2001
From: Marek Belisko <marek.belisko@open-nandra.com>
Date: Fri, 28 May 2021 14:40:24 +0200
Subject: [PATCH] dts: Enable uart1 nad uart2
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 35bc4b5..4c56cee 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
@@ -203,13 +203,13 @@
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>;
- status = "disabled";
+ status = "okay";
};
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins>;
- status = "disabled";
+ status = "okay";
};
&usb_otg {
--
2.7.4
CONFIG_USB_GADGET=m
CONFIG_USB_G_SERIAL=m
CONFIG_NOP_USB_XCEIV=m
CONFIG_USB_MUSB_HDRC=m
CONFIG_USB_MUSB_DUAL_ROLE=m
CONFIG_USB_MUSB_SUNXI=m
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append = " file://spidev.cfg \
file://usb_lte.cfg \
file://g_serial.cfg \
file://0001-sun8i-h2-orangepi-zero-Enable-spidev-uart1-uart2.patch \
file://0002-dts-Enable-uart1-nad-uart2.patch \
"
KERNEL_MODULE_AUTOLOAD += "g_serial"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment