ramips: mt7621: convert NETGEAR devices EEPROM to NVMEM format
[openwrt/openwrt.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 label = "factory";
39 reg = <0x40000 0x10000>;
40 read-only;
41
42 nvmem-layout {
43 compatible = "fixed-layout";
44 #address-cells = <1>;
45 #size-cells = <1>;
46
47 eeprom_factory_0: eeprom@0 {
48 reg = <0x0 0x200>;
49 };
50
51 macaddr_factory_4: macaddr@4 {
52 reg = <0x4 0x6>;
53 };
54 };
55 };
56
57 partition@50000 {
58 compatible = "denx,uimage";
59 label = "firmware";
60 reg = <0x50000 0x7b0000>;
61 };
62 };
63 };
64
65 gpio-export {
66 compatible = "gpio-export";
67
68 /*
69 * Used to enable power-over-ethernet passthrough from port0 to port1.
70 * Disable passthrough by default to prevent accidental equipment damage.
71 */
72 poe {
73 gpio-export,name = "poe-passthrough";
74 gpio-export,output = <1>;
75 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
76 };
77 };
78
79 leds {
80 compatible = "gpio-leds";
81
82 /*
83 * The following leds are defined in the ArcOS firmware, but reportedly
84 * not present in the Freestation5 device.
85 */
86 wifi {
87 label = "unknown:wifi";
88 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
89 };
90
91 powerg {
92 label = "unknown:powerg";
93 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
94 };
95
96 usb {
97 label = "unknown:usb";
98 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
99 };
100 };
101 };
102
103 &state_default {
104 gpio {
105 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
106 function = "gpio";
107 };
108 };
109
110 &ethernet {
111 nvmem-cells = <&macaddr_factory_4>;
112 nvmem-cell-names = "mac-address";
113 };
114
115 &esw {
116 mediatek,portmap = <0x01>;
117 };
118
119 &wmac {
120 nvmem-cells = <&eeprom_factory_0>;
121 nvmem-cell-names = "eeprom";
122 };
123
124 &otg {
125 status = "okay";
126 };