ramips: move partitions into partition table node
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / TEW-692GR.dts
index db8fef1699a8d823105c3628be9a95bbc248fdc2..8bb7f1748d7a410e10168b15c4b21f5d115dcfd0 100644 (file)
                compatible = "cfi-flash";
                reg = <0x1c000000 0x800000>;
                bank-width = <2>;
-               #address-cells = <1>;
-               #size-cells = <1>;
 
-               partition@0 {
-                       reg = <0x0 0x0030000>;
-                       label = "u-boot";
-                       read-only;
-               };
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
 
-               partition@30000 {
-                       reg = <0x00030000 0x00010000>;
-                       label = "u-boot-env";
-                       read-only;
-               };
+                       partition@0 {
+                               reg = <0x0 0x0030000>;
+                               label = "u-boot";
+                               read-only;
+                       };
 
-               factory: partition@40000 {
-                       reg = <0x00040000 0x00010000>;
-                       label = "factory";
-                       read-only;
-               };
+                       partition@30000 {
+                               reg = <0x00030000 0x00010000>;
+                               label = "u-boot-env";
+                               read-only;
+                       };
+
+                       factory: partition@40000 {
+                               reg = <0x00040000 0x00010000>;
+                               label = "factory";
+                               read-only;
+                       };
 
-               partition@50000 {
-                       reg = <0x00050000 0x007b0000>;
-                       label = "firmware";
+                       partition@50000 {
+                               reg = <0x00050000 0x007b0000>;
+                               label = "firmware";
+                       };
                };
        };
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <100>;
 
                reset {
 
 &pci {
        status = "okay";
-       pinctrl-names = "default";
-       pinctrl-0 = <&pci_pins>;
-
-       pci_pins: pci {
-               pci {
-                       ralink,group = "pci";
-                       ralink,function = "pci-fnc";
-               };
-       };
+};
 
-       host-bridge {
-               pci-bridge@1 {
-                       status = "okay";
+&pci1 {
+       status = "okay";
 
-                       wifi@0,0 {
-                               compatible = "pci0,0";
-                               reg = < 0x10000 0 0 0 0 >;
-                               ralink,2ghz = <0>;
-                       };
-               };
+       wifi@0,0 {
+               compatible = "pci0,0";
+               reg = < 0x10000 0 0 0 0 >;
+               ralink,2ghz = <0>;
        };
 };