1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Device Tree file for ITian Square One SQ201 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,g 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,1152 24 stdout-path = &uart0; 25 }; 26 27 gpio_keys { 28 compatible = "gpio-keys"; 29 30 button-setup { 31 debounce-interval = <1 32 wakeup-source; 33 linux,code = <KEY_REST 34 label = "factory reset 35 /* Conflict with NAND 36 gpios = <&gpio0 18 GPI 37 }; 38 }; 39 40 leds { 41 compatible = "gpio-leds"; 42 led-green-info { 43 label = "sq201:green:i 44 gpios = <&gpio0 20 GPI 45 default-state = "on"; 46 linux,default-trigger 47 }; 48 led-green-usb { 49 label = "sq201:green:u 50 gpios = <&gpio0 31 GPI 51 default-state = "off"; 52 linux,default-trigger 53 }; 54 }; 55 56 mdio0: mdio { 57 compatible = "virtual,mdio-gpi 58 /* Uses MDC and MDIO */ 59 gpios = <&gpio0 22 GPIO_ACTIVE 60 <&gpio0 21 GPIO_ACTIVE 61 #address-cells = <1>; 62 #size-cells = <0>; 63 64 /* This is a Marvell 88E1111 e 65 phy0: ethernet-phy@1 { 66 reg = <1>; 67 }; 68 }; 69 70 spi { 71 compatible = "spi-gpio"; 72 #address-cells = <1>; 73 #size-cells = <0>; 74 /* Check pin collisions */ 75 sck-gpios = <&gpio1 28 GPIO_AC 76 miso-gpios = <&gpio1 30 GPIO_A 77 mosi-gpios = <&gpio1 29 GPIO_A 78 cs-gpios = <&gpio1 31 GPIO_ACT 79 num-chipselects = <1>; 80 81 ethernet-switch@0 { 82 compatible = "vitesse, 83 reg = <0>; 84 /* Specified for 2.5 M 85 spi-max-frequency = <2 86 gpio-controller; 87 #gpio-cells = <2>; 88 89 ethernet-ports { 90 #address-cells 91 #size-cells = 92 93 ethernet-port@ 94 reg = 95 label 96 }; 97 ethernet-port@ 98 reg = 99 label 100 }; 101 ethernet-port@ 102 reg = 103 label 104 }; 105 ethernet-port@ 106 reg = 107 label 108 }; 109 vsc: ethernet- 110 reg = 111 label 112 ethern 113 phy-mo 114 fixed- 115 116 117 118 }; 119 }; 120 }; 121 }; 122 }; 123 124 125 soc { 126 flash@30000000 { 127 status = "okay"; 128 pinctrl-names = "enabl 129 pinctrl-0 = <&pflash_d 130 pinctrl-1 = <&pflash_d 131 /* 16MB of flash */ 132 reg = <0x30000000 0x01 133 134 partitions { 135 compatible = " 136 /* Eraseblock 137 fis-index-bloc 138 }; 139 }; 140 141 syscon: syscon@40000000 { 142 pinctrl { 143 /* 144 * gpio0fgrp c 145 * gpio0ggrp c 146 * gpio0hgrp c 147 * gpio0kgrp c 148 */ 149 gpio0_default_ 150 mux { 151 152 153 154 }; 155 }; 156 /* 157 * gpio0dgrp c 158 * to the Vite 159 */ 160 gpio1_default_ 161 mux { 162 163 164 }; 165 }; 166 /* 167 * These GPIO 168 * of the flas 169 * active use. 170 */ 171 pflash_disable 172 mux { 173 174 175 176 }; 177 }; 178 pinctrl-gmii { 179 mux { 180 181 182 }; 183 /* Set 184 conf0 185 186 187 }; 188 conf1 189 190 191 }; 192 conf2 193 194 195 }; 196 conf3 197 198 199 }; 200 conf4 201 202 203 }; 204 conf5 205 206 207 }; 208 conf6 209 210 211 }; 212 conf7 213 214 215 }; 216 conf8 217 218 219 220 221 222 223 224 225 226 227 }; 228 /* Set 229 conf9 230 231 232 }; 233 }; 234 }; 235 }; 236 237 sata: sata@46000000 { 238 cortina,gemini-ata-mux 239 cortina,gemini-enable- 240 status = "okay"; 241 }; 242 243 gpio0: gpio@4d000000 { 244 pinctrl-names = "defau 245 pinctrl-0 = <&gpio0_de 246 }; 247 248 gpio1: gpio@4e000000 { 249 pinctrl-names = "defau 250 pinctrl-0 = <&gpio1_de 251 }; 252 253 pci@50000000 { 254 status = "okay"; 255 }; 256 257 ethernet@60000000 { 258 status = "okay"; 259 260 ethernet-port@0 { 261 phy-mode = "rg 262 phy-handle = < 263 }; 264 ethernet-port@1 { 265 phy-mode = "rg 266 fixed-link { 267 speed 268 full-d 269 pause; 270 }; 271 }; 272 }; 273 274 ide@63000000 { 275 status = "okay"; 276 }; 277 278 usb@68000000 { 279 status = "okay"; 280 }; 281 282 usb@69000000 { 283 status = "okay"; 284 }; 285 }; 286 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.