1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 model = "Arduino Yun";
11 compatible = "arduino,yun", "qca,ar9331";
14 bootargs = "console=ttyATH0,250000";
19 pinmux_extended: pinmux@18040030 {
20 compatible = "pinctrl-single";
21 reg = <0x18040030 0x4>;
23 pinctrl-single,bit-per-mux;
24 pinctrl-single,register-width = <32>;
25 pinctrl-single,function-mask = <0x1>;
28 enable_gpio11: pinmux_enable_gpio11 {
29 pinctrl-single,bits = <0x0 0x200 0x200>;
33 pinmux_bootstrap: pinmux@180600ac {
34 compatible = "pinctrl-single";
35 reg = <0x180600ac 0x4>;
37 pinctrl-single,bit-per-mux;
38 pinctrl-single,register-width = <32>;
39 pinctrl-single,function-mask = <0x1>;
42 enable_gpio26_gpio27: pinmux_enable_gpio26_gpio27 {
43 pinctrl-single,bits = <0x0 0x40000 0x40000>;
50 compatible = "gpio-leds";
53 function = LED_FUNCTION_WLAN;
54 color = <LED_COLOR_ID_BLUE>;
55 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
56 linux,default-trigger = "phy0tpt";
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";
69 compatible = "gpio-keys";
74 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
79 compatible = "gpio-export";
82 gpio-export,name = "yun:oe:spi";
83 gpio-export,output = <0>;
84 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
87 gpio_handshake_enable {
88 gpio-export,name = "yun:oe:hs";
89 gpio-export,output = <0>;
90 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
94 gpio-export,name = "yun:oe:uart";
95 gpio-export,output = <0>;
96 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
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>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins>;
114 &switch_led_disable_pins {
115 pinctrl-single,bits = <0x0 0x80 0xf8>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&enable_gpio11>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&enable_gpio26_gpio27>;
132 vbus-supply = <®_usb_vbus>;
143 compatible = "jedec,spi-nor";
145 spi-max-frequency = <50000000>;
148 compatible = "fixed-partitions";
149 #address-cells = <1>;
159 label = "u-boot-env";
160 reg = <0x40000 0x10000>;
164 compatible = "denx,uimage";
166 reg = <0x50000 0xf90000>;
171 reg = <0xfe0000 0x10000>;
174 art: partition@ff0000 {
176 reg = <0xff0000 0x10000>;
190 compatible = "syscon", "simple-mfd";
196 mtd-cal-data = <&art 0x1000>;