sifiveu: 6.6: set testing kernel
[openwrt/openwrt.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
8 / {
9 model = "GL.iNet GL-AR150";
10 compatible = "glinet,gl-ar150", "qca,ar9330";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &eth0;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wlan {
24 label = "orange:wlan";
25 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
26 linux,default-trigger = "phy0tpt";
27 };
28
29 configurable {
30 label = "green:configurable";
31 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
32 };
33
34 led_power: power {
35 label = "green:power";
36 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
37 default-state = "on";
38 };
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 manual {
45 label = "manual";
46 linux,code = <BTN_7>;
47 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
48 };
49
50 auto {
51 label = "auto";
52 linux,code = <BTN_8>;
53 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
54 };
55
56 reset {
57 label = "reset";
58 linux,code = <KEY_RESTART>;
59 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
60 };
61 };
62 };
63
64 &usb {
65 dr_mode = "host";
66 status = "okay";
67 };
68
69 &usb_phy {
70 status = "okay";
71 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
72 };
73
74 &spi {
75 status = "okay";
76
77 flash@0 {
78 compatible = "jedec,spi-nor";
79 spi-max-frequency = <50000000>;
80 reg = <0>;
81
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 partition@0 {
88 label = "u-boot";
89 reg = <0x000000 0x040000>;
90 read-only;
91 };
92
93 partition@1 {
94 label = "u-boot-env";
95 reg = <0x040000 0x010000>;
96 };
97
98 partition@2 {
99 compatible = "denx,uimage";
100 label = "firmware";
101 reg = <0x050000 0xfa0000>;
102 };
103
104 art: partition@3 {
105 label = "art";
106 reg = <0xff0000 0x010000>;
107 read-only;
108 };
109 };
110 };
111 };
112
113 &eth0 {
114 status = "okay";
115
116 mtd-mac-address = <&art 0x0>;
117 };
118
119 &eth1 {
120 status = "okay";
121
122 mtd-mac-address = <&art 0x0>;
123
124 gmac-config {
125 device = <&gmac>;
126
127 switch-phy-addr-swap = <0>;
128 switch-phy-swap = <0>;
129 };
130 };
131
132 &wmac {
133 status = "okay";
134
135 mtd-cal-data = <&art 0x1000>;
136 mtd-mac-address = <&art 0x0>;
137 };