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