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