summaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts/FONERA20N.dts
diff options
context:
space:
mode:
authorStanislav Galabov <stanislav_galabov@smartcom.bg>2016-05-10 13:41:46 +0300
committerJohn Crispin <john@phrozen.org>2016-05-12 03:29:35 +0200
commit9195d8da355d0d141ac02c9a5269452dc64ffd2d (patch)
tree6983c73be89b47cc24300c4771618d01fa4ba901 /target/linux/ramips/dts/FONERA20N.dts
parent861266c9ec0d5a48af044a08a01ccb9fc62b1ac8 (diff)
downloadmtk-20170518-9195d8da355d0d141ac02c9a5269452dc64ffd2d.zip
mtk-20170518-9195d8da355d0d141ac02c9a5269452dc64ffd2d.tar.gz
mtk-20170518-9195d8da355d0d141ac02c9a5269452dc64ffd2d.tar.bz2
ramips: DTS rework
Add node aliases to dtsi files. Reword dts files so they're more in-line with upstream. Fix some more warnings and errors reported by dtc Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts/FONERA20N.dts')
-rw-r--r--target/linux/ramips/dts/FONERA20N.dts86
1 files changed, 43 insertions, 43 deletions
diff --git a/target/linux/ramips/dts/FONERA20N.dts b/target/linux/ramips/dts/FONERA20N.dts
index f5578ee..b7eb91e 100644
--- a/target/linux/ramips/dts/FONERA20N.dts
+++ b/target/linux/ramips/dts/FONERA20N.dts
@@ -6,15 +6,6 @@
compatible = "FONERA20N", "ralink,rt3052-soc";
model = "La Fonera 2.0N";
- pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
- ralink,function = "gpio";
- };
- };
- };
-
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
@@ -85,50 +76,59 @@
linux,input-type = <5>; /* EV_SW */
};
};
+};
- ethernet@10100000 {
- mtd-mac-address = <&factory 0x28>;
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
+ ralink,function = "gpio";
+ };
};
+};
- esw@10110000 {
- mediatek,portmap = <0x2f>;
-
- port@0 {
- compatible = "swconfig,port";
- swconfig,segment = "lan";
- swconfig,portmap = <0 4>;
- };
+&ethernet {
+ mtd-mac-address = <&factory 0x28>;
+};
- port@1 {
- compatible = "swconfig,port";
- swconfig,segment = "lan";
- swconfig,portmap = <1 3>;
- };
+&esw {
+ mediatek,portmap = <0x2f>;
- port@2 {
- compatible = "swconfig,port";
- swconfig,segment = "lan";
- swconfig,portmap = <2 2>;
- };
+ port@0 {
+ compatible = "swconfig,port";
+ swconfig,segment = "lan";
+ swconfig,portmap = <0 4>;
+ };
- port@3 {
- compatible = "swconfig,port";
- swconfig,segment = "lan";
- swconfig,portmap = <3 1>;
- };
+ port@1 {
+ compatible = "swconfig,port";
+ swconfig,segment = "lan";
+ swconfig,portmap = <1 3>;
+ };
- port@4 {
- compatible = "swconfig,port";
- swconfig,segment = "wan";
- swconfig,portmap = <4 0>;
- };
+ port@2 {
+ compatible = "swconfig,port";
+ swconfig,segment = "lan";
+ swconfig,portmap = <2 2>;
};
- wmac@10180000 {
- ralink,mtd-eeprom = <&factory 0>;
+ port@3 {
+ compatible = "swconfig,port";
+ swconfig,segment = "lan";
+ swconfig,portmap = <3 1>;
};
- otg@101c0000 {
- status = "okay";
+ port@4 {
+ compatible = "swconfig,port";
+ swconfig,segment = "wan";
+ swconfig,portmap = <4 0>;
};
};
+
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
+
+&otg {
+ status = "okay";
+};