[source] lantiq: ase: fix SPI support

LEDE Commits lede-commits at lists.infradead.org
Wed Oct 4 11:08:42 PDT 2017


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/695645b9ac1c0bcb90b20c49e463be84927a4967

commit 695645b9ac1c0bcb90b20c49e463be84927a4967
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Tue Oct 3 21:44:40 2017 +0200

    lantiq: ase: fix SPI support
    
    Do not disable SPI in the subtarget, otherwise the SPI driver can not
    be used.
    
    Disable SPI by default and enable it in the board specific device tree
    source file.
    
    Signed-off-by: Mathias Kresin <dev at kresin.me>
---
 target/linux/lantiq/ase/config-default | 1 -
 target/linux/lantiq/dts/DGN1000B.dts   | 1 +
 target/linux/lantiq/dts/amazonse.dtsi  | 1 +
 3 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/lantiq/ase/config-default b/target/linux/lantiq/ase/config-default
index b53f6c5..7b76665 100644
--- a/target/linux/lantiq/ase/config-default
+++ b/target/linux/lantiq/ase/config-default
@@ -16,7 +16,6 @@ CONFIG_MIPS_FPU_EMULATOR=y
 # CONFIG_RTL8366_SMI is not set
 CONFIG_SOC_AMAZON_SE=y
 # CONFIG_SOC_XWAY is not set
-# CONFIG_SPI is not set
 CONFIG_USB_SUPPORT=y
 # CONFIG_WIRELESS is not set
 # CONFIG_WLAN is not set
diff --git a/target/linux/lantiq/dts/DGN1000B.dts b/target/linux/lantiq/dts/DGN1000B.dts
index 5586582..1e409d2 100644
--- a/target/linux/lantiq/dts/DGN1000B.dts
+++ b/target/linux/lantiq/dts/DGN1000B.dts
@@ -60,6 +60,7 @@
 		};
 
 		spi at E100800 {
+			status = "okay";
 			pinctrl-names = "default";
 			pinctrl-0 = <&pins_spi_default>;
 
diff --git a/target/linux/lantiq/dts/amazonse.dtsi b/target/linux/lantiq/dts/amazonse.dtsi
index e88fc16..e6925a3 100644
--- a/target/linux/lantiq/dts/amazonse.dtsi
+++ b/target/linux/lantiq/dts/amazonse.dtsi
@@ -104,6 +104,7 @@
 					"spi_frm";
 			#address-cells = <1>;
 			#size-cells = <1>;
+			status = "disabled";
 		};
 
 		gptu at E100A00 {



More information about the lede-commits mailing list