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