Skip to contentSkip to conversation

MIPS: dts: reuse TP-LINK MR3020 dts file from linux

PATCH Applied Antony Pavlov 2 participants 3 messages Aug 16, 2016 – Aug 18, 2016 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: dts: reuse TP-LINK MR3020 dts file from linux

At the moment barebox tplink-mr3020.dts file has almost the same content as linux ar9331_tl_mr3020.dts file so we can reuse linux dts-file and drop duplicated lines from barebox dts-file.

---
 arch/mips/dts/tplink-mr3020.dts | 68 +----------------------------------------
 1 file changed, 1 insertion(+), 67 deletions(-)
arch/mips/dts/tplink-mr3020.dts +1 -67
index 831fab8..1e843ee 100644
@@ -1,73 +1,7 @@
-/dts-v1/;
-
-#include <dt-bindings/gpio/gpio.h>
-
-#include <mips/qca/ar9331.dtsi>
+#include <mips/qca/ar9331_tl_mr3020.dts>
 
 / {
-	model = "TP-Link TL-MR3020";
-	compatible = "tplink,tl-mr3020";
-
 	aliases {
 		spiflash = &spiflash;
 	};
-
-	memory@0 {
-		device_type = "memory";
-		reg = <0x00000000 0x2000000>;
-	};
-
-	leds {
-		compatible = "gpio-leds";
-
-		wlan {
-			label = "tp-link:green:wlan";
-			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
-			default-state = "off";
-		};
-
-		lan {
-			label = "tp-link:green:lan";
-			gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
-			default-state = "off";
-		};
-
-		wps {
-			label = "tp-link:green:wps";
-			gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
-			default-state = "off";
-		};
-
-		led3g {
-			label = "tp-link:green:3g";
-			gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
-			default-state = "off";
-		};
-	};
-};
-
-&ref {
-	clock-frequency = <25000000>;
-};
-
-&uart {
-	status = "okay";
-};
-
-&gpio {
-	status = "okay";
-};
-
-&spi {
-	num-chipselects = <1>;
-	status = "okay";
-
-	/* Spansion S25FL032PIF SPI flash */
-	spiflash: s25sl032p@0 {
-		#address-cells = <1>;
-		#size-cells = <1>;
-		compatible = "spansion,s25sl032p", "jedec,spi-nor";
-		spi-max-frequency = <104000000>;
-		reg = <0>;
-	};
 };
Signature · 7 lines
2.8.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 9 lines · Antony Pavlov

At the moment barebox tplink-mr3020.dts file has almost the same content as linux ar9331_tl_mr3020.dts file so we can reuse linux dts-file and drop duplicated lines from barebox dts-file.

---
 arch/mips/dts/tplink-mr3020.dts | 68 +----------------------------------------
 1 file changed, 1 insertion(+), 67 deletions(-)

Applied, thanks

There is no difference between the two patches you sent, right?

Sascha

Quoted 89 lines
arch/mips/dts/tplink-mr3020.dts +1 -67
index 831fab8..1e843ee 100644
@@ -1,73 +1,7 @@
-/dts-v1/;
-
-#include <dt-bindings/gpio/gpio.h>
-
-#include <mips/qca/ar9331.dtsi>
+#include <mips/qca/ar9331_tl_mr3020.dts>
 
 / {
-	model = "TP-Link TL-MR3020";
-	compatible = "tplink,tl-mr3020";
-
 	aliases {
 		spiflash = &spiflash;
 	};
-
-	memory@0 {
-		device_type = "memory";
-		reg = <0x00000000 0x2000000>;
-	};
-
-	leds {
-		compatible = "gpio-leds";
-
-		wlan {
-			label = "tp-link:green:wlan";
-			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
-			default-state = "off";
-		};
-
-		lan {
-			label = "tp-link:green:lan";
-			gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
-			default-state = "off";
-		};
-
-		wps {
-			label = "tp-link:green:wps";
-			gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
-			default-state = "off";
-		};
-
-		led3g {
-			label = "tp-link:green:3g";
-			gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
-			default-state = "off";
-		};
-	};
-};
-
-&ref {
-	clock-frequency = <25000000>;
-};
-
-&uart {
-	status = "okay";
-};
-
-&gpio {
-	status = "okay";
-};
-
-&spi {
-	num-chipselects = <1>;
-	status = "okay";
-
-	/* Spansion S25FL032PIF SPI flash */
-	spiflash: s25sl032p@0 {
-		#address-cells = <1>;
-		#size-cells = <1>;
-		compatible = "spansion,s25sl032p", "jedec,spi-nor";
-		spi-max-frequency = <104000000>;
-		reg = <0>;
-	};
 };
Signature · 7 lines
2.8.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
Quoted 6 lines · On Thu, 18 Aug 2016 08:32:27 +0200 Sascha Hauer <[email protected]> wrote:
Quoted 5 lines · Antony Pavlov

At the moment barebox tplink-mr3020.dts file has almost the same content as linux ar9331_tl_mr3020.dts file so we can reuse linux dts-file and drop duplicated lines from barebox dts-file.

Quoted 8 lines
Quoted 4 lines
---
 arch/mips/dts/tplink-mr3020.dts | 68 +----------------------------------------
 1 file changed, 1 insertion(+), 67 deletions(-)

Applied, thanks

There is no difference between the two patches you sent, right?

Yes, there is no difference. My bad --- I have used wrong maillist address in the first patch ([email protected] instead of [email protected]).

Quoted 98 lines

Sascha

Quoted 89 lines
arch/mips/dts/tplink-mr3020.dts +1 -67
index 831fab8..1e843ee 100644
@@ -1,73 +1,7 @@
-/dts-v1/;
-
-#include <dt-bindings/gpio/gpio.h>
-
-#include <mips/qca/ar9331.dtsi>
+#include <mips/qca/ar9331_tl_mr3020.dts>
 
 / {
-	model = "TP-Link TL-MR3020";
-	compatible = "tplink,tl-mr3020";
-
 	aliases {
 		spiflash = &spiflash;
 	};
-
-	memory@0 {
-		device_type = "memory";
-		reg = <0x00000000 0x2000000>;
-	};
-
-	leds {
-		compatible = "gpio-leds";
-
-		wlan {
-			label = "tp-link:green:wlan";
-			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
-			default-state = "off";
-		};
-
-		lan {
-			label = "tp-link:green:lan";
-			gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
-			default-state = "off";
-		};
-
-		wps {
-			label = "tp-link:green:wps";
-			gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
-			default-state = "off";
-		};
-
-		led3g {
-			label = "tp-link:green:3g";
-			gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
-			default-state = "off";
-		};
-	};
-};
-
-&ref {
-	clock-frequency = <25000000>;
-};
-
-&uart {
-	status = "okay";
-};
-
-&gpio {
-	status = "okay";
-};
-
-&spi {
-	num-chipselects = <1>;
-	status = "okay";
-
-	/* Spansion S25FL032PIF SPI flash */
-	spiflash: s25sl032p@0 {
-		#address-cells = <1>;
-		#size-cells = <1>;
-		compatible = "spansion,s25sl032p", "jedec,spi-nor";
-		spi-max-frequency = <104000000>;
-		reg = <0>;
-	};
 };
Signature · 7 lines
2.8.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Signature · 8 lines
-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox