1930c54ffSAntony Pavlov/dts-v1/;
2930c54ffSAntony Pavlov
3930c54ffSAntony Pavlov#include <dt-bindings/gpio/gpio.h>
4930c54ffSAntony Pavlov#include <dt-bindings/input/input.h>
5930c54ffSAntony Pavlov
6930c54ffSAntony Pavlov#include "ar9331.dtsi"
7930c54ffSAntony Pavlov
8930c54ffSAntony Pavlov/ {
9930c54ffSAntony Pavlov	model = "Onion Omega";
10930c54ffSAntony Pavlov	compatible = "onion,omega";
11930c54ffSAntony Pavlov
12930c54ffSAntony Pavlov	aliases {
13930c54ffSAntony Pavlov		serial0 = &uart;
14930c54ffSAntony Pavlov	};
15930c54ffSAntony Pavlov
16930c54ffSAntony Pavlov	memory@0 {
17930c54ffSAntony Pavlov		device_type = "memory";
18930c54ffSAntony Pavlov		reg = <0x0 0x4000000>;
19930c54ffSAntony Pavlov	};
20930c54ffSAntony Pavlov
21930c54ffSAntony Pavlov	leds {
22930c54ffSAntony Pavlov		compatible = "gpio-leds";
23930c54ffSAntony Pavlov
24930c54ffSAntony Pavlov		system {
25930c54ffSAntony Pavlov			label = "onion:amber:system";
26930c54ffSAntony Pavlov			gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
27930c54ffSAntony Pavlov			default-state = "off";
28930c54ffSAntony Pavlov		};
29930c54ffSAntony Pavlov	};
30930c54ffSAntony Pavlov
31930c54ffSAntony Pavlov	gpio-keys-polled {
32930c54ffSAntony Pavlov		compatible = "gpio-keys-polled";
33930c54ffSAntony Pavlov		#address-cells = <1>;
34930c54ffSAntony Pavlov		#size-cells = <0>;
35930c54ffSAntony Pavlov		poll-interval = <100>;
36930c54ffSAntony Pavlov
37930c54ffSAntony Pavlov		button@0 {
38930c54ffSAntony Pavlov			label = "reset";
39930c54ffSAntony Pavlov			linux,code = <KEY_RESTART>;
40930c54ffSAntony Pavlov			gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
41930c54ffSAntony Pavlov		};
42930c54ffSAntony Pavlov	};
43930c54ffSAntony Pavlov};
44930c54ffSAntony Pavlov
45930c54ffSAntony Pavlov&ref {
46930c54ffSAntony Pavlov	clock-frequency = <25000000>;
47930c54ffSAntony Pavlov};
48930c54ffSAntony Pavlov
49930c54ffSAntony Pavlov&uart {
50930c54ffSAntony Pavlov	status = "okay";
51930c54ffSAntony Pavlov};
52930c54ffSAntony Pavlov
53930c54ffSAntony Pavlov&gpio {
54930c54ffSAntony Pavlov	status = "okay";
55930c54ffSAntony Pavlov};
56930c54ffSAntony Pavlov
57930c54ffSAntony Pavlov&usb {
58930c54ffSAntony Pavlov	dr_mode = "host";
59930c54ffSAntony Pavlov	status = "okay";
60930c54ffSAntony Pavlov};
61930c54ffSAntony Pavlov
62930c54ffSAntony Pavlov&usb_phy {
63930c54ffSAntony Pavlov	status = "okay";
64930c54ffSAntony Pavlov};
65930c54ffSAntony Pavlov
66930c54ffSAntony Pavlov&spi {
67930c54ffSAntony Pavlov	num-chipselects = <1>;
68930c54ffSAntony Pavlov	status = "okay";
69930c54ffSAntony Pavlov
70930c54ffSAntony Pavlov	/* Winbond 25Q128FVSG SPI flash */
71930c54ffSAntony Pavlov	spiflash: w25q128@0 {
72930c54ffSAntony Pavlov		#address-cells = <1>;
73930c54ffSAntony Pavlov		#size-cells = <1>;
74930c54ffSAntony Pavlov		compatible = "winbond,w25q128", "jedec,spi-nor";
75930c54ffSAntony Pavlov		spi-max-frequency = <104000000>;
76930c54ffSAntony Pavlov		reg = <0>;
77930c54ffSAntony Pavlov	};
78930c54ffSAntony Pavlov};
79