lantiq: fix dts error in LED color/function conversion
[openwrt/staging/robimarko.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / falcon_lantiq_easy98000.dtsi
1 #include <dt-bindings/leds/common.h>
2
3 #include "falcon.dtsi"
4
5 #include <dt-bindings/interrupt-controller/irq.h>
6 #include <dt-bindings/gpio/gpio.h>
7
8 / {
9 compatible = "lantiq,easy98000", "lantiq,falcon";
10
11 memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x4000000>;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18 pinctrl-names = "default";
19 pinctrl-0 = <&bootled_pins>;
20
21 LED_0 {
22 label = "green:gpon";
23 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
24 default-state = "keep";
25 };
26 LED_1 {
27 label = "red:gpon";
28 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
29 default-state = "keep";
30 };
31 LED_2 {
32 label = "green:gpon_tx";
33 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
34 default-state = "keep";
35 };
36 LED_3 {
37 label = "green:gpon_rx";
38 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
39 default-state = "keep";
40 };
41 LED_4 {
42 label = "green:voice";
43 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
44 default-state = "keep";
45 };
46 LED_5 {
47 function = LED_FUNCTION_STATUS;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
50 default-state = "keep";
51 };
52 };
53 };
54
55 &ebu_cs1 {
56 eth0: ethernet@3 {
57 compatible = "davicom,dm9000";
58 device_type = "network";
59 reg = <0x0000003 0x1>, <0x0000001 0x1>;
60 reg-names = "addr", "data";
61 interrupt-parent = <&gpio1>;
62 #interrupt-cells = <2>;
63 interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
64 local-mac-address = [ 00 00 00 00 00 00 ];
65 };
66
67 cpld@3c00000 {
68 compatible = "lantiq,easy98000_addon";
69 reg = <0x3c00000 0x2>;
70 };
71
72 cpld@3c0000c {
73 compatible = "lantiq,easy98000_cpld_led";
74 reg = <0x3c0000c 0x2>, <0x3c00012 0x2>;
75 };
76 };
77
78 /* // enable this for second uart:
79 &serial1 {
80 status = "okay";
81 };*/
82
83 &spi {
84 status = "okay";
85
86 eeprom@2 {
87 compatible = "atmel,at25", "atmel,at25160n";
88 reg = <2>;
89 spi-max-frequency = <1000000>;
90 spi-cpha;
91 spi-cpol;
92
93 pagesize = <32>;
94 size = <2048>;
95 address-width = <16>;
96 };
97 };
98
99 &i2c {
100 status = "okay";
101
102 clock-frequency = <100000>;
103
104 /* eeprom-emulation by OMU */
105 eeprom@50 {
106 compatible = "at,24c02";
107 reg = <0x50>;
108 };
109 eeprom@51 {
110 compatible = "at,24c02";
111 reg = <0x51>;
112 };
113 };