brcm63xx: move the bootargs into the dtb files
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / rta1320.dts
index 8b9620fa87c4b5d8100bcdbc3b61299061b5d346..6dbf0a5a91418157caa560c5453893f65105d0c6 100644 (file)
@@ -1,10 +1,38 @@
 /dts-v1/;
 
-/include/ "bcm6338.dtsi"
+#include "bcm6338.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Dynalink RTA1320";
        compatible = "dynalink,rta1320", "brcm,bcm6338";
+
+       chosen {
+               bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
+       };
+
+       gpio-leds {
+               compatible = "gpio-leds";
+
+               green_power {
+                       label = "RTA1320_16M:green:power";
+                       gpios = <&gpio0 0 1>;
+                       default-state = "on";
+               };
+               green_stop {
+                       label = "RTA1320_16M:green:stop";
+                       gpios = <&gpio0 1 1>;
+               };
+               green_adsl {
+                       label = "RTA1320_16M:green:adsl";
+                       gpios = <&gpio0 3 1>;
+               };
+               green_ppp {
+                       label = "RTA1320_16M:green:ppp";
+                       gpios = <&gpio0 4 1>;
+               };
+       };
 };
 
 &pflash {