kernel: mtdsplit: Add support for D-link JBOOT
[openwrt/openwrt.git] / target / linux / ramips / dts / BROADWAY.dts
index 34696ad9ad9e62746e25b5dd4d56df215c8b7e4f..4b6b6ca422c2d5bd8dc3af07af5712cefbb31f9e 100644 (file)
@@ -1,20 +1,14 @@
 /dts-v1/;
 
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
-       compatible = "BROADWAY", "ralink,rt3052-soc";
+       compatible = "hauppauge,broadway", "ralink,rt3052-soc";
        model = "Hauppauge Broadway";
 
-       pinctrl {
-               state_default: pinctrl0 {
-                       gpio {
-                               ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
-                               ralink,function = "gpio";
-                       };
-               };
-       };
-
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
                };
        };
 
-       ethernet@10100000 {
-               mtd-mac-address = <&factory 0x4>;
-       };
-
-       esw@10110000 {
-               ralink,portmap = <0x3e>;
-       };
-
-       wmac@10180000 {
-               ralink,mtd-eeprom = <&factory 0>;
-       };
-
        gpio-leds {
                compatible = "gpio-leds";
 
                diskmounted {
-                       label = "red:diskmounted";
-                       gpios = <&gpio0 9 1>;
+                       label = "broadway:red:diskmounted";
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps_active {
-                       label = "red:wps_active";
-                       gpios = <&gpio0 14 1>;
+                       label = "broadway:red:wps_active";
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                factory {
                        label = "Factory Reset button";
-                       gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
+};
 
-       otg@101c0000 {
-               status = "okay";
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+                       ralink,function = "gpio";
+               };
        };
 };
+
+&ethernet {
+       mtd-mac-address = <&factory 0x4>;
+};
+
+&esw {
+       mediatek,portmap = <0x3e>;
+};
+
+&wmac {
+       ralink,mtd-eeprom = <&factory 0>;
+};
+
+&otg {
+       status = "okay";
+};