lantiq: fix DGN1000B boot status leds
[openwrt/staging/blogic.git] / target / linux / lantiq / dts / DGN1000B.dts
1 /dts-v1/;
2
3 #include "amazonse.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "DGN1000B - Netgear DGN1000B";
9
10 aliases {
11 led-boot = &power;
12 led-failsafe = &power;
13 led-running = &power;
14
15 led-dsl = &dsl;
16 led-internet = &online_green;
17 };
18
19 memory@0 {
20 reg = <0x0 0x1000000>;
21 };
22
23 fpi@10000000 {
24 gpio: pinmux@E100B10 {
25 pinctrl-names = "default";
26 pinctrl-0 = <&state_default>;
27
28 state_default: pinmux {
29 asc {
30 lantiq,groups = "asc";
31 lantiq,function = "asc";
32 };
33 keys_in {
34 lantiq,pins = "io0",/* "io25", */"io29";
35 lantiq,pull = <2>;
36 lantiq,open-drain = <1>;
37 };
38 };
39 pins_spi_default: pins_spi_default {
40 spi_in {
41 lantiq,groups = "spi_di";
42 lantiq,function = "spi";
43 };
44 spi_out {
45 lantiq,groups = "spi_do", "spi_clk",
46 "spi_cs1";
47 lantiq,function = "spi";
48 lantiq,output = <1>;
49 };
50 };
51 };
52
53 etop@E180000 {
54 phy-mode = "mii";
55 mac-address = [ 00 11 22 33 44 55 ];
56 };
57
58 spi@E100800 {
59 pinctrl-names = "default";
60 pinctrl-0 = <&pins_spi_default>;
61
62 m25p80@1 {
63 #address-cells = <1>;
64 #size-cells = <1>;
65 compatible = "jedec,spi-nor";
66 reg = <1 0>;
67 spi-max-frequency = <5000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 reg = <0x0 0x20000>;
76 label = "SPI (RO) U-Boot Image";
77 read-only;
78 };
79
80 partition@20000 {
81 reg = <0x20000 0x10000>;
82 label = "ENV_MAC";
83 read-only;
84 };
85
86 partition@30000 {
87 reg = <0x30000 0x10000>;
88 label = "DPF";
89 read-only;
90 };
91
92 partition@40000 {
93 reg = <0x40000 0x10000>;
94 label = "NVRAM";
95 read-only;
96 };
97
98 partition@500000 {
99 reg = <0x50000 0x003a0000>;
100 label = "kernel";
101 };
102 };
103 };
104 };
105
106 ifxhcd@E101000 {
107 status = "okay";
108 };
109 };
110
111 gpio-keys-polled {
112 compatible = "gpio-keys-polled";
113 #address-cells = <1>;
114 #size-cells = <0>;
115 poll-interval = <100>;
116
117 reset {
118 label = "reset";
119 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
120 linux,code = <KEY_RESTART>;
121 };
122 rfkill {
123 label = "rfkill";
124 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
125 linux,code = <KEY_RFKILL>;
126 };
127 wps {
128 label = "wps";
129 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_WPS_BUTTON>;
131 };
132 };
133
134 gpio-leds {
135 compatible = "gpio-leds";
136 dsl: dsl {
137 label = "dgn1000b:green:dsl";
138 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
139 default-state = "on";
140 };
141 online_green: online {
142 label = "dgn1000b:green:online";
143 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
144 default-state = "on";
145 };
146 online2 {
147 label = "dgn1000b:red:online";
148 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
149 default-state = "on";
150 };
151 wps {
152 label = "dgn1000b:green:wps";
153 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
154 default-state = "on";
155 };
156 power: power {
157 label = "dgn1000b:green:power";
158 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
159 default-state = "keep";
160 };
161 /*
162 power red is missing
163 */
164 };
165 };