gemini: In-flight ethernet patches
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9557_engenius_enstationac-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x_senao_loader.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 compatible = "engenius,enstationac-v1", "qca,qca9557";
11 model = "EnGenius EnStationAC v1";
12
13 aliases {
14 label-mac-device = &eth0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 linux,code = <KEY_RESTART>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 function = LED_FUNCTION_POWER;
37 color = <LED_COLOR_ID_AMBER>;
38 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
39 default-state = "on";
40 };
41
42 wlan {
43 function = LED_FUNCTION_WLAN;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48
49 rssilow {
50 label = "red:rssilow";
51 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
52 };
53
54 rssimedium {
55 label = "amber:rssimedium";
56 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
57 };
58
59 rssihigh {
60 label = "green:rssihigh";
61 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
62 };
63 };
64 };
65
66 &partitions {
67 art: partition@ff0000 {
68 label = "art";
69 reg = <0xff0000 0x010000>;
70 read-only;
71
72 nvmem-layout {
73 compatible = "fixed-layout";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 macaddr_art_0: macaddr@0 {
78 compatible = "mac-base";
79 reg = <0x0 0x6>;
80 #nvmem-cell-cells = <1>;
81 };
82
83 cal_art_5000: calibration@5000 {
84 reg = <0x5000 0x844>;
85 };
86 };
87 };
88 };
89
90 &mdio0 {
91 status = "okay";
92
93 phy1: ethernet-phy@1 {
94 reg = <1>;
95 eee-broken-100tx;
96 eee-broken-1000t;
97 };
98
99 phy2: ethernet-phy@2 {
100 reg = <2>;
101 eee-broken-100tx;
102 eee-broken-1000t;
103 at803x-override-sgmii-link-check;
104 };
105 };
106
107 &eth0 {
108 status = "okay";
109
110 nvmem-cells = <&macaddr_art_0 0>;
111 nvmem-cell-names = "mac-address";
112
113 phy-handle = <&phy1>;
114 phy-mode = "rgmii-id";
115
116 pll-data = <0x82000000 0x80000101 0x80001313>;
117 };
118
119 &eth1 {
120 status = "okay";
121
122 nvmem-cells = <&macaddr_art_0 1>;
123 nvmem-cell-names = "mac-address";
124
125 phy-handle = <&phy2>;
126
127 pll-data = <0x03000000 0x00000101 0x00001313>;
128
129 qca955x-sgmii-fixup;
130 };
131
132 &pcie0 {
133 status = "okay";
134
135 wifi@0,0 {
136 compatible = "qcom,ath10k";
137 reg = <0x0000 0 0 0 0>;
138 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 2>;
139 nvmem-cell-names = "calibration", "mac-address";
140 };
141 };