5da50ff6d9dd9e1b25804403a7cea51d14774174
[openwrt/staging/wigyori.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 mtd-mac-address = <&art 0x0>;
92
93 phy-handle = <&phy1>;
94 phy-mode = "rgmii-id";
95
96 pll-data = <0x82000000 0x80000101 0x80001313>;
97 };
98
99 &eth1 {
100 status = "okay";
101
102 mtd-mac-address = <&art 0x0>;
103 mtd-mac-address-increment = <1>;
104
105 phy-handle = <&phy2>;
106
107 pll-data = <0x03000000 0x00000101 0x00001313>;
108
109 qca955x-sgmii-fixup;
110 };