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