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