ath79: add support for Qxwlan E600G v2 / E600GAC v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_engenius_ecb1750.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "engenius,ecb1750", "qca,qca9558";
10 model = "EnGenius ECB1750";
11
12 aliases {
13 led-boot = &led_power_orange;
14 led-failsafe = &led_power_orange;
15 led-running = &led_power_orange;
16 led-upgrade = &led_power_orange;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_power_orange: power_orange {
23 label = "orange:power";
24 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
25 default-state = "on";
26 };
27
28 wlan2g {
29 label = "blue:wlan2g";
30 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
31 linux,default-trigger = "phy1tpt";
32 };
33
34 wlan5g {
35 label = "blue:wlan5g";
36 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
38 };
39
40 lan {
41 label = "blue:lan";
42 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
43 };
44 };
45
46 keys {
47 compatible = "gpio-keys";
48
49 reset {
50 label = "reset";
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
53 };
54 };
55 };
56
57 &pcie0 {
58 status = "okay";
59 };
60
61 &uart {
62 status = "okay";
63 };
64
65 &spi {
66 status = "okay";
67
68 num-cs = <1>;
69
70 flash@0 {
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <25000000>;
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 uboot: partition@0 {
81 label = "u-boot";
82 reg = <0x000000 0x040000>;
83 read-only;
84 };
85
86 partition@40000 {
87 label = "u-boot-env";
88 reg = <0x040000 0x010000>;
89 };
90
91 partition@50000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x050000 0xf50000>;
95 };
96
97 partition@fa0000 {
98 label = "userconfig";
99 reg = <0xfa0000 0x050000>;
100 read-only;
101 };
102
103 art: partition@ff0000 {
104 label = "art";
105 reg = <0xff0000 0x010000>;
106 read-only;
107 };
108 };
109 };
110 };
111
112 &wmac {
113 status = "okay";
114
115 qca,no-eeprom;
116 };
117
118 &mdio0 {
119 status = "okay";
120
121 phy5: ethernet-phy@5 {
122 reg = <5>;
123 eee-broken-100tx;
124 eee-broken-1000t;
125 };
126 };
127
128 &eth0 {
129 status = "okay";
130
131 pll-data = <0x9a000000 0x80000101 0x80001313>;
132
133 phy-handle = <&phy5>;
134 phy-mode = "rgmii";
135
136 gmac-config {
137 device = <&gmac>;
138 rgmii-gmac0 = <1>;
139 rxd-delay = <3>;
140 rxdv-delay = <3>;
141 };
142 };