1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 model = "Ubiquiti UniFi 6 Plus";
8 compatible = "ubnt,unifi-6-plus", "mediatek,mt7981";
12 led-boot = &led_white;
13 led-failsafe = &led_white;
14 led-running = &led_blue;
15 led-upgrade = &led_blue;
16 label-mac-device = &gmac1;
20 bootargs-override = "console=ttyS0,115200n8 rootwait root=/dev/mmcblk0p7";
21 stdout-path = "serial0:115200n8";
25 compatible = "gpio-keys";
29 linux,code = <KEY_RESTART>;
30 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-leds";
40 gpios = <&pio 9 GPIO_ACTIVE_HIGH>;
43 led_white: dome-white {
45 gpios = <&pio 34 GPIO_ACTIVE_HIGH>;
59 spi2_flash_pins: spi2-pins {
62 groups = "spi2", "spi2_wp_hold";
66 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
72 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
74 bias-pull-down = <103>;
78 mmc0_pins_default: mmc0-pins-default {
85 mmc0_pins_uhs: mmc0-pins-uhs {
94 pinctrl-names = "default";
95 pinctrl-0 = <&spi2_flash_pins>;
101 compatible = "jedec,spi-nor";
104 spi-max-frequency = <52000000>;
105 spi-tx-bus-width = <4>;
106 spi-rx-bus-width = <4>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
113 eeprom: partition@00000 {
115 reg = <0x00000 0x10000>;
119 compatible = "fixed-layout";
120 #address-cells = <1>;
123 macaddr_eeprom_0: macaddr@0 {
127 macaddr_eeprom_6: macaddr@6 {
134 label = "u-boot-env";
135 reg = <0x10000 0x80000>;
142 pinctrl-names = "default", "state_uhs";
143 pinctrl-0 = <&mmc0_pins_default>;
144 pinctrl-1 = <&mmc0_pins_uhs>;
146 max-frequency = <52000000>;
148 vmmc-supply = <®_3p3v>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&mdio_pins>;
159 compatible = "mediatek,eth-mac";
162 phy-handle = <&int_gbe_phy>;
163 nvmem-cell-names = "mac-address";
164 nvmem-cells = <&macaddr_eeprom_0>;