ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9331_glinet_gl-usb150.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "glinet,gl-usb150", "qca,ar9331";
11 model = "GL.iNet GL-USB150";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &eth0;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 wlan {
25 function = LED_FUNCTION_WLAN;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
28 linux,default-trigger = "phy0tpt";
29 };
30
31 led_power: power {
32 function = LED_FUNCTION_POWER;
33 color = <LED_COLOR_ID_GREEN>;
34 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
35 default-state = "on";
36 };
37 };
38
39 keys {
40 compatible = "gpio-keys";
41
42 reset {
43 label = "reset";
44 linux,code = <KEY_RESTART>;
45 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
46 debounce-interval = <60>;
47 };
48 };
49
50 gpio-export {
51 compatible = "gpio-export";
52
53 gpio_lan_reset {
54 gpio-export,name = "lan:reset";
55 gpio-export,output = <0>;
56 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
57 };
58 };
59 };
60
61 &eth0 {
62 status = "okay";
63
64 nvmem-cells = <&macaddr_art_0>;
65 nvmem-cell-names = "mac-address";
66
67 gmac-config {
68 device = <&gmac>;
69 switch-phy-addr-swap = <0>;
70 switch-phy-swap = <0>;
71 };
72 };
73
74 &eth1 {
75 status = "okay";
76
77 compatible = "syscon", "simple-mfd";
78 };
79
80 &spi {
81 status = "okay";
82
83 flash@0 {
84 compatible = "jedec,spi-nor";
85 spi-max-frequency = <33000000>;
86 reg = <0>;
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 partition@0 {
94 label = "u-boot";
95 reg = <0x000000 0x040000>;
96 read-only;
97 };
98
99 partition@40000 {
100 label = "u-boot-env";
101 reg = <0x040000 0x010000>;
102 };
103
104 partition@50000 {
105 compatible = "denx,uimage";
106 label = "firmware";
107 reg = <0x050000 0xfa0000>;
108 };
109
110 art: partition@ff0000 {
111 label = "art";
112 reg = <0xff0000 0x010000>;
113 read-only;
114
115 nvmem-layout {
116 compatible = "fixed-layout";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 macaddr_art_0: macaddr@0 {
121 reg = <0x0 0x6>;
122 };
123 };
124 };
125 };
126 };
127 };
128
129 &wmac {
130 status = "okay";
131
132 mtd-cal-data = <&art 0x1000>;
133 };