lantiq: move partitions into partion table node
[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                                 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                 ifxhcd@E101000 {
108                         status = "okay";
109                 };
110         };
111
112         gpio-keys-polled {
113                 compatible = "gpio-keys-polled";
114                 #address-cells = <1>;
115                 #size-cells = <0>;
116                 poll-interval = <100>;
117
118                 reset {
119                         label = "reset";
120                         gpios = <&gpio 0 1>;
121                         linux,code = <0x198>;
122                 };
123                 rfkill {
124                         label = "rfkill";
125                         gpios = <&gpio 25 1>;
126                         linux,code = <0xf7>;
127                 };
128                 wps {
129                         label = "wps";
130                         gpios = <&gpio 29 1>;
131                         linux,code = <0x211>;
132                 };
133         };
134
135         gpio-leds {
136                 compatible = "gpio-leds";
137                 dsl: dsl {
138                         label = "dgn1000b:green:dsl";
139                         gpios = <&gpio 1 1>;
140                         default-state = "on";
141                 };
142                 online_green: online {
143                         label = "dgn1000b:green:online";
144                         gpios = <&gpio 2 1>;
145                         default-state = "on";
146                 };
147                 online2 {
148                         label = "dgn1000b:red:online";
149                         gpios = <&gpio 3 1>;
150                         default-state = "on";
151                 };
152                 wps {
153                         label = "dgn1000b:green:wps";
154                         gpios = <&gpio 4 1>;
155                         default-state = "on";
156                 };
157                 power: power {
158                         label = "dgn1000b:green:power";
159                         gpios = <&gpio 13 1>;
160                         default-state = "keep";
161                 };
162                 /*
163                         power red is missing
164                 */
165         };
166 };