ralink: add 3.18 support
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / mt7620a.dtsi
index 3e735fb18cac7ca9e84c784bf18487969bd5d18d..c21ae0fd52e73f3de7b59f9caad2eafe7a59d215 100644 (file)
                                ralink,function = "pcm i2s";
                        };
                };
+               uartf_gpio_pins: uartf_gpio {
+                       uartf_gpio {
+                               ralink,group = "uartf";
+                               ralink,function = "gpio uartf";
+                       };
+               };
                spi_pins: spi {
                        spi {
                                ralink,group = "spi";
                };
                i2c_pins: i2c {
                        i2c {
-                               lantiq,group = "i2c";
-                               lantiq,function = "i2c";
+                               ralink,group = "i2c";
+                               ralink,function = "i2c";
                        };
                };
                uartlite_pins: uartlite {
                                ralink,function = "rgmii2";
                        };
                };
+               pcie_pins: pcie {
+                       pcie {
+                               ralink,group = "pcie";
+                               ralink,function = "pcie rst";
+                       };
+               };
        };
 
        rstctrl: rstctrl {
                #reset-cells = <1>;
        };
 
-       ubsphy {
+       usbphy: usbphy {
                compatible = "ralink,mt7620a-usbphy";
+               #phy-cells = <1>;
 
                resets = <&rstctrl 22 &rstctrl 25>;
                reset-names = "host", "device";
                compatible = "ralink,mt7620a-gsw";
                reg = <0x10110000 8000>;
 
+               resets = <&rstctrl 23>;
+               reset-names = "esw";
+
                interrupt-parent = <&intc>;
                interrupts = <17>;
        };
 
        sdhci@10130000 {
-               compatible = "ralink,mt7620a-sdhci";
+               compatible = "ralink,mt7620-sdhci";
                reg = <0x10130000 4000>;
 
                interrupt-parent = <&intc>;
                interrupt-parent = <&intc>;
                interrupts = <18>;
 
+               phys = <&usbphy 1>;
+               phy-names = "usb";
+
                status = "disabled";
        };
 
                interrupt-parent = <&intc>;
                interrupts = <18>;
 
+               phys = <&usbphy 1>;
+               phy-names = "usb";
+
                status = "disabled";
        };
 
        pcie@10140000 {
-               compatible = "ralink,mt7620a-pci";
+               compatible = "mediatek,mt7620-pci";
                reg = <0x10140000 0x100
                        0x10142000 0x100>;
 
+               #address-cells = <3>;
+               #size-cells = <2>;
+
                resets = <&rstctrl 26>;
                reset-names = "pcie0";
 
                interrupt-parent = <&cpuintc>;
                interrupts = <4>;
 
+               pinctrl-names = "default";
+               pinctrl-0 = <&pcie_pins>;
+
+               device_type = "pci";
+
+               bus-range = <0 255>;
+               ranges = <
+                       0x02000000 0 0x00000000 0x20000000 0 0x10000000 /* pci memory */
+                       0x01000000 0 0x00000000 0x10160000 0 0x00010000 /* io space */
+               >;
+
                status = "disabled";
+
+               pcie-bridge {
+                       reg = <0x0000 0 0 0 0>;
+
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+
+                       device_type = "pci";
+               };
+       };
+
+       wmac@10180000 {
+               compatible = "ralink,rt7620-wmac", "ralink,rt2880-wmac";
+               reg = <0x10180000 40000>;
+
+               interrupt-parent = <&cpuintc>;
+               interrupts = <6>;
+
+               ralink,eeprom = "soc_wmac.eeprom";
        };
 };