lantiq: fix dts error in LED color/function conversion
[openwrt/staging/jow.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / falcon_lantiq_easy98020.dts
1 #include <dt-bindings/leds/common.h>
2
3 #include "falcon.dtsi"
4 #include "falcon_sflash-16m.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7
8 / {
9 model = "Lantiq Falcon Reference Board";
10 compatible = "lantiq,easy98020", "lantiq,falcon";
11
12 aliases {
13 spi0 = &ebu_cs0;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x4000000>; // 64M at 0x0
19 };
20
21 keys {
22 compatible = "gpio-keys";
23 reset {
24 label = "reset";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26 linux,code = <0x198>;
27 };
28 };
29
30 pinctrl {
31 led_pins: phy-led-pins {
32 lantiq,pins = "io42", "io41", "io38", "io37";
33 lantiq,function = "gpio";
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39 pinctrl-names = "default";
40 pinctrl-0 = <&bootled_pins>, <&led_pins>;
41
42 GPON {
43 label = "green:gpon";
44 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
45 default-state = "keep";
46 };
47 TEST {
48 label = "green:test";
49 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
50 default-state = "keep";
51 };
52 ETH {
53 function = LED_FUNCTION_STATUS;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
56 default-state = "keep";
57 };
58 VOICE {
59 label = "green:voice";
60 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
61 default-state = "keep";
62 };
63 VIDEO {
64 label = "green:video";
65 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
66 default-state = "keep";
67 };
68
69 GE0_ACT {
70 label = "ge0_act";
71 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
72 };
73 GE0_LINK {
74 label = "ge0_link";
75 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
76 };
77 GE1_ACT {
78 label = "ge1_act";
79 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
80 };
81 GE1_LINK {
82 label = "ge1_link";
83 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
84 };
85 };
86 };