ath79: Remove all memory nodes defined in dts
[openwrt/staging/blogic.git] / target / linux / ath79 / dts / ar9132_tl-wr1043nd-v1.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9132.dtsi"
8
9 / {
10 compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
11 model = "TP-Link TL-WR1043ND Version 1";
12
13 aliases {
14 led-status = &system;
15 };
16
17 extosc: ref {
18 compatible = "fixed-clock";
19 #clock-cells = <0>;
20 clock-frequency = <40000000>;
21 };
22
23 keys {
24 compatible = "gpio-keys";
25 #address-cells = <1>;
26 #size-cells = <0>;
27
28 button0 {
29 label = "reset";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
33 };
34
35 button1 {
36 label = "qss";
37 linux,code = <KEY_WPS_BUTTON>;
38 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
39 debounce-interval = <60>;
40 };
41 };
42
43 leds {
44 compatible = "gpio-leds";
45 usb {
46 label = "tp-link:green:usb";
47 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
48 default-state = "off";
49 trigger-sources = <&hub_port>;
50 linux,default-trigger = "usbport";
51 };
52
53 system: system {
54 label = "tp-link:green:system";
55 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
56 linux,default-trigger = "heartbeat";
57 };
58
59 qss {
60 label = "tp-link:green:qss";
61 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
62 };
63
64 wlan {
65 label = "tp-link:green:wlan";
66 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
67 default-state = "off";
68 linux,default-trigger = "phy0tpt";
69 };
70 };
71
72 rtl8366rb {
73 compatible = "realtek,rtl8366rb";
74 gpio-sda = <&gpio 18 GPIO_ACTIVE_HIGH>;
75 gpio-sck = <&gpio 19 GPIO_ACTIVE_HIGH>;
76
77 resets = <&rst 8>;
78 reset-names = "switch";
79
80 mdio-bus {
81 status = "okay";
82
83 phy0: ethernet-phy@0 {
84 reg = <0>;
85 };
86 };
87 };
88
89 };
90
91 &uart {
92 status = "okay";
93 };
94
95 &pll {
96 clocks = <&extosc>;
97 };
98
99 &usb {
100 status = "okay";
101
102 hub_port: port@1 {
103 reg = <1>;
104 #trigger-source-cells = <0>;
105 };
106 };
107
108 &usb_phy {
109 status = "okay";
110 };
111
112 &spi {
113 status = "okay";
114 num-cs = <1>;
115
116 flash@0 {
117 #address-cells = <1>;
118 #size-cells = <1>;
119 compatible = "jedec,spi-nor";
120 reg = <0>;
121 spi-max-frequency = <25000000>;
122
123 partitions {
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 uboot: partition@0 {
129 label = "u-boot";
130 reg = <0x000000 0x020000>;
131 read-only;
132 };
133
134 partition@20000 {
135 label = "firmware";
136 reg = <0x020000 0x7D0000>;
137 };
138
139 art: partition@7F0000 {
140 label = "art";
141 reg = <0x7F0000 0x010000>;
142 read-only;
143 };
144 };
145 };
146 };
147
148 &eth0 {
149 status = "okay";
150
151 phy-mode = "rgmii";
152 mtd-mac-address = <&uboot 0x1fc00>;
153
154 resets = <&rst 9>;
155 reset-names = "mac";
156
157 phy-handle = <&phy0>;
158 fixed-link {
159 speed = <1000>;
160 full-duplex;
161 };
162 };
163
164 &wmac {
165 status = "okay";
166 mtd-cal-data = <&art 0x1000>;
167 mtd-mac-address = <&uboot 0x1fc00>;
168 };