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