47e4fec1424dfc9ce86d13c2d4992f7c9b8f8b17
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9558_engenius_eap1750h.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,eap1750h", "qca,qca9558";
10 model = "EnGenius EAP1750H";
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 wifi2g {
41 label = "blue:wifi2g";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
44 };
45
46 wifi5g {
47 label = "green:wifi5g";
48 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy0tpt";
50 };
51
52 wps {
53 label = "blue:wps";
54 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
55 };
56 };
57 };
58
59 &partitions {
60 partition@ff0000 {
61 label = "art";
62 reg = <0xff0000 0x010000>;
63 read-only;
64
65 nvmem-layout {
66 compatible = "fixed-layout";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 macaddr_art_0: macaddr@0 {
71 reg = <0x0 0x6>;
72 };
73
74 calibration_art_1000: calibration@1000 {
75 reg = <0x1000 0x440>;
76 };
77
78 calibration_art_5000: calibration@5000 {
79 reg = <0x5000 0x844>;
80 };
81 };
82 };
83 };
84
85 &mdio0 {
86 status = "okay";
87
88 phy5: ethernet-phy@5 {
89 reg = <5>;
90 eee-broken-100tx;
91 eee-broken-1000t;
92 };
93 };
94
95 &eth0 {
96 status = "okay";
97
98 nvmem-cells = <&macaddr_art_0>;
99 nvmem-cell-names = "mac-address";
100
101 phy-handle = <&phy5>;
102 phy-mode = "rgmii-id";
103
104 pll-data = <0x82000000 0x80000101 0x80001313>;
105 };
106
107 &wmac {
108 status = "okay";
109
110 nvmem-cells = <&macaddr_art_0>, <&calibration_art_1000>;
111 nvmem-cell-names = "mac-address", "calibration";
112 mac-address-increment = <1>;
113 };
114
115 &ath10k_0 {
116 status = "okay";
117
118 nvmem-cells = <&macaddr_art_0>, <&calibration_art_5000>;
119 nvmem-cell-names = "mac-address", "calibration";
120 mac-address-increment = <2>;
121 };
122
123 &pcie0 {
124 status = "okay";
125 };