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