ath79: add firmware partition compatible for OCEDO
[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";
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 label = "firmware";
105 reg = <0x090000 0xf60000>;
106 };
107
108 art: partition@ff0000 {
109 label = "art";
110 reg = <0xff0000 0x010000>;
111 read-only;
112 };
113 };
114 };
115 };
116
117 &mdio0 {
118 status = "okay";
119
120 phy-mask = <0>;
121
122 phy0: ethernet-phy@0 {
123 reg = <0>;
124 phy-mode = "sgmii";
125
126 qca,ar8327-initvals = <
127 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
128 0x10 0x81000080 /* POWER_ON_STRIP */
129 0x50 0xcc35cc35 /* LED_CTRL0 */
130 0x54 0xcb37cb37 /* LED_CTRL1 */
131 0x58 0x00000000 /* LED_CTRL2 */
132 0x5c 0x00f3cf00 /* LED_CTRL3 */
133 0x7c 0x0000007e /* PORT0_STATUS */
134 >;
135 };
136 };
137
138 &eth0 {
139 status = "okay";
140
141 pll-data = <0x03000101 0x00000101 0x00001919>;
142
143 phy-mode = "sgmii";
144 phy-handle = <&phy0>;
145 };
146
147 &wmac {
148 status = "okay";
149 mtd-cal-data = <&art 0x1000>;
150 };