0c64f9952290f40fdd7ca3b144c485bebc9988f7
[openwrt/staging/hauke.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 nvmem-layout {
70 compatible = "fixed-layout";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 macaddr_art_0: macaddr@0 {
75 reg = <0x0 0x6>;
76 };
77 };
78 };
79 };
80
81 &mdio0 {
82 status = "okay";
83
84 phy1: ethernet-phy@1 {
85 reg = <1>;
86 eee-broken-100tx;
87 eee-broken-1000t;
88 };
89
90 phy2: ethernet-phy@2 {
91 reg = <2>;
92 eee-broken-100tx;
93 eee-broken-1000t;
94 at803x-override-sgmii-link-check;
95 };
96 };
97
98 &eth0 {
99 status = "okay";
100
101 nvmem-cells = <&macaddr_art_0>;
102 nvmem-cell-names = "mac-address";
103
104 phy-handle = <&phy1>;
105 phy-mode = "rgmii-id";
106
107 pll-data = <0x82000000 0x80000101 0x80001313>;
108 };
109
110 &eth1 {
111 status = "okay";
112
113 nvmem-cells = <&macaddr_art_0>;
114 nvmem-cell-names = "mac-address";
115 mac-address-increment = <1>;
116
117 phy-handle = <&phy2>;
118
119 pll-data = <0x03000000 0x00000101 0x00001313>;
120
121 qca955x-sgmii-fixup;
122 };
123
124 &pcie0 {
125 status = "okay";
126 };