xref: /linux/arch/mips/boot/dts/qca/ar9331_omega.dts (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include <dt-bindings/gpio/gpio.h>
5#include <dt-bindings/input/input.h>
6
7#include "ar9331.dtsi"
8
9/ {
10	model = "Onion Omega";
11	compatible = "onion,omega";
12
13	aliases {
14		serial0 = &uart;
15	};
16
17	memory@0 {
18		device_type = "memory";
19		reg = <0x0 0x4000000>;
20	};
21
22	leds {
23		compatible = "gpio-leds";
24
25		led-system {
26			label = "onion:amber:system";
27			gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
28			default-state = "off";
29		};
30	};
31
32	gpio-keys {
33		compatible = "gpio-keys";
34
35		button-0 {
36			label = "reset";
37			linux,code = <KEY_RESTART>;
38			gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
39		};
40	};
41};
42
43&ref {
44	clock-frequency = <25000000>;
45};
46
47&uart {
48	status = "okay";
49};
50
51&gpio {
52	status = "okay";
53};
54
55&usb {
56	dr_mode = "host";
57	status = "okay";
58};
59
60&usb_phy {
61	status = "okay";
62};
63
64&spi {
65	num-chipselects = <1>;
66	status = "okay";
67
68	/* Winbond 25Q128FVSG SPI flash */
69	spiflash: w25q128@0 {
70		#address-cells = <1>;
71		#size-cells = <1>;
72		compatible = "winbond,w25q128", "jedec,spi-nor";
73		spi-max-frequency = <104000000>;
74		reg = <0>;
75	};
76};
77