mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
dac0a133cf
Mikrotik RB951 router has a buzzer on the board, which makes annoying noises due to the interference caused by PoE input or Wifi transmission when no GPIO pin state is set. I added buzzer node to device's DTS in order to set deault level to 1 and to provide easier access for it. Signed-off-by: Pavel Pernička <pernicka.pa@gmail.com>
65 lines
1.0 KiB
Plaintext
65 lines
1.0 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "ar9344_mikrotik_routerboard-951x-2hnd.dtsi"
|
|
|
|
/ {
|
|
compatible = "mikrotik,routerboard-951g-2hnd", "qca,ar9344";
|
|
model = "Mikrotik RouterBOARD 951G-2HnD";
|
|
|
|
/delete-node/ aliases;
|
|
/delete-node/ leds;
|
|
|
|
gpio-export {
|
|
compatible = "gpio-export";
|
|
|
|
gpio_usb_power {
|
|
gpio-export,name = "rb951g-2hnd:power:usb";
|
|
gpio-export,output = <1>;
|
|
gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
buzzer {
|
|
gpio-export,name = "buzzer";
|
|
gpio-export,output = <1>;
|
|
gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&ref {
|
|
clock-frequency = <25000000>;
|
|
};
|
|
|
|
&mdio0 {
|
|
status = "okay";
|
|
|
|
phy0: ethernet-phy@0 {
|
|
reg = <0>;
|
|
|
|
qca,ar8327-initvals = <
|
|
0x04 0x07600000 /* PAD0_MODE */
|
|
0x7c 0x0000007e /* PORT0_STATUS */
|
|
>;
|
|
};
|
|
};
|
|
|
|
ð0 {
|
|
status = "okay";
|
|
|
|
pll-data = <0x6f000000 0x00000101 0x00001616>;
|
|
|
|
phy-mode = "rgmii";
|
|
phy-handle = <&phy0>;
|
|
|
|
gmac-config {
|
|
device = <&gmac>;
|
|
rgmii-gmac0 = <1>;
|
|
rxd-delay = <1>;
|
|
switch-only-mode = <1>;
|
|
};
|
|
};
|
|
|
|
ð1 {
|
|
status = "disabled";
|
|
};
|