ath79: drop num-cs for SPI controller
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9563_phicomm_k2t.dts
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 model = "Phicomm K2T";
10 compatible = "phicomm,k2t", "qca,qca9563";
11
12 aliases {
13 led-boot = &led_status_red;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_red;
16 led-upgrade = &led_status_red;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 status_blue {
23 label = "blue:status";
24 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
25 };
26
27 led_status_red: status_red {
28 label = "red:status";
29 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
30 };
31
32 status_yellow {
33 label = "yellow:status";
34 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 reset {
42 linux,code = <KEY_RESTART>;
43 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
45 };
46 };
47 };
48
49 &uart {
50 status = "okay";
51 };
52
53 &pcie {
54 status = "okay";
55 };
56
57 &spi {
58 status = "okay";
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <25000000>;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x000000 0x30000>;
73 read-only;
74 };
75
76 partition@30000 {
77 label = "config";
78 reg = <0x030000 0x10000>;
79 read-only;
80 };
81
82 partition@40000 {
83 label = "permanent";
84 reg = <0x040000 0x50000>;
85 read-only;
86 };
87
88 partition@90000 {
89 compatible = "denx,uimage";
90 label = "firmware";
91 reg = <0x090000 0xf60000>;
92 };
93
94 art: partition@ff0000 {
95 label = "art";
96 reg = <0xff0000 0x010000>;
97 read-only;
98 };
99 };
100 };
101 };
102
103 &mdio0 {
104 status = "okay";
105
106 phy-mask = <0>;
107
108 phy0: ethernet-phy@0 {
109 reg = <0>;
110 phy-mode = "sgmii";
111
112 qca,ar8327-initvals = <
113 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
114 0x10 0x81000080 /* POWER_ON_STRAP */
115 0x50 0xcc35cc35 /* LED_CTRL0 */
116 0x54 0xcb37cb37 /* LED_CTRL1 */
117 0x58 0x00000000 /* LED_CTRL2 */
118 0x5c 0x00f3cf00 /* LED_CTRL3 */
119 0x7c 0x0000007e /* PORT0_STATUS */
120 >;
121 };
122 };
123
124 &eth0 {
125 status = "okay";
126
127 pll-data = <0x03000101 0x00000101 0x00001919>;
128
129 phy-mode = "sgmii";
130 phy-handle = <&phy0>;
131 };
132
133 &wmac {
134 status = "okay";
135 mtd-cal-data = <&art 0x1000>;
136 };