203287092c164fb58446d1b18e180e482809502b
[openwrt/openwrt.git] / target / linux / lantiq / dts / EASY98000-base.dtsi
1
2 #include <dt-bindings/interrupt-controller/irq.h>
3 #include <dt-bindings/gpio/gpio.h>
4
5 / {
6 compatible = "lantiq,falcon-easy98000", "lantiq,falcon";
7
8 chosen {
9 bootargs-append = "console=ttyLTQ0,115200 init=/etc/preinit";
10 };
11
12 memory@0 {
13 device_type = "memory";
14 reg = <0x0 0x4000000>;
15 };
16
17 easy98000-leds {
18 compatible = "gpio-leds";
19 pinctrl-names = "default";
20 pinctrl-0 = <&bootled_pins>;
21
22 LED_0 {
23 label = "easy98000:green:gpon";
24 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
25 default-state = "keep";
26 };
27 LED_1 {
28 label = "easy98000:red:gpon";
29 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
30 default-state = "keep";
31 };
32 LED_2 {
33 label = "easy98000:green:gpon_tx";
34 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
35 default-state = "keep";
36 };
37 LED_3 {
38 label = "easy98000:green:gpon_rx";
39 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
40 default-state = "keep";
41 };
42 LED_4 {
43 label = "easy98000:green:voice";
44 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
45 default-state = "keep";
46 };
47 LED_5 {
48 label = "easy98000:green:status";
49 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
50 default-state = "keep";
51 };
52 };
53 };
54
55 &ebu_cs1 {
56 eth0: ethernet@0000000 {
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@1 {
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 };
114