12740b9bdf7d3594e2fcdaad6725233b4d766fce
[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
8 / {
9 compatible = "engenius,enstationac-v1", "qca,qca9557";
10 model = "EnGenius EnStationAC v1";
11
12 aliases {
13 label-mac-device = &eth0;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 linux,code = <KEY_RESTART>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_power: power {
35 label = "amber:power";
36 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
37 default-state = "on";
38 };
39
40 wlan {
41 label = "green:wlan";
42 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45
46 rssilow {
47 label = "red:rssilow";
48 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
49 };
50
51 rssimedium {
52 label = "amber:rssimedium";
53 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
54 };
55
56 rssihigh {
57 label = "green:rssihigh";
58 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &partitions {
64 art: partition@ff0000 {
65 label = "art";
66 reg = <0xff0000 0x010000>;
67 read-only;
68 };
69 };
70
71 &mdio0 {
72 status = "okay";
73
74 phy1: ethernet-phy@1 {
75 reg = <1>;
76 eee-broken-100tx;
77 eee-broken-1000t;
78 };
79
80 phy2: ethernet-phy@2 {
81 reg = <2>;
82 eee-broken-100tx;
83 eee-broken-1000t;
84 at803x-override-sgmii-link-check;
85 };
86 };
87
88 &eth0 {
89 status = "okay";
90
91 nvmem-cells = <&macaddr_art_0>;
92 nvmem-cell-names = "mac-address";
93
94 phy-handle = <&phy1>;
95 phy-mode = "rgmii-id";
96
97 pll-data = <0x82000000 0x80000101 0x80001313>;
98 };
99
100 &eth1 {
101 status = "okay";
102
103 nvmem-cells = <&macaddr_art_0>;
104 nvmem-cell-names = "mac-address";
105 mac-address-increment = <1>;
106
107 phy-handle = <&phy2>;
108
109 pll-data = <0x03000000 0x00000101 0x00001313>;
110
111 qca955x-sgmii-fixup;
112 };
113
114 &pcie0 {
115 status = "okay";
116 };
117
118 &art {
119 compatible = "nvmem-cells";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 macaddr_art_0: macaddr@0 {
124 reg = <0x0 0x6>;
125 };
126 };