16da7a3c950803ea77a51849e051a06dc0607b15
[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 };
22
23 &ref {
24 clock-frequency = <25000000>;
25 };
26
27 &mdio0 {
28 status = "okay";
29
30 phy0: ethernet-phy@0 {
31 reg = <0>;
32
33 qca,ar8327-initvals = <
34 0x04 0x07600000 /* PAD0_MODE */
35 0x7c 0x0000007e /* PORT0_STATUS */
36 >;
37 };
38 };
39
40 &eth0 {
41 status = "okay";
42
43 pll-data = <0x6f000000 0x00000101 0x00001616>;
44
45 phy-mode = "rgmii";
46 phy-handle = <&phy0>;
47
48 gmac-config {
49 device = <&gmac>;
50 rgmii-gmac0 = <1>;
51 rxd-delay = <1>;
52 switch-only-mode = <1>;
53 };
54 };
55
56 &eth1 {
57 status = "disabled";
58 };