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