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