lantiq: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / falcon_lantiq_easy98021.dts
1 #include "falcon.dtsi"
2 #include "falcon_sflash-16m.dtsi"
3
4 #include <dt-bindings/gpio/gpio.h>
5
6 / {
7 model = "Lantiq Falcon HGU Reference Board";
8 compatible = "lantiq,easy98021", "lantiq,easy98020", "lantiq,falcon";
9
10 aliases {
11 spi0 = &ebu_cs0;
12 };
13
14 memory@0 {
15 device_type = "memory";
16 reg = <0x0 0x4000000>; // 64M at 0x0
17 };
18
19 keys {
20 compatible = "gpio-keys";
21 reset {
22 label = "reset";
23 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
24 linux,code = <0x198>;
25 };
26 };
27
28 gpio-mmc {
29 /* Place-holder for SIM-Card connector,
30 to list the used GPIOs, no official binding */
31 compatible = "gpio-mmc";
32 gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>,
33 <&gpio0 3 GPIO_ACTIVE_HIGH>,
34 <&gpio0 2 GPIO_ACTIVE_HIGH>,
35 <0>; /* no CS */
36 gpio-names = "di", "do", "clk", "cs";
37 reset-gpio = <&gpio3 24 GPIO_ACTIVE_HIGH>;
38 };
39
40 pinctrl {
41 led_pins: led-pins {
42 lantiq,pins = "io11", "io14", "io36", "io37", "io38";
43 lantiq,function = "gpio";
44 };
45 };
46
47 leds {
48 compatible = "gpio-leds";
49 pinctrl-names = "default";
50 pinctrl-0 = <&led_pins &bootled_pins>;
51
52 GPON {
53 label = "green:gpon";
54 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
55 default-state = "keep";
56 };
57 TEST {
58 label = "red:test";
59 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
60 default-state = "keep";
61 };
62 ETH {
63 function = LED_FUNCTION_STATUS;
64 color = <LED_COLOR_ID_GREEN>;
65 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
66 default-state = "keep";
67 };
68 VOICE {
69 label = "green:voice";
70 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
71 default-state = "keep";
72 };
73 SIMCARD {
74 label = "green:simcard";
75 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
76 default-state = "keep";
77 };
78 };
79 };
80 #include <dt-bindings/leds/common.h>
81
82