ramips: rtxxxx: convert to nvmem-layout
[openwrt/staging/jow.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 nvmem-layout {
34 compatible = "fixed-layout";
35 #address-cells = <1>;
36 #size-cells = <1>;
37
38 eeprom_uboot_40000: eeprom@40000 {
39 reg = <0x40000 0x200>;
40 };
41
42 macaddr_uboot_40004: macaddr@40004 {
43 reg = <0x40004 0x6>;
44 };
45 };
46 };
47
48 partition@50000 {
49 compatible = "denx,uimage";
50 label = "firmware";
51 reg = <0x50000 0x790000>;
52 };
53
54 partition@7e0000 {
55 label = "nvram";
56 reg = <0x7e0000 0x10000>;
57 };
58
59 factory: partition@7f0000 {
60 label = "factory";
61 reg = <0x7f0000 0x10000>;
62 };
63 };
64 };
65
66 rtl8366rb {
67 compatible = "realtek,rtl8366rb";
68 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
69 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
70 };
71
72 leds {
73 compatible = "gpio-leds";
74
75 internet {
76 label = "blue:internet";
77 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
78 };
79
80 internet2 {
81 label = "amber:internet";
82 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
83 };
84
85 modem {
86 label = "blue:modem";
87 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
88 };
89
90 modem2 {
91 label = "amber:modem";
92 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
93 };
94
95 led_router: router {
96 label = "blue:router";
97 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
98 };
99
100 storage {
101 label = "blue:storage";
102 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
103 trigger-sources = <&otg_port1>;
104 linux,default-trigger = "usbport";
105 };
106
107 storage2 {
108 label = "amber:storage";
109 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
110 };
111
112 security {
113 label = "blue:security";
114 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
115 };
116
117 security2 {
118 label = "amber:security";
119 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
120 };
121 };
122 };
123
124 &state_default {
125 gpio {
126 groups = "spi", "i2c", "jtag", "mdio", "uartf";
127 function = "gpio";
128 };
129 };
130
131 &ethernet {
132 nvmem-cells = <&macaddr_uboot_40004>;
133 nvmem-cell-names = "mac-address";
134 pinctrl-names = "default";
135 pinctrl-0 = <&rgmii_pins>;
136 };
137
138 &esw {
139 ralink,rgmii = <1>;
140 mediatek,portmap = <0x3f>;
141 ralink,fct2 = <0x0002500c>;
142 /*
143 * ext phy base addr 31, rx/tx clock skew 0,
144 * turbo mii off, rgmi 3.3v off, port 5 polling off
145 * port5: enabled, gige, full-duplex, rx/tx-flow-control
146 * port6: enabled, gige, full-duplex, rx/tx-flow-control
147 */
148 ralink,fpa2 = <0x1f003fff>;
149 };
150
151 &wmac {
152 nvmem-cells = <&eeprom_uboot_40000>;
153 nvmem-cell-names = "eeprom";
154 };
155
156 &otg {
157 status = "okay";
158 };