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