55343e786a7919f46e8149e5022c9cc514f715c7
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7242_engenius_ecb350-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7242.dtsi"
4 #include "ar724x_senao_loader.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10 compatible = "engenius,ecb350-v1", "qca,ar7242";
11 model = "EnGenius ECB350 v1";
12
13 aliases {
14 label-mac-device = &ath9k;
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 0 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 label = "green:power";
37 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
38 default-state = "on";
39 };
40 };
41
42 ath9k-leds {
43 compatible = "gpio-leds";
44
45 wlan {
46 label = "green:wlan";
47 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
49 };
50 };
51 };
52
53 &mdio0 {
54 status = "okay";
55
56 phy4: ethernet-phy@4 {
57 reg = <4>;
58 eee-broken-100tx;
59 eee-broken-1000t;
60 };
61 };
62
63 &eth0 {
64 status = "okay";
65
66 mtd-mac-address = <&art 0x0>;
67
68 phy-handle = <&phy4>;
69 phy-mode = "rgmii-id";
70
71 pll-data = <0x02000000 0x00000101 0x00001313>;
72 };
73
74 &pcie {
75 status = "okay";
76
77 ath9k: wifi@0,0,0 {
78 compatible = "pci168c,002a";
79 reg = <0x0 0 0 0 0>;
80 mtd-mac-address = <&art 0x0>;
81 mtd-mac-address-increment = <(-1)>;
82 qca,no-eeprom;
83 #gpio-cells = <2>;
84 gpio-controller;
85 };
86 };