brcm63xx: switch to hardware led controllers
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / ct-6373.dts
1 /dts-v1/;
2
3 #include "bcm6358.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Comtrend CT-6373";
9 compatible = "comtrend,ct-6373", "brcm,bcm6358";
10
11 chosen {
12 bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13 };
14
15 gpio-keys-polled {
16 compatible = "gpio-keys-polled";
17 #address-cells = <1>;
18 #size-cells = <0>;
19 poll-interval = <20>;
20 debounce-interval = <60>;
21
22 reset {
23 label = "reset";
24 gpios = <&pinctrl 35 1>;
25 linux,code = <KEY_RESTART>;
26 };
27 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31
32 power_green {
33 label = "CT6373-1:green:power";
34 gpios = <&pinctrl 0 0>;
35 default-state = "on";
36 };
37 usb_green {
38 label = "CT6373-1:green:usb";
39 gpios = <&pinctrl 3 1>;
40 };
41 wlan_green {
42 label = "CT6373-1:green:wlan";
43 gpios = <&pinctrl 9 1>;
44 };
45 };
46 };
47
48 &leds {
49 status = "ok";
50
51 pinctrl-names = "default";
52 pinctrl-0 = <&pinctrl_serial_led>;
53
54 led@0 {
55 reg = <0>;
56 active-low;
57 label = "CT6373-1:green:adsl";
58 };
59
60 led@1 {
61 reg = <1>;
62 active-low;
63 label = "CT6373-1:green:line";
64 };
65
66 led@2 {
67 reg = <2>;
68 active-low;
69 label = "CT6373-1:green:fxs1";
70 };
71
72 led@3 {
73 reg = <3>;
74 active-low;
75 label = "CT6373-1:green:fxs2";
76 };
77 };
78
79 &pflash {
80 status = "ok";
81
82 linux,part-probe = "bcm63xxpart";
83
84 cfe@0 {
85 label = "CFE";
86 reg = <0x000000 0x010000>;
87 read-only;
88 };
89
90 linux@10000 {
91 label = "linux";
92 reg = <0x010000 0x7e0000>;
93 };
94
95 nvram@7f0000 {
96 label = "nvram";
97 reg = <0x7f0000 0x010000>;
98 };
99 };