Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/*
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 /* Conflict with NAND flash */
37 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43 led@20 {
44 label = "sq201:green:info";
45 /* Conflict with parallel flash */
46 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
47 default-state = "on";
48 linux,default-trigger = "heartbeat";
49 };
50 led@31 {
51 label = "sq201:green:usb";
52 /* Conflict with parallel and NAND flash */
53 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
54 default-state = "off";
55 linux,default-trigger = "usb-host";
56 };
57 };
58
59 soc {
60 flash@30000000 {
61 /*
62 * Flash access can be enabled, with the side effect
63 * of disabling access to GPIO LED on GPIO0[20] which
64 * reuse one of the parallel flash chip select lines.
65 * Also the default firmware on the machine has the
66 * problem that since it uses the flash, the two LEDS
67 * on the right become numb.
68 */
69 /* status = "okay"; */
70 /* 16MB of flash */
71 reg = <0x30000000 0x01000000>;
72
73 partition@0 {
74 label = "RedBoot";
75 reg = <0x00000000 0x00120000>;
76 read-only;
77 };
78 partition@120000 {
79 label = "Kernel";
80 reg = <0x00120000 0x00200000>;
81 };
82 partition@320000 {
83 label = "Ramdisk";
84 reg = <0x00320000 0x00600000>;
85 };
86 partition@920000 {
87 label = "Application";
88 reg = <0x00920000 0x00600000>;
89 };
90 partition@f20000 {
91 label = "VCTL";
92 reg = <0x00f20000 0x00020000>;
93 read-only;
94 };
95 partition@f40000 {
96 label = "CurConf";
97 reg = <0x00f40000 0x000a0000>;
98 read-only;
99 };
100 partition@fe0000 {
101 label = "FIS directory";
102 reg = <0x00fe0000 0x00020000>;
103 read-only;
104 };
105 };
106
107 syscon: syscon@40000000 {
108 pinctrl {
109 /*
110 * gpio0fgrp cover line 18 used by reset button
111 * gpio0ggrp cover line 20 used by info LED
112 * gpio0kgrp cover line 31 used by USB LED
113 */
114 gpio0_default_pins: pinctrl-gpio0 {
115 mux {
116 function = "gpio0";
117 groups = "gpio0fgrp",
118 "gpio0ggrp",
119 "gpio0kgrp";
120 };
121 };
122 };
123 };
124
125 sata: sata@46000000 {
126 cortina,gemini-ata-muxmode = <0>;
127 cortina,gemini-enable-sata-bridge;
128 status = "okay";
129 };
130
131 gpio0: gpio@4d000000 {
132 pinctrl-names = "default";
133 pinctrl-0 = <&gpio0_default_pins>;
134 };
135
136 pci@50000000 {
137 status = "okay";
138 interrupt-map-mask = <0xf800 0 0 7>;
139 interrupt-map =
140 <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */
141 <0x4800 0 0 2 &pci_intc 1>,
142 <0x4800 0 0 3 &pci_intc 2>,
143 <0x4800 0 0 4 &pci_intc 3>,
144 <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */
145 <0x5000 0 0 2 &pci_intc 2>,
146 <0x5000 0 0 3 &pci_intc 3>,
147 <0x5000 0 0 4 &pci_intc 0>,
148 <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */
149 <0x5800 0 0 2 &pci_intc 3>,
150 <0x5800 0 0 3 &pci_intc 0>,
151 <0x5800 0 0 4 &pci_intc 1>,
152 <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */
153 <0x6000 0 0 2 &pci_intc 0>,
154 <0x6000 0 0 3 &pci_intc 1>,
155 <0x6000 0 0 4 &pci_intc 2>;
156 };
157
158 ata@63000000 {
159 status = "okay";
160 };
161 };
162};