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