6d4ed1d8cfc01539298afa605d6e78abc4044c33
[openwrt/staging/dangole.git] / target / linux / ramips / dts / F5D8235_V2.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 = "belkin,f5d8235-v2", "ralink,rt3052-soc";
10 model = "Belkin F5D8235 v2";
11
12 aliases {
13 led-status = &led_router;
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 uboot: partition@0 {
25 label = "uboot";
26 reg = <0x0 0x50000>;
27 read-only;
28 };
29
30 partition@50000 {
31 label = "firmware";
32 reg = <0x50000 0x790000>;
33 };
34
35 partition@7e0000 {
36 label = "nvram";
37 reg = <0x7e0000 0x10000>;
38 };
39
40 factory: partition@7f0000 {
41 label = "factory";
42 reg = <0x7f0000 0x10000>;
43 };
44 };
45
46 rtl8366rb {
47 compatible = "realtek,rtl8366rb";
48 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
49 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
50 };
51
52 gpio-leds {
53 compatible = "gpio-leds";
54
55 internet {
56 label = "f5d8235-v2:blue:internet";
57 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
58 };
59
60 internet2 {
61 label = "f5d8235-v2:amber:internet";
62 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
63 };
64
65 modem {
66 label = "f5d8235-v2:blue:modem";
67 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
68 };
69
70 modem2 {
71 label = "f5d8235-v2:amber:modem";
72 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
73 };
74
75 led_router: router {
76 label = "f5d8235-v2:blue:router";
77 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
78 };
79
80 storage {
81 label = "f5d8235-v2:blue:storage";
82 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
83 };
84
85 storage2 {
86 label = "f5d8235-v2:amber:storage";
87 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
88 };
89
90 security {
91 label = "f5d8235-v2:blue:security";
92 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
93 };
94
95 security2 {
96 label = "f5d8235-v2:amber:security";
97 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
98 };
99 };
100 };
101
102 &pinctrl {
103 state_default: pinctrl0 {
104 gpio {
105 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
106 ralink,function = "gpio";
107 };
108 };
109 };
110
111 &ethernet {
112 mtd-mac-address = <&uboot 0x40004>;
113 };
114
115 &esw {
116 mediatek,portmap = <0x3f>;
117 };
118
119 &wmac {
120 ralink,mtd-eeprom = <&uboot 0x40000>;
121 };
122
123 &otg {
124 status = "okay";
125 };