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