treewide: remove dts-v1 identifier from DTSI files
[openwrt/staging/chunkeey.git] / target / linux / ath79 / dts / qca9563_elecom_wrc-ghbk2-i.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "qca956x.dtsi"
7
8 / {
9 chosen {
10 bootargs = "console=ttyS0,115200n8";
11 };
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 leds: leds {
21 compatible = "gpio-leds";
22
23 wps {
24 label = "elecom:red:wps";
25 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
26 };
27 };
28
29 keys {
30 compatible = "gpio-keys";
31
32 reset {
33 label = "reset";
34 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 debounce-interval = <60>;
37 };
38
39 wps {
40 label = "wps";
41 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
43 debounce-interval = <60>;
44 };
45
46 ap {
47 label = "ap";
48 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
49 linux,code = <BTN_0>;
50 linux,input-type = <EV_SW>;
51 debounce-interval = <60>;
52 };
53 };
54 };
55
56 &spi {
57 status = "okay";
58 num-cs = <1>;
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <25000000>;
64
65 partitions: partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x000000 0x040000>;
73 read-only;
74 };
75
76 partition@40000 {
77 label = "u-boot-env";
78 reg = <0x040000 0x010000>;
79 read-only;
80 };
81
82 partition@50000 {
83 label = "nvram";
84 reg = <0x050000 0x020000>;
85 read-only;
86 };
87 };
88 };
89 };
90
91 &mdio0 {
92 status = "okay";
93
94 phy0: ethernet-phy@0 {
95 reg = <0>;
96
97 qca,ar8327-initvals = <
98 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
99 0x50 0xcf37cf37 /* LED_CTRL0 */
100 0x54 0x00000000 /* LED_CTRL1 */
101 0x58 0x00000000 /* LED_CTRL2 */
102 0x5c 0x03ffff00 /* LED_CTRL3 */
103 0x7c 0x0000007e /* PORT0_STATUS */
104 >;
105 };
106 };
107
108 &eth0 {
109 status = "okay";
110
111 pll-data = <0x03000101 0x00000101 0x00001919>;
112
113 mtd-mac-address = <&art 0x1002>;
114 mtd-mac-address-increment = <(-1)>;
115 phy-mode = "sgmii";
116 phy-handle = <&phy0>;
117 };
118
119 &uart {
120 status = "okay";
121 };
122
123 &wmac {
124 status = "okay";
125 mtd-cal-data = <&art 0x1000>;
126 };