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