30264dc0510c86a7867c7a39305dc2aa66341789
[oweals/openwrt.git] / target / linux / lantiq / dts / EASY88388.dts
1 /dts-v1/;
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include "falcon.dtsi"
5 #include "falcon-sflash-16M.dtsi"
6
7 / {
8         model = "EASY88388 - Lantiq Falcon FTTDP8 Reference Board";
9         compatible = "lantiq,falcon-easy88388", "lantiq,falcon";
10
11         chosen {
12                 bootargs-append = "console=ttyLTQ0,115200 init=/etc/preinit";
13         };
14
15         aliases {
16                 spi0 = &ebu_cs0;
17         };
18
19         memory@0 {
20                 device_type = "memory";
21                 reg = <0x0 0x4000000>;  // 64M at 0x0
22         };
23
24         gpio-keys {
25                 compatible = "gpio-keys";
26                 reset {
27                         label = "reset";
28                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
29                         linux,code = <0x198>;
30                 };
31         };
32
33         pinctrl {
34                 led_pins: led-pins {
35                         lantiq,pins = "io34", "io35", "io36", "io37", "io38", 
36                                         "io39", "io40", "io41";
37                         lantiq,function = "gpio";
38                 };
39         };
40
41         easy88388-leds {
42                 compatible = "gpio-leds";
43                 pinctrl-names = "default";
44                 pinctrl-0 = <&led_pins &bootled_pins>;
45
46                 GPON {
47                         label = "easy88388:green:gpon";
48                         gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
49                         default-state = "off";
50                 };
51                 TEST {
52                         label = "easy88388:green:test";
53                         gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
54                         default-state = "off";
55                 };
56                 STATUS {
57                         label = "easy88388:green:status";
58                         gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
59                         default-state = "off";
60                 };
61                 ERROR {
62                         label = "easy88388:red:error";
63                         gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
64                         default-state = "off";
65                 };
66
67                 DSL1 {
68                         label = "easy88388:dsl:1";
69                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
70                         default-state = "off";
71                 };
72                 DSL2 {
73                         label = "easy88388:dsl:2";
74                         gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
75                         default-state = "off";
76                 };
77                 DSL3 {
78                         label = "easy88388:dsl:3";
79                         gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
80                         default-state = "off";
81                 };
82                 DSL4 {
83                         label = "easy88388:dsl:4";
84                         gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
85                         default-state = "off";
86                 };
87                 DSL5 {
88                         label = "easy88388:dsl:5";
89                         gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
90                         default-state = "off";
91                 };
92                 DSL6 {
93                         label = "easy88388:dsl:6";
94                         gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
95                         default-state = "off";
96                 };
97                 DSL7 {
98                         label = "easy88388:dsl:7";
99                         gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
100                         default-state = "off";
101                 };
102                 DSL8 {
103                         label = "easy88388:dsl:8";
104                         gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
105                         default-state = "off";
106                 };
107
108         };
109 };
110