blob: 46309e79cc7b13cd936af2ddb7b46264320c912e [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 };
Linus Walleije3aeca12017-01-28 21:15:15 +010095
96 pci@50000000 {
97 status = "okay";
98 interrupt-map-mask = <0xf800 0 0 7>;
99 interrupt-map =
100 <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */
101 <0x4800 0 0 2 &pci_intc 1>,
102 <0x4800 0 0 3 &pci_intc 2>,
103 <0x4800 0 0 4 &pci_intc 3>,
104 <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */
105 <0x5000 0 0 2 &pci_intc 2>,
106 <0x5000 0 0 3 &pci_intc 3>,
107 <0x5000 0 0 4 &pci_intc 0>,
108 <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */
109 <0x5800 0 0 2 &pci_intc 3>,
110 <0x5800 0 0 3 &pci_intc 0>,
111 <0x5800 0 0 4 &pci_intc 1>,
112 <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */
113 <0x6000 0 0 2 &pci_intc 0>,
114 <0x6000 0 0 3 &pci_intc 1>,
115 <0x6000 0 0 4 &pci_intc 2>;
116 };
Linus Walleij9be0d7f2017-01-21 13:00:15 +0100117 };
118};