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