ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / rt3052_belkin_f5d8235-v2.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc";
8 model = "Belkin F5D8235 v2";
9
10 aliases {
11 led-boot = &led_router;
12 led-failsafe = &led_router;
13 led-running = &led_router;
14 led-upgrade = &led_router;
15 };
16
17 flash@1f000000 {
18 compatible = "cfi-flash";
19 reg = <0x1f000000 0x800000>;
20 bank-width = <2>;
21 device-width = <2>;
22
23 partitions {
24 compatible = "fixed-partitions";
25 #address-cells = <1>;
26 #size-cells = <1>;
27
28 uboot: partition@0 {
29 label = "uboot";
30 reg = <0x0 0x50000>;
31 read-only;
32 };
33
34 partition@50000 {
35 compatible = "denx,uimage";
36 label = "firmware";
37 reg = <0x50000 0x790000>;
38 };
39
40 partition@7e0000 {
41 label = "nvram";
42 reg = <0x7e0000 0x10000>;
43 };
44
45 factory: partition@7f0000 {
46 label = "factory";
47 reg = <0x7f0000 0x10000>;
48 };
49 };
50 };
51
52 rtl8366rb {
53 compatible = "realtek,rtl8366rb";
54 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
55 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
56 };
57
58 leds {
59 compatible = "gpio-leds";
60
61 internet {
62 label = "blue:internet";
63 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
64 };
65
66 internet2 {
67 label = "amber:internet";
68 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
69 };
70
71 modem {
72 label = "blue:modem";
73 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
74 };
75
76 modem2 {
77 label = "amber:modem";
78 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
79 };
80
81 led_router: router {
82 label = "blue:router";
83 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
84 };
85
86 storage {
87 label = "blue:storage";
88 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
89 trigger-sources = <&otg_port1>;
90 linux,default-trigger = "usbport";
91 };
92
93 storage2 {
94 label = "amber:storage";
95 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
96 };
97
98 security {
99 label = "blue:security";
100 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
101 };
102
103 security2 {
104 label = "amber:security";
105 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
106 };
107 };
108 };
109
110 &state_default {
111 gpio {
112 groups = "spi", "i2c", "jtag", "mdio", "uartf";
113 function = "gpio";
114 };
115 };
116
117 &ethernet {
118 nvmem-cells = <&macaddr_uboot_40004>;
119 nvmem-cell-names = "mac-address";
120 pinctrl-names = "default";
121 pinctrl-0 = <&rgmii_pins>;
122 };
123
124 &esw {
125 ralink,rgmii = <1>;
126 mediatek,portmap = <0x3f>;
127 ralink,fct2 = <0x0002500c>;
128 /*
129 * ext phy base addr 31, rx/tx clock skew 0,
130 * turbo mii off, rgmi 3.3v off, port 5 polling off
131 * port5: enabled, gige, full-duplex, rx/tx-flow-control
132 * port6: enabled, gige, full-duplex, rx/tx-flow-control
133 */
134 ralink,fpa2 = <0x1f003fff>;
135 };
136
137 &wmac {
138 ralink,mtd-eeprom = <&uboot 0x40000>;
139 };
140
141 &otg {
142 status = "okay";
143 };
144
145 &uboot {
146 compatible = "nvmem-cells";
147 #address-cells = <1>;
148 #size-cells = <1>;
149
150 macaddr_uboot_40004: macaddr@40004 {
151 reg = <0x40004 0x6>;
152 };
153 };