ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9330_glinet_gl-ar150.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9330.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 model = "GL.iNet GL-AR150";
11 compatible = "glinet,gl-ar150", "qca,ar9330";
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_ORANGE>;
27 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
28 linux,default-trigger = "phy0tpt";
29 };
30
31 configurable {
32 label = "green:configurable";
33 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
34 };
35
36 led_power: power {
37 function = LED_FUNCTION_POWER;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
40 default-state = "on";
41 };
42 };
43
44 keys {
45 compatible = "gpio-keys";
46
47 manual {
48 label = "manual";
49 linux,code = <BTN_7>;
50 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
51 };
52
53 auto {
54 label = "auto";
55 linux,code = <BTN_8>;
56 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
57 };
58
59 reset {
60 label = "reset";
61 linux,code = <KEY_RESTART>;
62 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
63 };
64 };
65 };
66
67 &usb {
68 dr_mode = "host";
69 status = "okay";
70 };
71
72 &usb_phy {
73 status = "okay";
74 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
75 };
76
77 &spi {
78 status = "okay";
79
80 flash@0 {
81 compatible = "jedec,spi-nor";
82 spi-max-frequency = <50000000>;
83 reg = <0>;
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partition@0 {
91 label = "u-boot";
92 reg = <0x000000 0x040000>;
93 read-only;
94 };
95
96 partition@1 {
97 label = "u-boot-env";
98 reg = <0x040000 0x010000>;
99 };
100
101 partition@2 {
102 compatible = "denx,uimage";
103 label = "firmware";
104 reg = <0x050000 0xfa0000>;
105 };
106
107 art: partition@3 {
108 label = "art";
109 reg = <0xff0000 0x010000>;
110 read-only;
111
112 nvmem-layout {
113 compatible = "fixed-layout";
114 #address-cells = <1>;
115 #size-cells = <1>;
116
117 macaddr_art_0: macaddr@0 {
118 reg = <0x0 0x6>;
119 };
120 };
121 };
122 };
123 };
124 };
125
126 &eth0 {
127 status = "okay";
128
129 nvmem-cells = <&macaddr_art_0>;
130 nvmem-cell-names = "mac-address";
131 };
132
133 &eth1 {
134 status = "okay";
135
136 nvmem-cells = <&macaddr_art_0>;
137 nvmem-cell-names = "mac-address";
138
139 gmac-config {
140 device = <&gmac>;
141
142 switch-phy-addr-swap = <0>;
143 switch-phy-swap = <0>;
144 };
145 };
146
147 &wmac {
148 status = "okay";
149
150 mtd-cal-data = <&art 0x1000>;
151 nvmem-cells = <&macaddr_art_0>;
152 nvmem-cell-names = "mac-address";
153 };