2 * Device Tree file for the Turris Omnia
4 * Copyright (C) 2016 Uwe Kleine-König <uwe@kleine-koenig.org>
5 * Copyright (C) 2016 Tomas Hlavacek <tmshlvkc@gmail.com>
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
12 * a) This file is licensed under the terms of the GNU General Public
13 * License version 2. This program is licensed "as is" without
14 * any warranty of any kind, whether express or implied.
18 * b) Permission is hereby granted, free of charge, to any person
19 * obtaining a copy of this software and associated documentation
20 * files (the "Software"), to deal in the Software without
21 * restriction, including without limitation the rights to use,
22 * copy, modify, merge, publish, distribute, sublicense, and/or
23 * sell copies of the Software, and to permit persons to whom the
24 * Software is furnished to do so, subject to the following
27 * The above copyright notice and this permission notice shall be
28 * included in all copies or substantial portions of the Software.
30 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
32 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
33 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
34 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
35 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
36 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
37 * OTHER DEALINGS IN THE SOFTWARE.
41 * Schematic available at https://www.turris.cz/doc/_media/rtrom01-schema.pdf
46 #include <dt-bindings/gpio/gpio.h>
47 #include <dt-bindings/input/input.h>
48 #include "armada-385.dtsi"
51 model = "Turris Omnia";
52 compatible = "cznic,turris-omnia", "marvell,armada385", "marvell,armada380";
65 device_type = "memory";
66 reg = <0x00000000 0x40000000>; /* 1024 MB */
70 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
71 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
72 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
73 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
77 /* USB part of the PCIe2/USB 2.0 port */
87 pinctrl-names = "default";
88 pinctrl-0 = <&sdhci_pins>;
126 /* Connected to 88E6176 switch, port 6 */
128 pinctrl-names = "default";
129 pinctrl-0 = <&ge0_rgmii_pins>;
139 /* Connected to 88E6176 switch, port 5 */
141 pinctrl-names = "default";
142 pinctrl-0 = <&ge1_rgmii_pins>;
160 pinctrl-names = "default";
161 pinctrl-0 = <&i2c0_pins>;
165 compatible = "nxp,pca9547";
166 #address-cells = <1>;
172 #address-cells = <1>;
176 /* STM32F0 command interface at address 0x2a */
177 /* leds device (in STM32F0) at address 0x2b */
180 compatible = "atmel,24c64";
183 /* The EEPROM contains data for bootloader.
185 * struct omnia_eeprom {
186 * u32 magic; (=0x0341a034 in LE)
187 * u32 ramsize; (in GiB)
196 #address-cells = <1>;
200 /* routed to PCIe0/mSATA connector (CN7A) */
204 #address-cells = <1>;
208 /* routed to PCIe1/USB2 connector (CN61A) */
212 #address-cells = <1>;
216 /* routed to PCIe2 connector (CN62A) */
220 #address-cells = <1>;
228 #address-cells = <1>;
232 /* ATSHA204A at address 0x64 */
236 #address-cells = <1>;
240 /* exposed on pin header */
244 #address-cells = <1>;
250 * GPIO expander for SFP+ signals and
253 compatible = "nxp,pca9538";
256 pinctrl-names = "default";
257 pinctrl-0 = <&pcawan_pins>;
259 interrupt-parent = <&gpio1>;
260 interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
270 pinctrl-names = "default";
271 pinctrl-0 = <&mdio_pins>;
276 compatible = "ethernet-phy-id0141.0DD1", "ethernet-phy-ieee802.3-c22";
278 marvell,reg-init = <3 18 0 0x4985>;
280 /* irq is connected to &pcawan pin 7 */
283 /* Switch MV88E6176 at address 0x10 */
285 compatible = "marvell,mv88e6085";
286 #address-cells = <1>;
293 #address-cells = <1>;
325 phy-mode = "rgmii-id";
337 phy-mode = "rgmii-id";
349 pcawan_pins: pcawan-pins {
350 marvell,pins = "mpp46";
351 marvell,function = "gpio";
354 spi0cs0_pins: spi0cs0-pins {
355 marvell,pins = "mpp25";
356 marvell,function = "spi0";
359 spi0cs2_pins: spi0cs2-pins {
360 marvell,pins = "mpp26";
361 marvell,function = "spi0";
366 pinctrl-names = "default";
367 pinctrl-0 = <&spi0_pins &spi0cs0_pins>;
371 compatible = "spansion,s25fl164k", "jedec,spi-nor";
372 #address-cells = <1>;
375 spi-max-frequency = <40000000>;
378 compatible = "fixed-partitions";
379 #address-cells = <1>;
383 reg = <0x0 0x00100000>;
388 reg = <0x00100000 0x00700000>;
389 label = "Rescue system";
394 /* MISO, MOSI, SCLK and CS2 are routed to pin header CN11 */
398 /* Pin header CN10 */
399 pinctrl-names = "default";
400 pinctrl-0 = <&uart0_pins>;
405 /* Pin header CN11 */
406 pinctrl-names = "default";
407 pinctrl-0 = <&uart1_pins>;