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