bcm63xx: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6362-sagem-fast-2504n.dts
1 #include "bcm6362.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5
6 / {
7 model = "Sagem F@st 2504N";
8 compatible = "sagem,fast-2504n", "brcm,bcm6362";
9
10 aliases {
11 led-boot = &led_ok_green;
12 led-failsafe = &led_ok_green;
13 led-running = &led_ok_green;
14 led-upgrade = &led_ok_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 24 1>;
31 linux,code = <KEY_RESTART>;
32 debounce-interval = <60>;
33 };
34
35 wps {
36 label = "wps";
37 gpios = <&pinctrl 25 1>;
38 linux,code = <KEY_WPS_BUTTON>;
39 debounce-interval = <60>;
40 };
41 };
42
43 leds {
44 compatible = "gpio-leds";
45
46 power_orange {
47 function = LED_FUNCTION_POWER;
48 color = <LED_COLOR_ID_ORANGE>;
49 gpios = <&pinctrl 2 1>;
50 };
51 power_green {
52 function = LED_FUNCTION_POWER;
53 color = <LED_COLOR_ID_GREEN>;
54 gpios = <&pinctrl 10 1>;
55 default-state = "on";
56 };
57 inet_red {
58 label = "red:internet";
59 gpios = <&pinctrl 26 1>;
60 };
61 led_ok_green: ok_green {
62 label = "green:ok";
63 gpios = <&pinctrl 28 1>;
64 };
65 ok_orange {
66 label = "orange:ok";
67 gpios = <&pinctrl 29 1>;
68 };
69 wlan_orangee {
70 function = LED_FUNCTION_WLAN;
71 color = <LED_COLOR_ID_ORANGE>;
72 gpios = <&pinctrl 30 1>;
73 };
74 };
75 };
76
77 &hsspi {
78 status = "okay";
79
80 flash@0 {
81 compatible = "jedec,spi-nor";
82 spi-max-frequency = <20000000>;
83 spi-tx-bus-width = <2>;
84 spi-rx-bus-width = <2>;
85 reg = <0>;
86
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partitions {
91 compatible = "fixed-partitions";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 cfe@0 {
96 reg = <0x000000 0x010000>;
97 label = "cfe";
98 read-only;
99 };
100
101 linux@10000 {
102 reg = <0x010000 0x7e0000>;
103 label = "linux";
104 compatible = "brcm,bcm963xx-imagetag";
105 };
106
107 nvram@7f0000 {
108 reg = <0x7f0000 0x010000>;
109 label = "nvram";
110 };
111 };
112 };
113 };
114
115 &uart0 {
116 status = "okay";
117 };