bcm63xx: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6348-asmax-ar-1004g.dts
1 #include "bcm6348.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5
6 / {
7 model = "ASMAX AR 1004g";
8 compatible = "asmax,ar-1004g", "brcm,bcm6348";
9
10 aliases {
11 led-boot = &led_power_green;
12 led-failsafe = &led_power_green;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_green;
15 };
16
17 chosen {
18 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
19 stdout-path = "serial0:115200n8";
20 };
21
22 keys {
23 compatible = "gpio-keys-polled";
24 #address-cells = <1>;
25 #size-cells = <0>;
26 poll-interval = <20>;
27
28 reset {
29 label = "reset";
30 gpios = <&pinctrl 33 1>;
31 linux,code = <KEY_RESTART>;
32 debounce-interval = <60>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 led_power_green: power_green {
40 function = LED_FUNCTION_POWER;
41 color = <LED_COLOR_ID_GREEN>;
42 gpios = <&pinctrl 0 1>;
43 default-state = "on";
44 };
45 inet_green {
46 label = "green:inet";
47 gpios = <&pinctrl 3 1>;
48 };
49 power_red {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_RED>;
52 gpios = <&pinctrl 6 1>;
53 };
54 };
55 };
56
57 &pflash {
58 status = "okay";
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 cfe@0 {
66 label = "CFE";
67 reg = <0x000000 0x010000>;
68 read-only;
69 };
70
71 linux@10000 {
72 label = "linux";
73 reg = <0x010000 0x3e0000>;
74 compatible = "brcm,bcm963xx-imagetag";
75 };
76
77 nvram@3f0000 {
78 label = "nvram";
79 reg = <0x3f0000 0x010000>;
80 };
81 };
82 };
83
84 &pinctrl {
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_ext_mii &pinctrl_pci>;
87 };
88
89 &uart0 {
90 status = "okay";
91 };