brcm63xx: switch to new partition layout specification
[oweals/openwrt.git] / target / linux / brcm63xx / dts / hg553.dts
1 /dts-v1/;
2
3 #include "bcm6358.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Huawei EchoLife HG553";
9         compatible = "huawei,hg553", "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                 rfkill {
24                         label = "rfkill";
25                         gpios = <&pinctrl 9 1>;
26                         linux,code = <KEY_RFKILL>;
27                 };
28
29                 reset {
30                         label = "reset";
31                         gpios = <&pinctrl 37 1>;
32                         linux,code = <KEY_RESTART>;
33                 };
34         };
35
36         gpio-leds {
37                 compatible = "gpio-leds";
38
39                 power_green {
40                         label = "HW553:blue:power";
41                         gpios = <&pinctrl 4 1>;
42                         default-state = "on";
43                 };
44                 power_red {
45                         label = "HW553:red:power";
46                         gpios = <&pinctrl 5 1>;
47                 };
48                 hspa_red {
49                         label = "HW553:red:hspa";
50                         gpios = <&pinctrl 12 1>;
51                 };
52                 hspa_blue {
53                         label = "HW553:blue:hspa";
54                         gpios = <&pinctrl 13 1>;
55                 };
56                 lan_red {
57                         label = "HW553:red:lan";
58                         gpios = <&pinctrl 22 1>;
59                 };
60                 lan_blue {
61                         label = "HW553:blue:lan";
62                         gpios = <&pinctrl 23 1>;
63                 };
64                 wifi_red {
65                         label = "HW553:red:wifi";
66                         gpios = <&pinctrl 25 1>;
67                 };
68                 dsl_red {
69                         label = "HW553:red:adsl";
70                         gpios = <&pinctrl 34 1>;
71                 };
72                 dsl_blue {
73                         label = "HW553:blue:adsl";
74                         gpios = <&pinctrl 35 1>;
75                 };
76         };
77 };
78
79 &pflash {
80         status = "ok";
81
82         linux,part-probe = "bcm63xxpart";
83
84         partitions {
85                 compatible = "fixed-partitions";
86                 #address-cells = <1>;
87                 #size-cells = <1>;
88
89                 cfe@0 {
90                         label = "CFE";
91                         reg = <0x000000 0x020000>;
92                         read-only;
93                 };
94
95                 linux@20000 {
96                         label = "linux";
97                         reg = <0x020000 0xfc0000>;
98                         compatible = "brcm,bcm963xx-imagetag";
99                 };
100
101                 nvram@fe0000 {
102                         label = "nvram";
103                         reg = <0xfe0000 0x020000>;
104                 };
105         };
106 };
107
108 &uart0 {
109         status = "ok";
110 };