ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9331_arduino_yun.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 model = "Arduino Yun";
11 compatible = "arduino,yun", "qca,ar9331";
12
13 chosen {
14 bootargs = "console=ttyATH0,250000";
15 };
16
17 ahb {
18 apb {
19 pinmux_extended: pinmux@18040030 {
20 compatible = "pinctrl-single";
21 reg = <0x18040030 0x4>;
22
23 pinctrl-single,bit-per-mux;
24 pinctrl-single,register-width = <32>;
25 pinctrl-single,function-mask = <0x1>;
26 #pinctrl-cells = <2>;
27
28 enable_gpio11: pinmux_enable_gpio11 {
29 pinctrl-single,bits = <0x0 0x200 0x200>;
30 };
31 };
32
33 pinmux_bootstrap: pinmux@180600ac {
34 compatible = "pinctrl-single";
35 reg = <0x180600ac 0x4>;
36
37 pinctrl-single,bit-per-mux;
38 pinctrl-single,register-width = <32>;
39 pinctrl-single,function-mask = <0x1>;
40 #pinctrl-cells = <2>;
41
42 enable_gpio26_gpio27: pinmux_enable_gpio26_gpio27 {
43 pinctrl-single,bits = <0x0 0x40000 0x40000>;
44 };
45 };
46 };
47 };
48
49 leds {
50 compatible = "gpio-leds";
51
52 wlan {
53 function = LED_FUNCTION_WLAN;
54 color = <LED_COLOR_ID_BLUE>;
55 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
56 linux,default-trigger = "phy0tpt";
57 };
58
59 usb {
60 function = LED_FUNCTION_USB;
61 color = <LED_COLOR_ID_WHITE>;
62 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
63 trigger-sources = <&hub_port>;
64 linux,default-trigger = "usbport";
65 };
66 };
67
68 keys {
69 compatible = "gpio-keys";
70
71 config {
72 label = "config";
73 linux,code = <BTN_0>;
74 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
75 };
76 };
77
78 gpio-export {
79 compatible = "gpio-export";
80
81 gpio_spi_enable {
82 gpio-export,name = "yun:oe:spi";
83 gpio-export,output = <0>;
84 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
85 };
86
87 gpio_handshake_enable {
88 gpio-export,name = "yun:oe:hs";
89 gpio-export,output = <0>;
90 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
91 };
92
93 gpio_uart_enable {
94 gpio-export,name = "yun:oe:uart";
95 gpio-export,output = <0>;
96 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
97 };
98 };
99
100 reg_usb_vbus: reg_usb_vbus {
101 compatible = "regulator-fixed";
102 regulator-name = "usb_vbus";
103 regulator-min-microvolt = <5000000>;
104 regulator-max-microvolt = <5000000>;
105 enable-active-high;
106 };
107 };
108
109 &pinmux {
110 pinctrl-names = "default";
111 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins>;
112 };
113
114 &switch_led_disable_pins {
115 pinctrl-single,bits = <0x0 0x80 0xf8>;
116 };
117
118 &pinmux_extended {
119 pinctrl-names = "default";
120 pinctrl-0 = <&enable_gpio11>;
121 };
122
123 &pinmux_bootstrap {
124 pinctrl-names = "default";
125 pinctrl-0 = <&enable_gpio26_gpio27>;
126 };
127
128 &usb {
129 status = "okay";
130
131 dr_mode = "host";
132 vbus-supply = <&reg_usb_vbus>;
133 };
134
135 &usb_phy {
136 status = "okay";
137 };
138
139 &spi {
140 status = "okay";
141
142 flash@0 {
143 compatible = "jedec,spi-nor";
144 reg = <0>;
145 spi-max-frequency = <50000000>;
146
147 partitions {
148 compatible = "fixed-partitions";
149 #address-cells = <1>;
150 #size-cells = <1>;
151
152 partition@0 {
153 label = "u-boot";
154 reg = <0x0 0x40000>;
155 read-only;
156 };
157
158 partition@40000 {
159 label = "u-boot-env";
160 reg = <0x40000 0x10000>;
161 };
162
163 partition@50000 {
164 compatible = "denx,uimage";
165 label = "firmware";
166 reg = <0x50000 0xf90000>;
167 };
168
169 partition@fe0000 {
170 label = "nvram";
171 reg = <0xfe0000 0x10000>;
172 };
173
174 art: partition@ff0000 {
175 label = "art";
176 reg = <0xff0000 0x10000>;
177 read-only;
178 };
179 };
180 };
181 };
182
183 &eth0 {
184 status = "okay";
185 };
186
187 &eth1 {
188 status = "okay";
189
190 compatible = "syscon", "simple-mfd";
191 };
192
193 &wmac {
194 status = "okay";
195
196 mtd-cal-data = <&art 0x1000>;
197 };