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