ath79: drop num-cs for SPI controller
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9563_tplink_eap2x5-1port.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &eth0;
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "Reset button";
18 linux,code = <KEY_RESTART>;
19 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
20 debounce-interval = <60>;
21 };
22 };
23 };
24
25 &pcie {
26 status = "okay";
27 };
28
29 &uart {
30 status = "okay";
31 };
32
33 &spi {
34 status = "okay";
35
36 flash@0 {
37 compatible = "jedec,spi-nor";
38 reg = <0>;
39 spi-max-frequency = <25000000>;
40
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "u-boot";
48 reg = <0x000000 0x020000>;
49 read-only;
50 };
51
52 partition@20000 {
53 label = "partition-table";
54 reg = <0x020000 0x010000>;
55 read-only;
56 };
57
58 info: partition@30000 {
59 label = "info";
60 reg = <0x030000 0x010000>;
61 read-only;
62 };
63
64 partition@40000 {
65 compatible = "openwrt,elf";
66 label = "firmware";
67 reg = <0x040000 0xd80000>;
68 };
69
70 partition@dc0000 {
71 label = "config";
72 reg = <0xdc0000 0x030000>;
73 read-only;
74 };
75
76 /* df0000-f30000 undefined in vendor firmware */
77
78 partition@f30000 {
79 label = "log";
80 reg = <0xf30000 0x0c0000>;
81 read-only;
82 };
83
84 art: partition@ff0000 {
85 label = "art";
86 reg = <0xff0000 0x010000>;
87 read-only;
88 };
89 };
90 };
91 };
92
93 &pinmux {
94 mdio_pins: mdio_pins {
95 /* GPIO 10 as MDIO(0x20), GPIO 8 as MDC(0x21) */
96 pinctrl-single,bits = <0x8 0x00200021 0x00ff00ff>;
97 };
98 };
99
100 &mdio0 {
101 status = "okay";
102
103 pinctrl-names = "default";
104 pinctrl-0 = <&mdio_pins>;
105
106 phy-mask = <0x10>;
107
108 phy4: ethernet-phy@4 {
109 reg = <4>;
110 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
111 };
112 };
113
114 &eth0 {
115 status = "okay";
116
117 phy-handle = <&phy4>;
118 phy-mode = "sgmii";
119
120 mtd-mac-address = <&info 0x8>;
121
122 qca956x-serdes-fixup;
123
124 gmac-config {
125 device = <&gmac>;
126 };
127 };
128
129 &wmac {
130 status = "okay";
131
132 mtd-cal-data = <&art 0x1000>;
133 mtd-mac-address = <&info 0x8>;
134 };