From: Daniel Golle Date: Sun, 15 Sep 2019 18:14:26 +0000 (+0200) Subject: ramips: only add spidev node in for WrtNode2R (and not for 2P) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6364e03736f00591e64cb954858b3da4b3bbdf5d;p=openwrt%2Fstaging%2Fjow.git 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 --- diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi index 9bac822872..b8fa634e50 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 ccee34416b..7defe9c033 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>; + }; +};