netifd: add flow steering mode to the packet steering script
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_glinet_gl-mifi.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9331.dtsi"
8
9 / {
10 compatible = "glinet,gl-mifi", "qca,ar9331";
11 model = "GL.iNet GL-MiFi";
12
13 aliases {
14 serial0 = &uart;
15 label-mac-device = &eth0;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 wlan {
22 label = "gl-mifi:green:wlan";
23 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
24 linux,default-trigger = "phy0tpt";
25 };
26
27 lan {
28 label = "gl-mifi:green:lan";
29 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
30 };
31
32 wan {
33 label = "gl-mifi:green:wan";
34 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
35 };
36
37 3g4g {
38 label = "gl-mifi:green:3g4g";
39 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys";
45
46 reset {
47 label = "reset";
48 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
50 debounce-interval = <60>;
51 };
52 };
53
54 reg_usb_vbus: reg_usb_vbus {
55 compatible = "regulator-fixed";
56 regulator-name = "usb_vbus";
57 regulator-min-microvolt = <5000000>;
58 regulator-max-microvolt = <5000000>;
59 gpio = <&gpio 6 GPIO_ACTIVE_LOW>;
60 };
61
62 gpio-export {
63 compatible = "gpio-export";
64
65 minipcie {
66 gpio-export,name = "minipcie";
67 gpio-export,output = <0>;
68 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
69 };
70 };
71 };
72
73 &uart {
74 status = "okay";
75 };
76
77 &usb {
78 status = "okay";
79
80 dr_mode = "host";
81 vbus-supply = <&reg_usb_vbus>;
82 };
83
84 &usb_phy {
85 status = "okay";
86 };
87
88 &spi {
89 status = "okay";
90
91 num-chipselects = <1>;
92
93 flash@0 {
94 compatible = "jedec,spi-nor";
95 spi-max-frequency = <33000000>;
96 reg = <0>;
97
98 partitions {
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 partition@0 {
104 label = "u-boot";
105 reg = <0x000000 0x040000>;
106 read-only;
107 };
108
109 partition@40000 {
110 label = "u-boot-env";
111 reg = <0x040000 0x010000>;
112 };
113
114 partition@50000 {
115 compatible = "denx,uimage";
116 label = "firmware";
117 reg = <0x050000 0xfa0000>;
118 };
119
120 art: partition@ff0000 {
121 label = "art";
122 reg = <0xff0000 0x010000>;
123 read-only;
124 };
125 };
126 };
127 };
128
129 &eth0 {
130 status = "okay";
131
132 mtd-mac-address = <&art 0x0>;
133
134 gmac-config {
135 device = <&gmac>;
136
137 switch-phy-addr-swap = <0>;
138 switch-phy-swap = <0>;
139 };
140 };
141
142 &eth1 {
143 status = "okay";
144
145 mtd-mac-address = <&art 0x0>;
146 };
147
148 &wmac {
149 status = "okay";
150
151 mtd-cal-data = <&art 0x1000>;
152 };