Skip to content

Commit

Permalink
ramips: DTS rework
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sgalabov authored and blogic committed May 12, 2016
1 parent 861266c commit 9195d8d
Show file tree
Hide file tree
Showing 196 changed files with 9,599 additions and 9,852 deletions.
46 changes: 23 additions & 23 deletions target/linux/ramips/dts/3G-6200N.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@
compatible = "3G-6200N", "ralink,rt3050-soc";
model = "Edimax 3g-6200n";

pinctrl {
state_default: pinctrl0 {
gpio {
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
ralink,function = "gpio";
};
};
};

cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
Expand Down Expand Up @@ -53,18 +44,6 @@
};
};

ethernet@10100000 {
mtd-mac-address = <&factory 0x4>;
};

esw@10110000 {
mediatek,portmap = <0x2f>;
};

wmac@10180000 {
ralink,mtd-eeprom = <&factory 0>;
};

gpio-leds {
compatible = "gpio-leds";

Expand Down Expand Up @@ -102,8 +81,29 @@
linux,code = <0x100>;
};
};
};

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 = <0x2f>;
};

&wmac {
ralink,mtd-eeprom = <&factory 0>;
};

&otg {
status = "okay";
};
46 changes: 23 additions & 23 deletions target/linux/ramips/dts/3G-6200NL.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@
compatible = "3G-6200NL", "ralink,rt3050-soc";
model = "Edimax 3g-6200nl";

pinctrl {
state_default: pinctrl0 {
gpio {
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
ralink,function = "gpio";
};
};
};

cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
Expand Down Expand Up @@ -53,18 +44,6 @@
};
};

ethernet@10100000 {
mtd-mac-address = <&factory 0x4>;
};

esw@10110000 {
mediatek,portmap = <0x2f>;
};

wmac@10180000 {
ralink,mtd-eeprom = <&factory 0>;
};

gpio-leds {
compatible = "gpio-leds";

Expand All @@ -86,8 +65,29 @@
linux,code = <0x211>;
};
};
};

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 = <0x2f>;
};

&wmac {
ralink,mtd-eeprom = <&factory 0>;
};

&otg {
status = "okay";
};
142 changes: 70 additions & 72 deletions target/linux/ramips/dts/3G150B.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,78 +6,6 @@
compatible = "3G150B", "ralink,rt5350-soc";
model = "Tenda 3G150B";

palmbus@10000000 {
spi@b00 {
status = "okay";

m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0 0>;
linux,modalias = "m25p80", "s25fl064k";
spi-max-frequency = <10000000>;

partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};

partition@30000 {
label = "u-boot-env";
reg = <0x30000 0x10000>;
read-only;
};

factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};

partition@50000 {
label = "firmware";
reg = <0x50000 0x3b0000>;
};
};
};

gpio1: gpio@660 {
status = "okay";
};
};

pinctrl {
state_default: pinctrl0 {
gpio {
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf", "led";
ralink,function = "gpio";
};
};
};

ethernet@10100000 {
mtd-mac-address = <&factory 0x4>;
};

esw@10110000 {
mediatek,portmap = <0x2f>;
};

wmac@10180000 {
ralink,mtd-eeprom = <&factory 0>;
ralink,led-polarity = <1>;
};

ehci@101c0000 {
status = "okay";
};

ohci@101c1000 {
status = "okay";
};

gpio-leds {
compatible = "gpio-leds";

Expand Down Expand Up @@ -116,3 +44,73 @@
};
};
};

&spi0 {
status = "okay";

m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0 0>;
linux,modalias = "m25p80", "s25fl064k";
spi-max-frequency = <10000000>;

partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};

partition@30000 {
label = "u-boot-env";
reg = <0x30000 0x10000>;
read-only;
};

factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};

partition@50000 {
label = "firmware";
reg = <0x50000 0x3b0000>;
};
};
};

&gpio1 {
status = "okay";
};

&pinctrl {
state_default: pinctrl0 {
gpio {
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf", "led";
ralink,function = "gpio";
};
};
};

&ethernet {
mtd-mac-address = <&factory 0x4>;
};

&esw {
mediatek,portmap = <0x2f>;
};

&wmac {
ralink,mtd-eeprom = <&factory 0>;
ralink,led-polarity = <1>;
};

&ehci {
status = "okay";
};

&ohci {
status = "okay";
};
Loading

0 comments on commit 9195d8d

Please sign in to comment.