fbdf984423f7fa069edda8e8a30a78572fc219e6
[oweals/openwrt.git] / target / linux / brcm63xx / dts / hg655b.dts
1 /dts-v1/;
2
3 #include "bcm6368.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Huawei HG655b";
9         compatible = "huawei,hg655b", "brcm,bcm6368";
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                 wps {
24                         label = "wps";
25                         gpios = <&pinctrl 12 1>;
26                         linux,code = <KEY_WPS_BUTTON>;
27                 };
28                 wlan {
29                         label = "wlan";
30                         gpios = <&pinctrl 23 1>;
31                         linux,code = <KEY_WLAN>;
32                 };
33                 reset {
34                         label = "reset";
35                         gpios = <&pinctrl 34 1>;
36                         linux,code = <KEY_RESTART>;
37                 };
38         };
39
40         gpio-leds {
41                 compatible = "gpio-leds";
42
43                 dsl_green {
44                         label = "HW65x:green:dsl";
45                         gpios = <&pinctrl 2 1>;
46                 };
47                 internet_green {
48                         label = "HW65x:green:internet";
49                         gpios = <&pinctrl 5 1>;
50                 };
51
52                 usb_green {
53                         label = "HW65x:green:usb";
54                         gpios = <&pinctrl 14 1>;
55                 };
56                 power_green {
57                         label = "HW65x:green:power";
58                         gpios = <&pinctrl 22 1>;
59                         default-state = "on";
60                 };
61                 voip_green {
62                         label = "HW65x:green:voip";
63                         gpios = <&pinctrl 25 1>;
64                 };
65                 wps_green {
66                         label = "HW65x:green:wps";
67                         gpios = <&pinctrl 27 1>;
68                 };
69         };
70 };
71
72 &pflash {
73         status = "ok";
74
75         linux,part-probe = "bcm63xxpart";
76
77         partitions {
78                 compatible = "fixed-partitions";
79                 #address-cells = <1>;
80                 #size-cells = <1>;
81
82                 cfe@0 {
83                         label = "CFE";
84                         reg = <0x000000 0x020000>;
85                 };
86
87                 linux@20000 {
88                         label = "linux";
89                         reg = <0x020000 0x770000>;
90                 };
91
92                 board_data@790000 {
93                         label = "board_data";
94                         reg = <0x790000 0x030000>;
95                         compatible = "brcm,bcm963xx-imagetag";
96                 };
97
98                 cal_data@7c0000 {
99                         label = "cal_data";
100                         reg = <0x7c0000 0x020000>;
101                         read-only;
102                 };
103
104                 nvram@7d0000 {
105                         label = "nvram";
106                         reg = <0x7e0000 0x020000>;
107                 };
108         };
109 };
110
111 &pinctrl {
112         pinctrl-names = "default";
113         pinctrl-0 = <&pinctrl_pci &pinctrl_ephy0_led &pinctrl_ephy1_led
114                      &pinctrl_ephy2_led &pinctrl_ephy3_led>;
115 };
116
117 &uart0 {
118         status = "ok";
119 };