summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-01-25 17:56:08 -0600
committerJohn Klug <john.klug@multitech.com>2019-01-25 17:56:08 -0600
commit25efb1270ddf6618e604b3558fc90ab3964bbcc4 (patch)
treee026cb514124868da916dc6dff8afc39e2a1a409
parent57fd68d3e7cb02fc330b57ce917d42db8bc8e47d (diff)
downloadmeta-multitech-atmel-25efb1270ddf6618e604b3558fc90ab3964bbcc4.tar.gz
meta-multitech-atmel-25efb1270ddf6618e604b3558fc90ab3964bbcc4.tar.bz2
meta-multitech-atmel-25efb1270ddf6618e604b3558fc90ab3964bbcc4.zip
Remove uneeded devices from device tree and get SPI working.
-rw-r--r--recipes-kernel/linux/linux-at91-4.9.87/mtcap/linux-4.9-mtcap-device-tree.patch42
1 files changed, 38 insertions, 4 deletions
diff --git a/recipes-kernel/linux/linux-at91-4.9.87/mtcap/linux-4.9-mtcap-device-tree.patch b/recipes-kernel/linux/linux-at91-4.9.87/mtcap/linux-4.9-mtcap-device-tree.patch
index 3b3de8a..d70b84e 100644
--- a/recipes-kernel/linux/linux-at91-4.9.87/mtcap/linux-4.9-mtcap-device-tree.patch
+++ b/recipes-kernel/linux/linux-at91-4.9.87/mtcap/linux-4.9-mtcap-device-tree.patch
@@ -247,8 +247,8 @@ diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/Makefile linux-4.9.87/arch/arm/bo
at91-sama5d2_ptc_ek.dtb \
diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/mtcap.dts linux-4.9.87/arch/arm/boot/dts/mtcap.dts
--- linux-4.9.87.orig/arch/arm/boot/dts/mtcap.dts 1969-12-31 18:00:00.000000000 -0600
-+++ linux-4.9.87/arch/arm/boot/dts/mtcap.dts 2019-01-24 12:41:55.170138780 -0600
-@@ -0,0 +1,225 @@
++++ linux-4.9.87/arch/arm/boot/dts/mtcap.dts 2019-01-25 17:27:20.167073947 -0600
+@@ -0,0 +1,259 @@
+/*
+ * DTS file for Multi-Tech Systems MTCAP Hardware
+ *
@@ -270,7 +270,12 @@ diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/mtcap.dts linux-4.9.87/arch/arm/b
+ };
+
+ aliases {
-+ spi0 = &spi0;
++ spi0 = "/ahb/apb/spi@f0000000";
++ ssc0 = "";
++ serial1 = "";
++ serial2 = "";
++ serial3 = "";
++ serial4 = "";
+ };
+
+ memory {
@@ -372,6 +377,35 @@ diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/mtcap.dts linux-4.9.87/arch/arm/b
+ watchdog@fffffe40 {
+ status = "okay";
+ };
++ spi@f0000000 {
++ status = "okay";
++ cs-gpios = <&pioA 7 0>, <&pioA 1 0>, <0>, <0>;
++ lora-spi@0 {
++ compatible = "mts,mtac";
++ spi-max-frequency = <2000000>;
++ reg = <0>;
++ };
++ lora-spi@1 {
++ compatible = "mts,mtac";
++ spi-max-frequency = <2000000>;
++ reg = <1>;
++ };
++ /delete-node/ m25p80@0;
++ };
++
++ /delete-node/ ssc@f0010000;
++ /delete-node/ mmc@f0008000;
++ /delete-node/ mmc@f000c000;
++ /delete-node/ serial@f801c000;
++ /delete-node/ serial@f8020000;
++ /delete-node/ serial@f8024000;
++ /delete-node/ serial@f8024400;
++ /delete-node/ serial@f8028000;
++ /delete-node/ serial@f8040000;
++ /delete-node/ serial@f8044000;
++ /delete-node/ gadget@f803c000;
++ /delete-node/ adc@f804c000;
++ /delete-node/ spi@f0004000;
+ };
+
+ nand0: nand@40000000 {
@@ -463,7 +497,7 @@ diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/mtcap.dts linux-4.9.87/arch/arm/b
+ };
+ };
+
-+ i2c@0 {
++ i2c-gpio-0 {
+ status = "okay";
+
+ id_eeprom@56 {