68415ca35cbe2bd2b7e53ed22af3f8be4590c68c
[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_green;
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 asc {
32 lantiq,groups = "asc";
33 lantiq,function = "asc";
34 };
35 keys_in {
36 lantiq,pins = "io0",/* "io25", */"io29";
37 lantiq,pull = <2>;
38 lantiq,open-drain = <1>;
39 };
40 };
41 pins_spi_default: pins_spi_default {
42 spi_in {
43 lantiq,groups = "spi_di";
44 lantiq,function = "spi";
45 };
46 spi_out {
47 lantiq,groups = "spi_do", "spi_clk",
48 "spi_cs1";
49 lantiq,function = "spi";
50 lantiq,output = <1>;
51 };
52 };
53 };
54
55 etop@E180000 {
56 phy-mode = "mii";
57 mac-address = [ 00 11 22 33 44 55 ];
58 };
59
60 spi@E100800 {
61 pinctrl-names = "default";
62 pinctrl-0 = <&pins_spi_default>;
63
64 m25p80@1 {
65 #address-cells = <1>;
66 #size-cells = <1>;
67 compatible = "jedec,spi-nor";
68 reg = <1 0>;
69 spi-max-frequency = <5000000>;
70
71 partition@0 {
72 reg = <0x0 0x20000>;
73 label = "SPI (RO) U-Boot Image";
74 read-only;
75 };
76
77 partition@20000 {
78 reg = <0x20000 0x10000>;
79 label = "ENV_MAC";
80 read-only;
81 };
82
83 partition@30000 {
84 reg = <0x30000 0x10000>;
85 label = "DPF";
86 read-only;
87 };
88
89 partition@40000 {
90 reg = <0x40000 0x10000>;
91 label = "NVRAM";
92 read-only;
93 };
94
95 partition@500000 {
96 reg = <0x50000 0x003a0000>;
97 label = "kernel";
98 };
99 };
100 };
101 ifxhcd@E101000 {
102 status = "okay";
103 };
104 };
105
106 gpio-keys-polled {
107 compatible = "gpio-keys-polled";
108 #address-cells = <1>;
109 #size-cells = <0>;
110 poll-interval = <100>;
111
112 reset {
113 label = "reset";
114 gpios = <&gpio 0 1>;
115 linux,code = <0x198>;
116 };
117 rfkill {
118 label = "rfkill";
119 gpios = <&gpio 25 1>;
120 linux,code = <0xf7>;
121 };
122 wps {
123 label = "wps";
124 gpios = <&gpio 29 1>;
125 linux,code = <0x211>;
126 };
127 };
128
129 gpio-leds {
130 compatible = "gpio-leds";
131 dsl: dsl {
132 label = "dgn1000b:green:dsl";
133 gpios = <&gpio 1 1>;
134 default-state = "on";
135 };
136 online_green: online {
137 label = "dgn1000b:green:online";
138 gpios = <&gpio 2 1>;
139 default-state = "on";
140 };
141 online2 {
142 label = "dgn1000b:red:online";
143 gpios = <&gpio 3 1>;
144 default-state = "on";
145 };
146 wps {
147 label = "dgn1000b:green:wps";
148 gpios = <&gpio 4 1>;
149 default-state = "on";
150 };
151 power: power {
152 label = "dgn1000b:green:power";
153 gpios = <&gpio 13 1>;
154 default-state = "keep";
155 };
156 /*
157 power red is missing
158 */
159 };
160 };