ath79: specify "firmware" partition format for ELECOM WRC-300GHBK2-I
[openwrt/staging/mkresin.git] / target / linux / ath79 / dts / qca9563_elecom_wrc-300ghbk2-i.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 = "ELECOM WRC-300GHBK2-I";
11 compatible = "elecom,wrc-300ghbk2-i", "qca,qca9563";
12
13 chosen {
14 bootargs = "console=ttyS0,115200n8";
15 };
16
17 aliases {
18 led-boot = &power;
19 led-failsafe = &power;
20 led-running = &power;
21 led-upgrade = &power;
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 power: power {
28 label = "wrc-300ghbk2-i:white:power";
29 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
30 default-state = "on";
31 };
32
33 wlan2g {
34 label = "wrc-300ghbk2-i:white:wlan2g";
35 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
36 default-state = "off";
37 linux,default-trigger = "phy0tpt";
38 };
39
40 wps {
41 label = "wrc-300ghbk2-i:red:wps";
42 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
43 default-state = "off";
44 };
45 };
46
47 keys {
48 compatible = "gpio-keys";
49
50 reset {
51 label = "reset";
52 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
54 debounce-interval = <60>;
55 };
56
57 button_wps {
58 label = "wps";
59 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_WPS_BUTTON>;
61 debounce-interval = <60>;
62 };
63
64 ap {
65 label = "ap";
66 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
67 linux,code = <BTN_0>;
68 linux,input-type = <EV_SW>;
69 debounce-interval = <60>;
70 };
71 };
72 };
73
74 &spi {
75 status = "okay";
76 num-cs = <1>;
77
78 flash@0 {
79 compatible = "jedec,spi-nor";
80 reg = <0>;
81 spi-max-frequency = <25000000>;
82
83 partitions {
84 compatible = "fixed-partitions";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 partition@0 {
89 label = "u-boot";
90 reg = <0x000000 0x040000>;
91 read-only;
92 };
93
94 partition@40000 {
95 label = "u-boot-env";
96 reg = <0x040000 0x010000>;
97 read-only;
98 };
99
100 partition@50000 {
101 label = "nvram";
102 reg = <0x050000 0x020000>;
103 read-only;
104 };
105
106 partition@70000 {
107 compatible = "denx,uimage";
108 label = "firmware";
109 reg = <0x070000 0x770000>;
110 };
111
112 partition@7e0000 {
113 label = "hwconfig";
114 reg = <0x7e0000 0x010000>;
115 read-only;
116 };
117
118 ART: partition@7f0000 {
119 label = "ART";
120 reg = <0x7f0000 0x010000>;
121 read-only;
122 };
123 };
124 };
125 };
126
127 &mdio0 {
128 status = "okay";
129
130 phy0: ethernet-phy@0 {
131 reg = <0>;
132 phy-mode = "sgmii";
133
134 qca,ar8327-initvals = <
135 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
136 0x50 0xcf37cf37 /* LED_CTRL0 */
137 0x54 0x00000000 /* LED_CTRL1 */
138 0x58 0x00000000 /* LED_CTRL2 */
139 0x5c 0x03ffff00 /* LED_CTRL3 */
140 0x7c 0x0000007e /* PORT0_STATUS */
141 >;
142 };
143 };
144
145 &eth0 {
146 status = "okay";
147
148 mtd-mac-address = <&ART 0x1002>;
149 mtd-mac-address-increment = <(-1)>;
150 phy-mode = "sgmii";
151 phy-handle = <&phy0>;
152 };
153
154 &uart {
155 status = "okay";
156 };
157
158 &wmac {
159 status = "okay";
160 mtd-cal-data = <&ART 0x1000>;
161 };