ramips: move dts-v1 statement to top-level DTSI files
[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 = "f5d8235-v2:blue:internet";
63 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
64 };
65
66 internet2 {
67 label = "f5d8235-v2:amber:internet";
68 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
69 };
70
71 modem {
72 label = "f5d8235-v2:blue:modem";
73 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
74 };
75
76 modem2 {
77 label = "f5d8235-v2:amber:modem";
78 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
79 };
80
81 led_router: router {
82 label = "f5d8235-v2:blue:router";
83 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
84 };
85
86 storage {
87 label = "f5d8235-v2: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 = "f5d8235-v2:amber:storage";
95 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
96 };
97
98 security {
99 label = "f5d8235-v2:blue:security";
100 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
101 };
102
103 security2 {
104 label = "f5d8235-v2: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 mtd-mac-address = <&uboot 0x40004>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&rgmii_pins>;
121 };
122
123 &esw {
124 ralink,rgmii = <1>;
125 mediatek,portmap = <0x3f>;
126 ralink,fct2 = <0x0002500c>;
127 /*
128 * ext phy base addr 31, rx/tx clock skew 0,
129 * turbo mii off, rgmi 3.3v off, port 5 polling off
130 * port5: enabled, gige, full-duplex, rx/tx-flow-control
131 * port6: enabled, gige, full-duplex, rx/tx-flow-control
132 */
133 ralink,fpa2 = <0x1f003fff>;
134 };
135
136 &wmac {
137 ralink,mtd-eeprom = <&uboot 0x40000>;
138 };
139
140 &otg {
141 status = "okay";
142 };