ramips: fix whitespace and comment issues in dts
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / FREESTATION5.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "arcwireless,freestation5", "ralink,rt3050-soc";
10 model = "ARC FreeStation5";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 cfi@1f000000 {
17 compatible = "cfi-flash";
18 reg = <0x1f000000 0x800000>;
19 bank-width = <2>;
20 device-width = <2>;
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 partition@0 {
25 label = "u-boot";
26 reg = <0x0 0x30000>;
27 read-only;
28 };
29
30 partition@30000 {
31 label = "u-boot-env";
32 reg = <0x30000 0x10000>;
33 read-only;
34 };
35
36 factory: partition@40000 {
37 label = "factory";
38 reg = <0x40000 0x10000>;
39 read-only;
40 };
41
42 partition@50000 {
43 label = "firmware";
44 reg = <0x50000 0x7b0000>;
45 };
46 };
47
48 gpio-export {
49 compatible = "gpio-export";
50
51 /*
52 * Used to enable power-over-ethernet passthrough from port0 to port1.
53 * Disable passthrough by default to prevent accidental equipment damage.
54 */
55 poe {
56 gpio-export,name = "poe-passthrough";
57 gpio-export,output = <1>;
58 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
59 };
60 };
61
62 gpio-leds {
63 compatible = "gpio-leds";
64
65 /*
66 * The following leds are defined in the ArcOS firmware, but reportedly
67 * not present in the Freestation5 device.
68 */
69 wifi {
70 label = "freestation5:unknown:wifi";
71 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
72 };
73
74 powerg {
75 label = "freestation5:unknown:powerg";
76 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
77 };
78
79 usb {
80 label = "freestation5:unknown:usb";
81 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
82 };
83 };
84 };
85
86 &pinctrl {
87 state_default: pinctrl0 {
88 gpio {
89 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
90 ralink,function = "gpio";
91 };
92 };
93 };
94
95 &ethernet {
96 mtd-mac-address = <&factory 0x4>;
97 };
98
99 &esw {
100 mediatek,portmap = <0x01>;
101 };
102
103 &wmac {
104 ralink,mtd-eeprom = <&factory 0>;
105 };
106
107 &otg {
108 status = "okay";
109 };