brcm63xx: CPVA502+: fix LEDs and buttons at DTS
[openwrt/staging/yousong.git] / target / linux / brcm63xx / dts / cpva502plus.dts
1 /dts-v1/;
2
3 #include "bcm6348.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Telsey CPVA502+";
9 compatible = "telsey,cpva502+", "brcm,bcm6348";
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 = <&gpio1 4 1>;
25 linux,code = <KEY_RESTART>;
26 };
27 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31
32 phone_green {
33 label = "CPVA502+:green:phone";
34 gpios = <&gpio0 0 1>;
35 };
36
37 link_amber {
38 label = "CPVA502+:amber:link";
39 gpios = <&gpio0 5 1>;
40 };
41 };
42 };
43
44 &pflash {
45 status = "ok";
46
47 linux,part-probe = "bcm63xxpart";
48
49 cfe@0 {
50 label = "CFE";
51 reg = <0x000000 0x010000>;
52 read-only;
53 };
54
55 linux@10000 {
56 label = "linux";
57 reg = <0x010000 0x3e0000>;
58 };
59
60 nvram@3f0000 {
61 label = "nvram";
62 reg = <0x3f0000 0x010000>;
63 };
64 };