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