lantiq: add Falcon support
[openwrt/staging/stintel.git] / target / linux / lantiq / dts / EASY98020.dts
1 /dts-v1/;
2
3 #include <dt-bindings/gpio/gpio.h>
4
5 #include "falcon.dtsi"
6 #include "falcon-sflash-16M.dtsi"
7
8 / {
9 model = "EASY98020 - Lantiq Falcon Reference Board";
10 compatible = "lantiq,falcon-easy98020", "lantiq,falcon";
11
12 chosen {
13 bootargs-append = "console=ttyLTQ0,115200 init=/etc/preinit";
14 };
15
16 aliases {
17 spi0 = &ebu_cs0;
18 };
19
20 memory@0 {
21 device_type = "memory";
22 reg = <0x0 0x4000000>; // 64M at 0x0
23 };
24
25 gpio-keys {
26 compatible = "gpio-keys";
27 reset {
28 label = "reset";
29 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
30 linux,code = <0x198>;
31 };
32 };
33
34 pinctrl {
35 led_pins: phy-led-pins {
36 lantiq,pins = "io42", "io41", "io38", "io37";
37 lantiq,function = "gpio";
38 };
39 };
40
41 easy98020-leds {
42 compatible = "gpio-leds";
43 pinctrl-names = "default";
44 pinctrl-0 = <&bootled_pins>;
45
46 GPON {
47 label = "easy98020:green:gpon";
48 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
49 default-state = "keep";
50 };
51 TEST {
52 label = "easy98020:green:test";
53 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
54 default-state = "keep";
55 };
56 ETH {
57 label = "easy98020:green:status";
58 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
59 default-state = "keep";
60 };
61 VOICE {
62 label = "easy98020:green:voice";
63 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
64 default-state = "keep";
65 };
66 VIDEO {
67 label = "easy98020:green:video";
68 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
69 default-state = "keep";
70 };
71 };
72
73 easy98020-phy-leds {
74 compatible = "gpio-leds";
75 pinctrl-names = "default";
76 pinctrl-0 = <&led_pins>;
77
78 GE0_ACT {
79 label = "easy98020:ge0_act";
80 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
81 default-state = "off";
82 };
83 GE0_LINK {
84 label = "easy98020:ge0_link";
85 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
86 default-state = "off";
87 };
88 GE1_ACT {
89 label = "easy98020:ge1_act";
90 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
91 default-state = "off";
92 };
93 GE1_LINK {
94 label = "easy98020:ge1_link";
95 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
96 default-state = "off";
97 };
98 };
99 };