15286b76704a037acaafb2f97aac5cb88a48bbc5
[oweals/openwrt.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 "qca955x.dtsi"
8
9 / {
10         compatible = "engenius,ecb1750", "qca,qca9558";
11         model = "EnGenius ECB1750";
12
13         chosen {
14                 bootargs = "console=ttyS0,115200n8";
15         };
16
17         aliases {
18                 led-boot = &led_power_orange;
19                 led-failsafe = &led_power_orange;
20                 led-running = &led_power_orange;
21                 led-upgrade = &led_power_orange;
22         };
23
24         leds {
25                 compatible = "gpio-leds";
26
27                 led_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
73         num-cs = <1>;
74
75         flash@0 {
76                 compatible = "jedec,spi-nor";
77                 reg = <0>;
78                 spi-max-frequency = <25000000>;
79
80                 partitions {
81                         compatible = "fixed-partitions";
82                         #address-cells = <1>;
83                         #size-cells = <1>;
84
85                         uboot: partition@0 {
86                                 label = "u-boot";
87                                 reg = <0x000000 0x040000>;
88                                 read-only;
89                         };
90
91                         partition@40000 {
92                                 label = "u-boot-env";
93                                 reg = <0x040000 0x010000>;
94                         };
95
96                         partition@50000 {
97                                 compatible = "denx,uimage";
98                                 label = "firmware";
99                                 reg = <0x050000 0xf50000>;
100                         };
101
102                         partition@fa0000 {
103                                 label = "userconfig";
104                                 reg = <0xfa0000 0x050000>;
105                                 read-only;
106                         };
107
108                         art: partition@ff0000 {
109                                 label = "art";
110                                 reg = <0xff0000 0x010000>;
111                                 read-only;
112                         };
113                 };
114         };
115 };
116
117 &wmac {
118         status = "okay";
119
120         qca,no-eeprom;
121 };
122
123 &mdio0 {
124         status = "okay";
125
126         phy5: ethernet-phy@5 {
127                 reg = <5>;
128                 eee-broken-100tx;
129                 eee-broken-1000t;
130         };
131 };
132
133 &eth0 {
134         status = "okay";
135
136         pll-data = <0x9a000000 0x80000101 0x80001313>;
137
138         phy-handle = <&phy5>;
139         phy-mode = "rgmii";
140
141         gmac-config {
142                 device = <&gmac>;
143                 rgmii-gmac0 = <1>;
144                 rxd-delay = <3>;
145                 rxdv-delay = <3>;
146         };
147 };