diff options
author | John Klug <john.klug@multitech.com> | 2019-01-25 17:56:08 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-07-03 11:22:01 -0500 |
commit | af3f3dd10a73c725799c887ec41ca44f2f3b9251 (patch) | |
tree | e026cb514124868da916dc6dff8afc39e2a1a409 | |
parent | aeac3443c5a2968b41ff6e48fd0aa9846f1cd117 (diff) | |
download | meta-multitech-af3f3dd10a73c725799c887ec41ca44f2f3b9251.tar.gz meta-multitech-af3f3dd10a73c725799c887ec41ca44f2f3b9251.tar.bz2 meta-multitech-af3f3dd10a73c725799c887ec41ca44f2f3b9251.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.patch | 42 |
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 { |