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