ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_qxwlan_e600g.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 label-mac-device = &eth0;
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 };
16
17 keys: keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26 };
27
28 leds: leds {
29 compatible = "gpio-leds";
30
31 led_system: system {
32 label = "blue:system";
33 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
34 default-state = "on";
35 };
36
37 wan {
38 label = "green:wan";
39 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
40 };
41
42 lan {
43 label = "green:lan";
44 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
45 };
46 };
47 };
48
49 &pcie0 {
50 status = "okay";
51 };
52
53 &spi {
54 status = "okay";
55
56 flash@0 {
57 compatible = "jedec,spi-nor";
58 reg = <0>;
59 spi-max-frequency = <25000000>;
60
61 partitions: partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x000000 0x040000>;
69 read-only;
70 };
71
72 partition@40000 {
73 label = "u-boot-env";
74 reg = <0x040000 0x010000>;
75 read-only;
76 };
77
78 pridata: partition@50000 {
79 label = "pri-data";
80 reg = <0x050000 0x010000>;
81 read-only;
82 };
83
84 art: partition@60000 {
85 label = "art";
86 reg = <0x060000 0x010000>;
87 read-only;
88 };
89 };
90 };
91 };
92
93 &eth0 {
94 status = "okay";
95
96 phy-handle = <&swphy4>;
97
98 mtd-mac-address = <&pridata 0x400>;
99 mtd-mac-address-increment = <1>;
100 };
101
102 &eth1 {
103 mtd-mac-address = <&pridata 0x400>;
104 };
105
106 &uart {
107 status = "okay";
108 };
109
110 &wmac {
111 status = "okay";
112
113 mtd-cal-data = <&art 0x1000>;
114 };