ath79: Remove all memory nodes defined in dts
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_tl-wr703n_tl-mr10u.dtsi
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 aliases {
11 serial0 = &uart;
12 led-status = &led_system;
13 };
14
15 gpio-keys-polled {
16 compatible = "gpio-keys-polled";
17 #address-cells = <1>;
18 #size-cells = <0>;
19 poll-interval = <20>;
20
21 reset {
22 label = "reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31
32 led_system: system {
33 label = "tl-wr703n:blue:system";
34 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 reg_usb_vbus: reg_usb_vbus {
39 compatible = "regulator-fixed";
40 regulator-name = "usb_vbus";
41 regulator-min-microvolt = <5000000>;
42 regulator-max-microvolt = <5000000>;
43 enable-active-high;
44 };
45
46 };
47
48 &spi {
49 status = "okay";
50 num-cs = <1>;
51
52 flash@0 {
53 #address-cells = <1>;
54 #size-cells = <1>;
55 compatible = "jedec,spi-nor";
56 reg = <0>;
57 spi-max-frequency = <25000000>;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 uboot: partition@0 {
65 reg = <0x0 0x20000>;
66 label = "u-boot";
67 read-only;
68 };
69
70 firmware: partition@20000 {
71 reg = <0x20000 0x3d0000>;
72 label = "firmware";
73 };
74
75 art: partition@3f0000 {
76 reg = <0x3f0000 0x10000>;
77 label = "art";
78 read-only;
79 };
80 };
81 };
82 };
83
84 &eth0 {
85 status = "okay";
86
87 phy-handle = <&phy4>;
88
89 mtd-mac-address = <&uboot 0x1fc00>;
90
91 gmac-config {
92 device = <&gmac>;
93
94 switch-phy-addr-swap = <0>;
95 switch-phy-swap = <0>;
96 };
97 };
98
99 &gpio {
100 status = "okay";
101 };
102
103 &mdio0 {
104 status = "okay";
105
106 phy4: ethernet-phy@4 {
107 reg = <4>;
108 phy-mode = "mii";
109 };
110 };
111
112 &uart {
113 status = "okay";
114 };
115
116 &usb {
117 dr_mode = "host";
118 vbus-supply = <&reg_usb_vbus>;
119 status = "okay";
120 };
121
122 &usb_phy {
123 status = "okay";
124 };
125
126 &wmac {
127 status = "okay";
128 mtd-cal-data = <&art 0x1000>;
129 mtd-mac-address = <&uboot 0x1fc00>;
130 };