lantiq: fix dts error in LED color/function conversion
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / falcon_lantiq_easy88388.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 FTTDP8 Reference Board";
10 compatible = "lantiq,easy88388", "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: led-pins {
32 lantiq,pins = "io34", "io35", "io36", "io37", "io38",
33 "io39", "io40", "io41";
34 lantiq,function = "gpio";
35 };
36 };
37
38 leds {
39 compatible = "gpio-leds";
40 pinctrl-names = "default";
41 pinctrl-0 = <&led_pins &bootled_pins>;
42
43 GPON {
44 label = "green:gpon";
45 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
46 };
47 TEST {
48 label = "green:test";
49 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
50 };
51 STATUS {
52 function = LED_FUNCTION_STATUS;
53 color = <LED_COLOR_ID_GREEN>;
54 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
55 };
56 ERROR {
57 label = "red:error";
58 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
59 };
60
61 DSL1 {
62 label = "dsl:1";
63 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
64 };
65 DSL2 {
66 label = "dsl:2";
67 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
68 };
69 DSL3 {
70 label = "dsl:3";
71 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
72 };
73 DSL4 {
74 label = "dsl:4";
75 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
76 };
77 DSL5 {
78 label = "dsl:5";
79 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
80 };
81 DSL6 {
82 label = "dsl:6";
83 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
84 };
85 DSL7 {
86 label = "dsl:7";
87 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
88 };
89 DSL8 {
90 label = "dsl:8";
91 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
92 };
93 };
94 };
95