94a10d45f79f691cbb7fc547b949d909193ec403
[openwrt/staging/ynezz.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 = "phicomm:blue:status";
24 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
25 };
26
27 led_status_red: status_red {
28 label = "phicomm:red:status";
29 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
30 };
31
32 status_yellow {
33 label = "phicomm: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 num-cs = <1>;
59
60 status = "okay";
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <25000000>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "u-boot";
74 reg = <0x000000 0x30000>;
75 read-only;
76 };
77
78 partition@30000 {
79 label = "config";
80 reg = <0x030000 0x10000>;
81 read-only;
82 };
83
84 partition@40000 {
85 label = "permanent";
86 reg = <0x040000 0x50000>;
87 read-only;
88 };
89
90 partition@90000 {
91 compatible = "denx,uimage";
92 label = "firmware";
93 reg = <0x090000 0xf60000>;
94 };
95
96 art: partition@ff0000 {
97 label = "art";
98 reg = <0xff0000 0x010000>;
99 read-only;
100 };
101 };
102 };
103 };
104
105 &mdio0 {
106 status = "okay";
107
108 phy-mask = <0>;
109
110 phy0: ethernet-phy@0 {
111 reg = <0>;
112 phy-mode = "sgmii";
113
114 qca,ar8327-initvals = <
115 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
116 0x10 0x81000080 /* POWER_ON_STRAP */
117 0x50 0xcc35cc35 /* LED_CTRL0 */
118 0x54 0xcb37cb37 /* LED_CTRL1 */
119 0x58 0x00000000 /* LED_CTRL2 */
120 0x5c 0x00f3cf00 /* LED_CTRL3 */
121 0x7c 0x0000007e /* PORT0_STATUS */
122 >;
123 };
124 };
125
126 &eth0 {
127 status = "okay";
128
129 pll-data = <0x03000101 0x00000101 0x00001919>;
130
131 phy-mode = "sgmii";
132 phy-handle = <&phy0>;
133 };
134
135 &wmac {
136 status = "okay";
137 mtd-cal-data = <&art 0x1000>;
138 };