ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_tplink_cpe.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &wmac;
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 linux,code = <KEY_RESTART>;
18 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
19 debounce-interval = <60>;
20 };
21 };
22 };
23
24 &ref {
25 clock-frequency = <40000000>;
26 };
27
28 &uart {
29 status = "okay";
30 };
31
32 &spi {
33 status = "okay";
34
35 flash@0 {
36 compatible = "jedec,spi-nor";
37 reg = <0>;
38 spi-max-frequency = <25000000>;
39
40 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 uboot: partition@0 {
46 label = "u-boot";
47 reg = <0x000000 0x020000>;
48 read-only;
49 };
50
51 partition@20000 {
52 label = "partition-table";
53 reg = <0x020000 0x010000>;
54 read-only;
55 };
56
57 info: partition@30000 {
58 label = "info";
59 reg = <0x030000 0x010000>;
60 read-only;
61 };
62
63 partition@40000 {
64 label = "firmware";
65 reg = <0x040000 0x780000>;
66
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 label = "kernel";
73 reg = <0x000000 0x300000>;
74 };
75
76 partition@300000 {
77 label = "rootfs";
78 reg = <0x300000 0x480000>;
79 };
80 };
81
82 partition@7c0000 {
83 label = "config";
84 reg = <0x7c0000 0x030000>;
85 read-only;
86 };
87
88 art: partition@7f0000 {
89 label = "art";
90 reg = <0x7f0000 0x010000>;
91 read-only;
92 };
93 };
94 };
95 };
96
97 &wmac {
98 status = "okay";
99
100 mtd-cal-data = <&art 0x1000>;
101 mtd-mac-address = <&info 0x8>;
102 };
103
104 &eth0 {
105 status = "okay";
106
107 phy-handle = <&swphy4>;
108
109 mtd-mac-address = <&info 0x8>;
110 };
111
112 &eth1 {
113 status = "okay";
114 };
115
116 &gpio {
117 gpio_ext_lna0 {
118 gpio-hog;
119 gpios = <18 GPIO_ACTIVE_HIGH>;
120 output-high;
121 line-name = "tp-link:ext:lna0";
122 };
123
124 gpio_ext_lna1 {
125 gpio-hog;
126 gpios = <19 GPIO_ACTIVE_HIGH>;
127 output-high;
128 line-name = "tp-link:ext:lna1";
129 };
130 };