License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / arch / arm / boot / dts / gemini-sq201.dts
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
9be0d7f8
LW
2/*
3 * Device Tree file for ITian Square One SQ201 NAS
4 */
5
6/dts-v1/;
7
8#include "gemini.dtsi"
9#include <dt-bindings/input/input.h>
10
11/ {
12 model = "ITian Square One SQ201";
13 compatible = "itian,sq201", "cortina,gemini";
14 #address-cells = <1>;
15 #size-cells = <1>;
16
17 memory { /* 128 MB */
18 device_type = "memory";
19 reg = <0x00000000 0x8000000>;
20 };
21
22 chosen {
23 bootargs = "console=ttyS0,115200n8";
24 stdout-path = &uart0;
25 };
26
27 gpio_keys {
28 compatible = "gpio-keys";
29 #address-cells = <1>;
30 #size-cells = <0>;
31
32 button@18 {
33 debounce_interval = <50>;
34 wakeup-source;
35 linux,code = <KEY_SETUP>;
36 label = "factory reset";
f328c2ea 37 /* Conflict with NAND flash */
9be0d7f8
LW
38 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44 led@20 {
45 label = "sq201:green:info";
f328c2ea 46 /* Conflict with parallel flash */
9be0d7f8
LW
47 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
48 default-state = "on";
49 linux,default-trigger = "heartbeat";
50 };
51 led@31 {
52 label = "sq201:green:usb";
f328c2ea 53 /* Conflict with parallel and NAND flash */
9be0d7f8
LW
54 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
55 default-state = "off";
56 linux,default-trigger = "usb-host";
57 };
58 };
59
60 soc {
61 flash@30000000 {
f328c2ea
LW
62 /*
63 * Flash access can be enabled, with the side effect
64 * of disabling access to GPIO LED on GPIO0[20] which
65 * reuse one of the parallel flash chip select lines.
66 * Also the default firmware on the machine has the
67 * problem that since it uses the flash, the two LEDS
68 * on the right become numb.
69 */
70 /* status = "okay"; */
9be0d7f8
LW
71 /* 16MB of flash */
72 reg = <0x30000000 0x01000000>;
73
74 partition@0 {
75 label = "RedBoot";
76 reg = <0x00000000 0x00120000>;
77 read-only;
78 };
79 partition@120000 {
80 label = "Kernel";
81 reg = <0x00120000 0x00200000>;
82 };
83 partition@320000 {
84 label = "Ramdisk";
85 reg = <0x00320000 0x00600000>;
86 };
87 partition@920000 {
88 label = "Application";
89 reg = <0x00920000 0x00600000>;
90 };
91 partition@f20000 {
92 label = "VCTL";
93 reg = <0x00f20000 0x00020000>;
94 read-only;
95 };
96 partition@f40000 {
97 label = "CurConf";
98 reg = <0x00f40000 0x000a0000>;
99 read-only;
100 };
101 partition@fe0000 {
102 label = "FIS directory";
103 reg = <0x00fe0000 0x00020000>;
104 read-only;
105 };
106 };
e3aeca1d 107
f328c2ea
LW
108 syscon: syscon@40000000 {
109 pinctrl {
110 /*
111 * gpio0fgrp cover line 18 used by reset button
112 * gpio0ggrp cover line 20 used by info LED
113 * gpio0kgrp cover line 31 used by USB LED
114 */
115 gpio0_default_pins: pinctrl-gpio0 {
116 mux {
117 function = "gpio0";
118 groups = "gpio0fgrp",
119 "gpio0ggrp",
120 "gpio0kgrp";
121 };
122 };
123 };
124 };
125
0d7a2c35
LW
126 sata: sata@46000000 {
127 cortina,gemini-ata-muxmode = <0>;
128 cortina,gemini-enable-sata-bridge;
129 status = "okay";
130 };
131
f328c2ea
LW
132 gpio0: gpio@4d000000 {
133 pinctrl-names = "default";
134 pinctrl-0 = <&gpio0_default_pins>;
135 };
136
e3aeca1d
LW
137 pci@50000000 {
138 status = "okay";
139 interrupt-map-mask = <0xf800 0 0 7>;
140 interrupt-map =
141 <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */
142 <0x4800 0 0 2 &pci_intc 1>,
143 <0x4800 0 0 3 &pci_intc 2>,
144 <0x4800 0 0 4 &pci_intc 3>,
145 <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */
146 <0x5000 0 0 2 &pci_intc 2>,
147 <0x5000 0 0 3 &pci_intc 3>,
148 <0x5000 0 0 4 &pci_intc 0>,
149 <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */
150 <0x5800 0 0 2 &pci_intc 3>,
151 <0x5800 0 0 3 &pci_intc 0>,
152 <0x5800 0 0 4 &pci_intc 1>,
153 <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */
154 <0x6000 0 0 2 &pci_intc 0>,
155 <0x6000 0 0 3 &pci_intc 1>,
156 <0x6000 0 0 4 &pci_intc 2>;
157 };
0d7a2c35
LW
158
159 ata@63000000 {
160 status = "okay";
161 };
9be0d7f8
LW
162 };
163};