ramips: soc wmac eeprom cleanup
[openwrt/openwrt.git] / target / linux / ramips / dts / DIR-645.dts
index 77155a3711656a47f055a048e83816693359e6a4..0a9d83f85c697b3afe296c11bda29634867eb7d7 100644 (file)
@@ -3,31 +3,10 @@
 /include/ "rt3883.dtsi"
 
 / {
-       #address-cells = <1>;
-       #size-cells = <1>;
        compatible = "DIR-645", "ralink,rt3883-soc";
        model = "D-Link DIR-645";
 
-       memorydetect {
-               ralink,memory = <0x0 0x200000 0x10000000>;
-       };
-
        palmbus@10000000 {
-               sysc@0 {
-                       ralink,pinmux = "uartlite", "spi";
-                       ralink,gpiomux = "i2c", "jtag";
-                       ralink,uartmux = "gpio";
-                       ralink,wdtmux = <1>;
-               };
-
-               timer@100 {
-                       status = "okay";
-               };
-
-               gpio0: gpio@600 {
-                       status = "okay";
-               };
-
                gpio1: gpio@638 {
                        status = "okay";
                };
                };
        };
 
-       ethernet@10100000 {
-               status = "okay";
+       pinctrl {
+               state_default: pinctrl0 {
+                       gpio {
+                               ralink,group = "i2c", "jtag", "uartf";
+                               ralink,function = "gpio";
+                       };
+               };
+       };
 
+       ethernet@10100000 {
                mtd-mac-address = <&factory 0x28>;
-               ralink,fixed-link = <1000 1 1 1>;
+               port@0 {
+                       ralink,fixed-link = <1000 1 1 0>;
+               };
        };
 
        wmac@10180000 {
-               status = "okay";
                ralink,5ghz = <0>;
+               ralink,mtd-eeprom = <&factory 0>;
        };
 
        ehci@101c0000 {
@@ -94,8 +82,8 @@
                status = "okay";
        };
 
-       rtl8366b {
-               compatible = "rtl8367b";
+       rtl8367b {
+               compatible = "realtek,rtl8367b";
                gpio-sda = <&gpio0 1 0>;
                gpio-sck = <&gpio0 2 0>;
                realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
 
        gpio-leds {
                compatible = "gpio-leds";
-               
+
                inet {
                        label = "d-link:green:inet";
                        gpios = <&gpio0 0 1>;
        gpio_export {
                compatible = "gpio-export";
                #size-cells = <0>;
-
                usb {
                        gpio-export,name = "usb";
                        gpio-export,output = <1>;