From 6364e03736f00591e64cb954858b3da4b3bbdf5d Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sun, 15 Sep 2019 20:14:26 +0200 Subject: [PATCH] ramips: only add spidev node in for WrtNode2R (and not for 2P) Only the 2R version got the STM32 uC connected as 2nd SPI device. Hence move the spidev node from mt7628an_wrtnode_wrtnode2.dtsi to mt7628an_wrtnode_wrtnode2r.dts. Signed-off-by: Daniel Golle --- target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi | 8 -------- target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts | 10 ++++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi index 9bac82287242..b8fa634e5093 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi @@ -60,14 +60,6 @@ }; }; }; - - spidev@1 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "linux,spidev"; - reg = <1>; - spi-max-frequency = <10000000>; - }; }; &uart1 { diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts index ccee34416b11..7defe9c0331d 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts @@ -41,3 +41,13 @@ }; }; }; + +&spi0 { + spidev@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "linux,spidev"; + reg = <1>; + spi-max-frequency = <10000000>; + }; +}; -- 2.30.2