1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7621_mikrotik.dtsi"
6 compatible = "mikrotik,ltap-2hnd", "mediatek,mt7621-soc";
7 model = "MikroTik RouterBOARD LtAP-2HnD";
11 led-failsafe = &led_usr;
12 led-running = &led_usr;
13 led-upgrade = &led_usr;
17 compatible = "gpio-leds";
20 label = "green:rssi0";
21 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
24 label = "green:rssi1";
25 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
28 label = "green:rssi2";
29 gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
32 label = "green:rssi3";
33 gpios = <&ath9k 3 GPIO_ACTIVE_LOW>;
36 label = "green:rssi4";
37 gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-leds";
46 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
52 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
57 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
61 /* TODO: find GPIOs for the WLAN antenna switches */
63 compatible = "gpio-export";
66 gpio-export,name = "usb-select";
67 gpio-export,output = <1>;
68 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
71 gpio-export,name = "gps-reset";
72 gpio-export,output = <1>;
73 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
76 gpio-export,name = "sim-select";
77 gpio-export,output = <1>;
78 gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
81 /* internal antenna = 0 */
82 gpio-export,name = "gps-ant-select";
83 gpio-export,output = <0>;
84 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
87 gpio-export,name = "lte-reset";
88 gpio-export,output = <1>;
89 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
94 compatible = "pps-gpio";
95 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
99 compatible = "regulator-fixed";
100 regulator-name = "pcie1_vcc";
102 regulator-min-microvolt = <3300000>;
103 regulator-max-microvolt = <3300000>;
104 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
110 compatible = "regulator-fixed";
111 regulator-name = "pcie2_vcc";
113 regulator-min-microvolt = <3300000>;
114 regulator-max-microvolt = <3300000>;
115 gpio = <&gpio 11 GPIO_ACTIVE_HIGH>;
123 compatible = "mikrotik,minor";
125 reg = <0x040000 0xfc0000>;
130 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
146 compatible = "pci168c,0030";
147 reg = <0x0000 0 0 0 0>;
156 groups = "uart2", "wdt", "rgmii2";