blob: dae2a70d8fbca07882913339fa2dc184ccd5f357 [file] [log] [blame]
Linus Walleij9be0d7f2017-01-21 13:00:15 +01001/*
2 * Device Tree file for ITian Square One SQ201 NAS
3 */
4
5/dts-v1/;
6
7#include "gemini.dtsi"
8#include <dt-bindings/input/input.h>
9
10/ {
11 model = "ITian Square One SQ201";
12 compatible = "itian,sq201", "cortina,gemini";
13 #address-cells = <1>;
14 #size-cells = <1>;
15
16 memory { /* 128 MB */
17 device_type = "memory";
18 reg = <0x00000000 0x8000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200n8";
23 stdout-path = &uart0;
24 };
25
26 gpio_keys {
27 compatible = "gpio-keys";
28 #address-cells = <1>;
29 #size-cells = <0>;
30
31 button@18 {
32 debounce_interval = <50>;
33 wakeup-source;
34 linux,code = <KEY_SETUP>;
35 label = "factory reset";
36 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42 led@20 {
43 label = "sq201:green:info";
44 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
45 default-state = "on";
46 linux,default-trigger = "heartbeat";
47 };
48 led@31 {
49 label = "sq201:green:usb";
50 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
51 default-state = "off";
52 linux,default-trigger = "usb-host";
53 };
54 };
55
56 soc {
57 flash@30000000 {
58 status = "okay";
59 /* 16MB of flash */
60 reg = <0x30000000 0x01000000>;
61
62 partition@0 {
63 label = "RedBoot";
64 reg = <0x00000000 0x00120000>;
65 read-only;
66 };
67 partition@120000 {
68 label = "Kernel";
69 reg = <0x00120000 0x00200000>;
70 };
71 partition@320000 {
72 label = "Ramdisk";
73 reg = <0x00320000 0x00600000>;
74 };
75 partition@920000 {
76 label = "Application";
77 reg = <0x00920000 0x00600000>;
78 };
79 partition@f20000 {
80 label = "VCTL";
81 reg = <0x00f20000 0x00020000>;
82 read-only;
83 };
84 partition@f40000 {
85 label = "CurConf";
86 reg = <0x00f40000 0x000a0000>;
87 read-only;
88 };
89 partition@fe0000 {
90 label = "FIS directory";
91 reg = <0x00fe0000 0x00020000>;
92 read-only;
93 };
94 };
95 };
96};