ath79: Remove all memory nodes defined in dts
[openwrt/staging/blogic.git] / target / linux / ath79 / dts / ar9331_etactica-eg200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9331.dtsi"
8
9 / {
10 model = "eTactica EG200";
11 compatible = "etactica,eg200", "rme-eg200";
12
13 aliases {
14 serial0 = &uart;
15 };
16
17 keys {
18 compatible = "gpio-keys-polled";
19 #address-cells = <1>;
20 #size-cells = <0>;
21 poll-interval = <50>;
22
23 restore {
24 linux,code = <KEY_WPS_BUTTON>;
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 modbus {
33 label = "eg200:red:modbus";
34 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
35 default-state = "off";
36 };
37
38 etactica {
39 label = "eg200:red:etactica";
40 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
41 default-state = "off";
42 };
43
44 eth0 {
45 label = "eg200:red:eth0";
46 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
47 default-state = "off";
48 };
49
50 wlan {
51 label = "eg200:red:wlan";
52 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
53 default-state = "off";
54 linux,default-trigger = "phy0tpt";
55 };
56 };
57 };
58
59 &uart {
60 status = "okay";
61 };
62
63 &gpio {
64 status = "okay";
65 };
66
67 &usb {
68 dr_mode = "host";
69 status = "okay";
70 };
71
72 &usb_phy {
73 status = "okay";
74 };
75
76 &mdio0 {
77 status = "okay";
78 phy4: ethernet-phy@4 {
79 reg = <4>;
80 phy-mode = "mii";
81 };
82 };
83
84 &eth0 {
85 status = "okay";
86 mtd-mac-address = <&art 0x0>;
87 phy-handle = <&phy4>;
88
89 gmac-config {
90 device = <&gmac>;
91 switch-phy-addr-swap = <1>;
92 switch-phy-swap = <1>;
93 };
94 };
95
96 &spi {
97 num-chipselects = <1>;
98 status = "okay";
99
100 flash@0 {
101 #address-cells = <1>;
102 #size-cells = <1>;
103 compatible = "jedec,spi-nor";
104 spi-max-frequency = <50000000>;
105 reg = <0>;
106
107 partitions {
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
110 #size-cells = <1>;
111
112 uboot@0 {
113 reg = <0x0 0x40000>;
114 read-only;
115 };
116
117 uboot-env@40000 {
118 reg = <0x40000 0x10000>;
119 read-only;
120 };
121
122 firmware@50000 {
123 reg = <0x50000 0xfa0000>;
124 };
125
126 art: art@ff0000 {
127 reg = <0xff0000 0x10000>;
128 read-only;
129 };
130 };
131 };
132 };
133
134 &wmac {
135 status = "okay";
136 mtd-cal-data = <&art 0x1000>;
137 mtd-mac-address = <&art 0x1002>;
138 };