1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "glinet,gl-mifi", "qca,ar9331";
11 model = "GL.iNet GL-MiFi";
14 label-mac-device = ð0;
18 compatible = "gpio-leds";
21 function = LED_FUNCTION_WLAN;
22 color = <LED_COLOR_ID_GREEN>;
23 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
24 linux,default-trigger = "phy0tpt";
28 function = LED_FUNCTION_LAN;
29 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
34 function = LED_FUNCTION_WAN;
35 color = <LED_COLOR_ID_GREEN>;
36 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
41 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
46 compatible = "gpio-keys";
50 linux,code = <KEY_RESTART>;
51 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
52 debounce-interval = <60>;
56 reg_usb_vbus: reg_usb_vbus {
57 compatible = "regulator-fixed";
58 regulator-name = "usb_vbus";
59 regulator-min-microvolt = <5000000>;
60 regulator-max-microvolt = <5000000>;
61 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
65 compatible = "gpio-export";
68 gpio-export,name = "minipcie";
69 gpio-export,output = <0>;
70 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
79 vbus-supply = <®_usb_vbus>;
90 compatible = "jedec,spi-nor";
91 spi-max-frequency = <33000000>;
95 compatible = "fixed-partitions";
101 reg = <0x000000 0x040000>;
106 label = "u-boot-env";
107 reg = <0x040000 0x010000>;
111 compatible = "denx,uimage";
113 reg = <0x050000 0xfa0000>;
116 art: partition@ff0000 {
118 reg = <0xff0000 0x010000>;
122 compatible = "fixed-layout";
123 #address-cells = <1>;
126 macaddr_art_0: macaddr@0 {
138 nvmem-cells = <&macaddr_art_0>;
139 nvmem-cell-names = "mac-address";
144 switch-phy-addr-swap = <0>;
145 switch-phy-swap = <0>;
152 nvmem-cells = <&macaddr_art_0>;
153 nvmem-cell-names = "mac-address";
159 mtd-cal-data = <&art 0x1000>;