ath79: DTS improvement for buzzer on RB951G-2HnD
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar9344_mikrotik_routerboard-951g-2hnd.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344_mikrotik_routerboard-951x-2hnd.dtsi"
4
5 / {
6 compatible = "mikrotik,routerboard-951g-2hnd", "qca,ar9344";
7 model = "Mikrotik RouterBOARD 951G-2HnD";
8
9 /delete-node/ aliases;
10 /delete-node/ leds;
11
12 gpio-export {
13 compatible = "gpio-export";
14
15 gpio_usb_power {
16 gpio-export,name = "rb951g-2hnd:power:usb";
17 gpio-export,output = <1>;
18 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
19 };
20
21 buzzer {
22 gpio-export,name = "buzzer";
23 gpio-export,output = <1>;
24 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
25 };
26 };
27 };
28
29 &ref {
30 clock-frequency = <25000000>;
31 };
32
33 &mdio0 {
34 status = "okay";
35
36 phy0: ethernet-phy@0 {
37 reg = <0>;
38
39 qca,ar8327-initvals = <
40 0x04 0x07600000 /* PAD0_MODE */
41 0x7c 0x0000007e /* PORT0_STATUS */
42 >;
43 };
44 };
45
46 &eth0 {
47 status = "okay";
48
49 pll-data = <0x6f000000 0x00000101 0x00001616>;
50
51 phy-mode = "rgmii";
52 phy-handle = <&phy0>;
53
54 gmac-config {
55 device = <&gmac>;
56 rgmii-gmac0 = <1>;
57 rxd-delay = <1>;
58 switch-only-mode = <1>;
59 };
60 };
61
62 &eth1 {
63 status = "disabled";
64 };