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