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