ixp4xx: Update to 4.9 kernel, refresh patches. Remove kmod-spi-gpio-old usage.
[oweals/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 = "console=ttyLTQ0,115200";
12         };
13
14         aliases {
15                 led-boot = &power;
16                 led-failsafe = &power;
17                 led-running = &power;
18
19                 led-dsl = &dsl;
20                 led-internet = &online_green;
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                         status = "okay";
64                         pinctrl-names = "default";
65                         pinctrl-0 = <&pins_spi_default>;
66
67                         m25p80@1 {
68                                 #address-cells = <1>;
69                                 #size-cells = <1>;
70                                 compatible = "jedec,spi-nor";
71                                 reg = <1 0>;
72                                 spi-max-frequency = <5000000>;
73
74                                 partitions {
75                                         compatible = "fixed-partitions";
76                                         #address-cells = <1>;
77                                         #size-cells = <1>;
78
79                                         partition@0 {
80                                                 reg = <0x0 0x20000>;
81                                                 label = "SPI (RO) U-Boot Image";
82                                                 read-only;
83                                         };
84
85                                         partition@20000 {
86                                                 reg = <0x20000 0x10000>;
87                                                 label = "ENV_MAC";
88                                                 read-only;
89                                         };
90
91                                         partition@30000 {
92                                                 reg = <0x30000 0x10000>;
93                                                 label = "DPF";
94                                                 read-only;
95                                         };
96
97                                         partition@40000 {
98                                                 reg = <0x40000 0x10000>;
99                                                 label = "NVRAM";
100                                                 read-only;
101                                         };
102
103                                         partition@500000 {
104                                                 reg = <0x50000 0x003a0000>;
105                                                 label = "kernel";
106                                         };
107                                 };
108                         };
109                 };
110
111                 ifxhcd@E101000 {
112                         status = "okay";
113                 };
114         };
115
116         gpio-keys-polled {
117                 compatible = "gpio-keys-polled";
118                 #address-cells = <1>;
119                 #size-cells = <0>;
120                 poll-interval = <100>;
121
122                 reset {
123                         label = "reset";
124                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
125                         linux,code = <KEY_RESTART>;
126                 };
127                 rfkill {
128                         label = "rfkill";
129                         gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
130                         linux,code = <KEY_RFKILL>;
131                 };
132                 wps {
133                         label = "wps";
134                         gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
135                         linux,code = <KEY_WPS_BUTTON>;
136                 };
137         };
138
139         gpio-leds {
140                 compatible = "gpio-leds";
141                 dsl: dsl {
142                         label = "dgn1000b:green:dsl";
143                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
144                         default-state = "on";
145                 };
146                 online_green: online {
147                         label = "dgn1000b:green:online";
148                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
149                         default-state = "on";
150                 };
151                 online2 {
152                         label = "dgn1000b:red:online";
153                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
154                         default-state = "on";
155                 };
156                 wps {
157                         label = "dgn1000b:green:wps";
158                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
159                         default-state = "on";
160                 };
161                 power: power {
162                         label = "dgn1000b:green:power";
163                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
164                         default-state = "keep";
165                 };
166                 /*
167                         power red is missing
168                 */
169         };
170 };