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