ee46cd79e70fd522e1b98aa528027f4e68706cf3
[openwrt/staging/aparcar.git] / target / linux / ath79 / dts / qca9557_engenius_ecb1200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "engenius,ecb1200", "qca,qca9557";
10 model = "EnGenius ECB1200";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 label = "reset";
24 debounce-interval = <60>;
25 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 led_power: power {
34 label = "amber:power";
35 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
36 default-state = "on";
37 };
38
39 wifi2g {
40 label = "blue:wifi2g";
41 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1tpt";
43 };
44
45 wifi5g {
46 label = "blue:wifi5g";
47 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
49 };
50 };
51 };
52
53 &uart {
54 status = "okay";
55 };
56
57 &spi {
58 status = "okay";
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <40000000>;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x000000 0x040000>;
73 read-only;
74 };
75
76 partition@40000 {
77 label = "u-boot-env";
78 reg = <0x040000 0x010000>;
79 };
80
81 partition@50000 {
82 compatible = "denx,uimage";
83 label = "firmware";
84 reg = <0x050000 0xf50000>;
85 };
86
87 partition@fa0000 {
88 label = "userconfig";
89 reg = <0xfa0000 0x050000>;
90 read-only;
91 };
92
93 partition@ff0000 {
94 label = "art";
95 reg = <0xff0000 0x010000>;
96 read-only;
97 };
98 };
99 };
100 };
101
102 &mdio0 {
103 status = "okay";
104
105 phy5: ethernet-phy@5 {
106 reg = <5>;
107 eee-broken-100tx;
108 eee-broken-1000t;
109 };
110 };
111
112 &eth0 {
113 status = "okay";
114
115 phy-handle = <&phy5>;
116 phy-mode = "rgmii-id";
117
118 pll-data = <0x82000000 0x80000101 0x80001313>;
119
120 gmac-config {
121 device = <&gmac>;
122 rgmii-enabled = <1>;
123 };
124 };
125
126 &pcie0 {
127 status = "okay";
128
129 wifi@0,0,0 {
130 compatible = "qcom,ath10k";
131 reg = <0x0 0 0 0 0>;
132 qca,no-eeprom;
133 };
134 };
135
136 &wmac {
137 status = "okay";
138
139 qca,no-eeprom;
140 };