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