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