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