lantiq: add Falcon support
[openwrt/staging/wigyori.git] / target / linux / lantiq / dts / EASY98021.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 = "EASY98021 - Lantiq Falcon HGU Reference Board";
10 compatible = "lantiq,falcon-easy98021", "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 gpio-mmc {
35 /* Place-holder for SIM-Card connector,
36 to list the used GPIOs, no official binding */
37 compatible = "gpio-mmc";
38 gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>,
39 <&gpio0 3 GPIO_ACTIVE_HIGH>,
40 <&gpio0 2 GPIO_ACTIVE_HIGH>,
41 <0>; /* no CS */
42 gpio-names = "di", "do", "clk", "cs";
43 reset-gpio = <&gpio3 24 GPIO_ACTIVE_HIGH>;
44 };
45
46 pinctrl {
47 led_pins: led-pins {
48 lantiq,pins = "io11", "io14", "io36", "io37", "io38";
49 lantiq,function = "gpio";
50 };
51 };
52
53 easy98021-leds {
54 compatible = "gpio-leds";
55 pinctrl-names = "default";
56 pinctrl-0 = <&led_pins &bootled_pins>;
57
58 GPON {
59 label = "easy98021:green:gpon";
60 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
61 default-state = "keep";
62 };
63 TEST {
64 label = "easy98021:red:test";
65 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
66 default-state = "keep";
67 };
68 ETH {
69 label = "easy98021:green:status";
70 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
71 default-state = "keep";
72 };
73 VOICE {
74 label = "easy98021:green:voice";
75 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
76 default-state = "keep";
77 };
78 SIMCARD {
79 label = "easy98021:green:simcard";
80 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
81 default-state = "keep";
82 };
83 };
84 };
85