From e3ff5d0144332e52a4a7df518e2b5265bdb49422 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 7 Aug 2017 19:08:19 -0500 Subject: Add chip select to SPI bus, and remove alias which breaks device creation for SPI0_NPCS2 --- .../mtcap/linux-3.12-mtcap-device-tree.patch | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'recipes-kernel') diff --git a/recipes-kernel/linux/linux-3.12.70/mtcap/linux-3.12-mtcap-device-tree.patch b/recipes-kernel/linux/linux-3.12.70/mtcap/linux-3.12-mtcap-device-tree.patch index 474f606..7054c64 100644 --- a/recipes-kernel/linux/linux-3.12.70/mtcap/linux-3.12-mtcap-device-tree.patch +++ b/recipes-kernel/linux/linux-3.12.70/mtcap/linux-3.12-mtcap-device-tree.patch @@ -1,8 +1,7 @@ -Index: linux-3.12.27/arch/arm/boot/dts/mtcap.dts -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-3.12.27/arch/arm/boot/dts/mtcap.dts 2015-01-13 13:58:20.766078428 -0600 -@@ -0,0 +1,210 @@ +diff -Naru linux-3.12.70.orig/arch/arm/boot/dts/mtcap.dts linux-3.12.70/arch/arm/boot/dts/mtcap.dts +--- linux-3.12.70.orig/arch/arm/boot/dts/mtcap.dts 1969-12-31 18:00:00.000000000 -0600 ++++ linux-3.12.70/arch/arm/boot/dts/mtcap.dts 2017-07-24 14:29:39.205366275 -0500 +@@ -0,0 +1,215 @@ +/* + * DTS file for Multi-Tech Systems MTCAP Hardware + */ @@ -93,14 +92,19 @@ Index: linux-3.12.27/arch/arm/boot/dts/mtcap.dts + }; + }; + -+ spi0: spi@f0000000 { ++ spi@f0000000 { + status = "okay"; -+ cs-gpios = <&pioA 7 0>, <0>, <0>, <0>; ++ cs-gpios = <&pioA 7 0>, <&pioA 1 0>, <0>, <0>; + lora-spi@0 { + compatible = "spidev"; + spi-max-frequency = <2000000>; + reg = <0>; + }; ++ lora-spi@1 { ++ compatible = "spidev"; ++ spi-max-frequency = <2000000>; ++ reg = <1>; ++ }; + }; + + dbgu: serial@fffff200 { -- cgit v1.2.3