1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/leds/common.h>
12 model = "Ubiquiti UniFi 6 LR";
13 compatible = "ubnt,unifi-6-lr", "mediatek,mt7622";
17 led-failsafe = &led_blue;
18 led-running = &led_blue;
19 led-upgrade = &led_blue;
20 label-mac-device = &gmac0;
25 stdout-path = "serial0:115200n8";
26 bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512 console=ttyS0,115200n8";
31 proc-supply = <&mt6380_vcpu_reg>;
32 sram-supply = <&mt6380_vm_reg>;
36 proc-supply = <&mt6380_vcpu_reg>;
37 sram-supply = <&mt6380_vm_reg>;
42 compatible = "gpio-keys";
46 linux,code = <KEY_RESTART>;
47 gpios = <&pio 62 GPIO_ACTIVE_LOW>;
52 reg = <0 0x40000000 0 0x3f000000>;
55 reg_1p8v: regulator-1p8v {
56 compatible = "regulator-fixed";
57 regulator-name = "fixed-1.8V";
58 regulator-min-microvolt = <1800000>;
59 regulator-max-microvolt = <1800000>;
63 reg_3p3v: regulator-3p3v {
64 compatible = "regulator-fixed";
65 regulator-name = "fixed-3.3V";
66 regulator-min-microvolt = <3300000>;
67 regulator-max-microvolt = <3300000>;
74 pinctrl-names = "default";
75 pinctrl-0 = <&pcie0_pins>;
82 mediatek,mtd-eeprom = <&factory 0x20000>;
83 mtd-mac-address = <&eeprom 0x6>;
84 ieee80211-freq-limit = <5000000 6000000>;
92 groups = "mdc_mdio", "rgmii_via_gmac2";
96 pcie0_pins: pcie0-pins {
99 groups = "pcie0_pad_perst",
105 pcie1_pins: pcie1-pins {
108 groups = "pcie1_pad_perst",
114 pmic_bus_pins: pmic-bus-pins {
121 spi_nor_pins: spi-nor-pins {
128 uart0_pins: uart0-pins {
131 groups = "uart0_0_tx_rx" ;
135 uart3_pins: uart3-pins {
138 groups = "uart3_1_tx_rx" ;
142 i2c0_pins: i2c0-pins {
149 watchdog_pins: watchdog-pins {
151 function = "watchdog";
167 pinctrl-names = "default";
168 pinctrl-0 = <ð_pins>;
171 compatible = "mediatek,eth-mac";
174 phy-mode = "2500base-x";
175 mtd-mac-address = <&eeprom 0x0>;
184 #address-cells = <1>;
188 /* Marvell AQRate AQR112W - no driver */
189 compatible = "ethernet-phy-ieee802.3-c45";
196 pinctrl-names = "default";
197 pinctrl-0 = <&pmic_bus_pins>;
203 pinctrl-names = "default";
204 pinctrl-0 = <&spi_nor_pins>;
209 compatible = "jedec,spi-nor";
211 spi-max-frequency = <50000000>;
214 compatible = "fixed-partitions";
215 #address-cells = <1>;
226 reg = <0x40000 0x20000>;
232 reg = <0x60000 0x60000>;
237 label = "u-boot-env";
238 reg = <0xc0000 0x10000>;
241 factory: partition@d0000 {
243 reg = <0xd0000 0x40000>;
247 eeprom: partition@110000 {
249 reg = <0x110000 0x10000>;
255 reg = <0x120000 0x10000>;
260 reg = <0x130000 0x100000>;
265 compatible = "denx,fit";
267 reg = <0x230000 0x1ee0000>;
272 reg = <0x2110000 0x1ee0000>;
279 pinctrl-names = "default";
280 pinctrl-0 = <&uart0_pins>;
285 pinctrl-names = "default";
286 pinctrl-0 = <&uart3_pins>;
289 /* MT7915 Bluetooth */
293 pinctrl-names = "default";
294 pinctrl-0 = <&i2c0_pins>;
298 compatible = "ubnt,ledbar";
301 enable-gpio = <&pio 59 0>;
318 pinctrl-names = "default";
319 pinctrl-0 = <&watchdog_pins>;
324 mediatek,mtd-eeprom = <&factory 0x0>;
325 mtd-mac-address = <&eeprom 0x0>;