36979bbd3356fbef9bcc70d4b1e8dc76a849af25
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_mikrotik_routerboard-922uags-5hpacd.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9558_mikrotik_routerboard-92x.dtsi"
4
5 / {
6 compatible = "mikrotik,routerboard-922uags-5hpacd", "qca,qca9558";
7 model = "MikroTik RouterBOARD 922UAGS-5HPacD";
8
9 ath10k-leds {
10 compatible = "gpio-leds";
11
12 wlan5g {
13 label = "green:wlan5g";
14 gpios = <&ath10k 0 GPIO_ACTIVE_LOW>;
15 linux,default-trigger = "phy0tpt";
16 };
17 };
18
19 gpio-export {
20 gpio_usb_power {
21 gpio-export,name = "mikrotik:power:usb";
22 gpio-export,output = <0>;
23 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
24 };
25 };
26
27 i2c: i2c {
28 compatible = "i2c-gpio";
29
30 sda-gpios = <&gpio 18 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
31 scl-gpios = <&gpio 19 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
32 i2c-gpio,delay-us = <5>;
33 i2c-gpio,timeout-ms = <1>;
34 };
35
36 sfp1: sfp {
37 compatible = "sff,sfp";
38
39 i2c-bus = <&i2c>;
40 maximum-power-milliwatt = <1000>;
41 los-gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
42 mod-def0-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
43 tx-disable-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
44 // Toggling GPIO16 actually enables/disables the transmitter,
45 // but the SFP driver does not seem to be using it.
46 };
47 };
48
49 &pcie0 {
50 status = "okay";
51
52 ath10k: wifi@0,0 {
53 compatible = "qcom,ath10k";
54 reg = <0 0 0 0 0>;
55 #gpio-cells = <2>;
56 gpio-controller;
57 };
58 };
59
60 &pcie1 {
61 status = "okay";
62 };
63
64 &usb0 {
65 status = "okay";
66 };
67
68 &usb_phy0 {
69 status = "okay";
70 };
71
72 &usb1 {
73 status = "okay";
74 };
75
76 &usb_phy1 {
77 status = "okay";
78 };
79
80 &mdio1 {
81 status = "okay";
82
83 phy_sfp: ethernet-phy@0 {
84 reg = <0>;
85 phy-mode = "sgmii";
86 sfp = <&sfp1>;
87 };
88 };
89
90 &eth1 {
91 status = "okay";
92
93 phy-handle = <&phy_sfp>;
94 pll-data = <0x03000000 0x00000101 0x00001616>;
95 qca955x-sgmii-fixup;
96
97 gmac-config {
98 device = <&gmac>;
99 };
100
101 fixed-link {
102 speed = <1000>;
103 full-duplex;
104 };
105 };