ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wr802n.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = &wmac;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_system: system {
21 label = "green:system";
22 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 reset {
30 label = "Reset button";
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 };
34 };
35 };
36
37 &uart {
38 status = "okay";
39 };
40
41 &spi {
42 status = "okay";
43
44 flash@0 {
45 compatible = "jedec,spi-nor";
46 reg = <0>;
47 spi-max-frequency = <50000000>;
48
49 partitions {
50 compatible = "fixed-partitions";
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 uboot: partition@0 {
55 label = "u-boot";
56 reg = <0x000000 0x020000>;
57 read-only;
58 };
59
60 partition@20000 {
61 label = "firmware";
62 reg = <0x020000 0x3d0000>;
63 compatible = "tplink,firmware";
64 };
65
66 art: partition@3f0000 {
67 label = "art";
68 reg = <0x3f0000 0x010000>;
69 read-only;
70 };
71 };
72 };
73 };
74
75 &eth0 {
76 status = "okay";
77
78 phy-handle = <&swphy4>;
79
80 mtd-mac-address = <&uboot 0x1fc00>;
81 mtd-mac-address-increment = <1>;
82 };
83
84 &eth1 {
85 compatible = "syscon", "simple-mfd";
86 };
87
88 &wmac {
89 status = "okay";
90
91 mtd-cal-data = <&art 0x1000>;
92 mtd-mac-address = <&uboot 0x1fc00>;
93 };