[LEDE-DEV] [PATCH 7/8] ipq806x: ipq4019: dts: remove spi chip node from ap-dk01 dtsi

Roman Yeryomin roman at advem.lv
Sun Oct 29 16:19:19 PDT 2017


All ap-dk01 boards have different spi chips, thus no point in keeping it in dtsi.

Signed-off-by: Roman Yeryomin <roman at advem.lv>
---
 .../arch/arm/boot/dts/qcom-ipq4019-fritz4040.dts        |  6 ------
 .../arch/arm/boot/dts/qcom-ipq4019-nbg6617.dts          |  8 --------
 .../arch/arm/boot/dts/qcom-ipq4019-rt-ac58u.dts         |  6 ------
 ...ipq4019-ap-dk01-remove-spi-chip-node-from-dtsi.patch | 17 +++++++++++++++++
 4 files changed, 17 insertions(+), 20 deletions(-)
 create mode 100644 target/linux/ipq806x/patches-4.9/864-05-dts-ipq4019-ap-dk01-remove-spi-chip-node-from-dtsi.patch

diff --git a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-fritz4040.dts b/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-fritz4040.dts
index a5bfa7e5ae..9b14280695 100644
--- a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-fritz4040.dts
+++ b/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-fritz4040.dts
@@ -134,12 +134,6 @@
 };
 
 &spi_0 { /* BLSP1 QUP1 */
-	status = "ok";
-
-	mx25l25635e at 0 {
-		status = "disabled";
-	};
-
 	mx25l25635f at 0 {
 		compatible = "mx25l25635f", "jedec,spi-nor";
 		#address-cells = <1>;
diff --git a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-nbg6617.dts b/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-nbg6617.dts
index ef468506ab..a00dee7f27 100644
--- a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-nbg6617.dts
+++ b/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-nbg6617.dts
@@ -116,14 +116,7 @@
 	};
 };
 
-
 &spi_0 { /* BLSP1 QUP1 */
-	status = "ok";
-
-	mx25l25635e at 0 {
-		status = "disabled";
-	};
-
 	n25q128a11 at 0 {
 		status = "okay";
 
@@ -138,6 +131,5 @@
 				read-only; /* for now */
 			};
 		};
-
 	};
 };
diff --git a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-rt-ac58u.dts b/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-rt-ac58u.dts
index 3318a003c9..6efd0df19b 100644
--- a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-rt-ac58u.dts
+++ b/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq4019-rt-ac58u.dts
@@ -110,16 +110,10 @@
 	};
 };
 
-
 &spi_0 { /* BLSP1 QUP1 */
-	status = "ok";
 	cs-gpios = <&tlmm 54 0>,
 		   <&tlmm 59 0>;
 
-	mx25l25635e at 0 {
-		status = "disabled";
-	};
-
 	m25p80 at 0 {
 		#address-cells = <1>;
 		#size-cells = <0>;
diff --git a/target/linux/ipq806x/patches-4.9/864-05-dts-ipq4019-ap-dk01-remove-spi-chip-node-from-dtsi.patch b/target/linux/ipq806x/patches-4.9/864-05-dts-ipq4019-ap-dk01-remove-spi-chip-node-from-dtsi.patch
new file mode 100644
index 0000000000..0d4b80b302
--- /dev/null
+++ b/target/linux/ipq806x/patches-4.9/864-05-dts-ipq4019-ap-dk01-remove-spi-chip-node-from-dtsi.patch
@@ -0,0 +1,17 @@
+--- a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi
++++ b/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi
+@@ -89,14 +89,6 @@
+ 			pinctrl-names = "default";
+ 			status = "ok";
+ 			cs-gpios = <&tlmm 54 0>;
+-
+-			mx25l25635e at 0 {
+-				#address-cells = <1>;
+-				#size-cells = <1>;
+-				reg = <0>;
+-				compatible = "mx25l25635e";
+-				spi-max-frequency = <24000000>;
+-			};
+ 		};
+ 
+ 		serial at 78af000 {
-- 
2.11.0




More information about the Lede-dev mailing list