ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca955x_engenius_ecb1xxx.dtsi
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 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 debounce-interval = <60>;
23 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_power: power {
32 function = LED_FUNCTION_POWER;
33 color = <LED_COLOR_ID_AMBER>;
34 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
35 default-state = "on";
36 };
37
38 wifi2g {
39 label = "blue:wifi2g";
40 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy1tpt";
42 };
43
44 wifi5g {
45 label = "blue:wifi5g";
46 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy0tpt";
48 };
49 };
50 };
51
52 &spi {
53 status = "okay";
54
55 flash@0 {
56 compatible = "jedec,spi-nor";
57 reg = <0>;
58 spi-max-frequency = <40000000>;
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 partition@0 {
66 label = "u-boot";
67 reg = <0x000000 0x040000>;
68 read-only;
69 };
70
71 partition@40000 {
72 label = "u-boot-env";
73 reg = <0x040000 0x010000>;
74 };
75
76 partition@50000 {
77 compatible = "denx,uimage";
78 label = "firmware";
79 reg = <0x050000 0xf50000>;
80 };
81
82 partition@fa0000 {
83 label = "userconfig";
84 reg = <0xfa0000 0x050000>;
85 read-only;
86 };
87
88 partition@ff0000 {
89 label = "art";
90 reg = <0xff0000 0x010000>;
91 read-only;
92
93 nvmem-layout {
94 compatible = "fixed-layout";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 cal_art_5000: calibration@5000 {
99 reg = <0x5000 0x844>;
100 };
101 };
102 };
103 };
104 };
105 };
106
107 &mdio0 {
108 status = "okay";
109
110 phy5: ethernet-phy@5 {
111 reg = <5>;
112 eee-broken-100tx;
113 eee-broken-1000t;
114 };
115 };
116
117 &eth0 {
118 status = "okay";
119
120 phy-handle = <&phy5>;
121 phy-mode = "rgmii-id";
122
123 pll-data = <0x82000000 0x80000101 0x80001313>;
124
125 gmac-config {
126 device = <&gmac>;
127 rgmii-enabled = <1>;
128 };
129 };
130
131 &pcie0 {
132 status = "okay";
133
134 wifi@0,0 {
135 compatible = "qcom,ath10k";
136 reg = <0x0 0 0 0 0>;
137 nvmem-cells = <&cal_art_5000>;
138 nvmem-cell-names = "calibration";
139 };
140 };
141
142 &wmac {
143 status = "okay";
144
145 qca,no-eeprom;
146 };