brcm63xx: switch to new partition layout specification
[oweals/openwrt.git] / target / linux / brcm63xx / dts / hg556a-a.dts
1 /dts-v1/;
2
3 #include "bcm6358.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Huawei EchoLife HG556a (version A)";
9         compatible = "huawei,hg556a-a", "brcm,bcm6358";
10
11         chosen {
12                 bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13                 stdout-path = "serial0:115200n8";
14         };
15
16         gpio-keys-polled {
17                 compatible = "gpio-keys-polled";
18                 #address-cells = <1>;
19                 #size-cells = <0>;
20                 poll-interval = <20>;
21                 debounce-interval = <60>;
22
23                 help {
24                         label = "help";
25                         gpios = <&pinctrl 8 1>;
26                         linux,code = <KEY_HELP>;
27                 };
28                 wlan {
29                         label = "wlan";
30                         gpios = <&pinctrl 9 1>;
31                         linux,code = <KEY_WLAN>;
32                 };
33                 restart {
34                         label = "restart";
35                         gpios = <&pinctrl 10 1>;
36                         linux,code = <KEY_RESTART>;
37                 };
38                 reset {
39                         label = "reset";
40                         gpios = <&pinctrl 11 1>;
41                         linux,code = <KEY_CONFIG>;
42                 };
43         };
44
45         gpio-leds {
46                 compatible = "gpio-leds";
47
48                 message_red {
49                         label = "HW556:red:message";
50                         gpios = <&pinctrl 0 1>;
51                 };
52                 hspa_red {
53                         label = "HW556:red:hspa";
54                         gpios = <&pinctrl 1 1>;
55                 };
56                 dsl_red {
57                         label = "HW556:red:dsl";
58                         gpios = <&pinctrl 2 1>;
59                 };
60                 power_red {
61                         label = "HW556:red:power";
62                         gpios = <&pinctrl 3 1>;
63                         default-state = "on";
64                 };
65                 all_red {
66                         label = "HW556:red:all";
67                         gpios = <&pinctrl 6 1>;
68                         default-state = "on";
69                 };
70                 lan1_green {
71                         label = "HW556:green:lan1";
72                         gpios = <&pinctrl 12 1>;
73                 };
74                 lan1_red {
75                         label = "HW556:red:lan1";
76                         gpios = <&pinctrl 13 1>;
77                 };
78                 lan2_green {
79                         label = "HW556:green:lan2";
80                         gpios = <&pinctrl 15 1>;
81                 };
82                 lan2_red {
83                         label = "HW556:red:lan2";
84                         gpios = <&pinctrl 22 1>;
85                 };
86                 lan3_green {
87                         label = "HW556:green:lan3";
88                         gpios = <&pinctrl 23 1>;
89                 };
90                 lan3_red {
91                         label = "HW556:red:lan3";
92                         gpios = <&pinctrl 26 1>;
93                 };
94                 lan4_green {
95                         label = "HW556:green:lan4";
96                         gpios = <&pinctrl 27 1>;
97                 };
98                 lan4_red {
99                         label = "HW556:red:lan4";
100                         gpios = <&pinctrl 28 1>;
101                 };
102         };
103 };
104
105 &pflash {
106         status = "ok";
107
108         linux,part-probe = "bcm63xxpart";
109
110         partitions {
111                 compatible = "fixed-partitions";
112                 #address-cells = <1>;
113                 #size-cells = <1>;
114
115                 cfe@0 {
116                         label = "CFE";
117                         reg = <0x000000 0x020000>;
118                         read-only;
119                 };
120
121                 linux@20000 {
122                         label = "linux";
123                         reg = <0x020000 0xec0000>;
124                         compatible = "brcm,bcm963xx-imagetag";
125                 };
126
127                 cal_data@ee0000 {
128                         label = "cal_data";
129                         reg = <0xee0000 0x100000>;
130                         read-only;
131                 };
132
133                 nvram@fe0000 {
134                         label = "nvram";
135                         reg = <0xfe0000 0x020000>;
136                 };
137         };
138 };
139
140 &uart0 {
141         status = "ok";
142 };