1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Device Tree file for the Turris Omnia
5 * Copyright (C) 2016 Uwe Kleine-König <uwe@kleine-koenig.org>
6 * Copyright (C) 2016 Tomas Hlavacek <tmshlvkc@gmail.com>
8 * Schematic available at https://www.turris.cz/doc/_media/rtrom01-schema.pdf
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/leds/common.h>
16 #include "armada-385.dtsi"
19 model = "Turris Omnia";
20 compatible = "cznic,turris-omnia", "marvell,armada385", "marvell,armada380";
27 device_type = "memory";
28 reg = <0x00000000 0x40000000>; /* 1024 MB */
32 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
33 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
34 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
35 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
39 /* USB part of the PCIe2/USB 2.0 port */
49 pinctrl-names = "default";
50 pinctrl-0 = <&sdhci_pins>;
88 compatible = "sff,sfp";
90 tx-fault-gpios = <&pcawan 0 GPIO_ACTIVE_HIGH>;
91 tx-disable-gpios = <&pcawan 1 GPIO_ACTIVE_HIGH>;
92 rate-select0-gpios = <&pcawan 2 GPIO_ACTIVE_HIGH>;
93 los-gpios = <&pcawan 3 GPIO_ACTIVE_HIGH>;
94 mod-def0-gpios = <&pcawan 4 GPIO_ACTIVE_LOW>;
95 maximum-power-milliwatt = <3000>;
98 * For now this has to be enabled at boot time by U-Boot when
99 * a SFP module is present. Read more in the comment in the
114 /* Connected to 88E6176 switch, port 6 */
116 pinctrl-names = "default";
117 pinctrl-0 = <&ge0_rgmii_pins>;
120 buffer-manager = <&bm>;
130 /* Connected to 88E6176 switch, port 5 */
132 pinctrl-names = "default";
133 pinctrl-0 = <&ge1_rgmii_pins>;
136 buffer-manager = <&bm>;
149 * eth2 is connected via a multiplexor to both the SFP cage and to
150 * ethernet-phy@1. The multiplexor switches the signal to SFP cage when
151 * a SFP module is present, as determined by the mode-def0 GPIO.
153 * Until kernel supports this configuration properly, in case SFP module
154 * is present, U-Boot has to enable the sfp node above, remove phy
155 * handle and add managed = "in-band-status" property.
159 phy-handle = <&phy1>;
162 buffer-manager = <&bm>;
168 pinctrl-names = "default";
169 pinctrl-0 = <&i2c0_pins>;
173 compatible = "nxp,pca9547";
174 #address-cells = <1>;
179 #address-cells = <1>;
183 /* STM32F0 command interface at address 0x2a */
186 compatible = "cznic,turris-omnia-leds";
188 #address-cells = <1>;
192 * LEDs are controlled by MCU (STM32F0) at
195 * The driver does not support HW control mode
196 * for the LEDs yet. Disable the LEDs for now.
198 * Also LED functions are not stable yet:
199 * - there are 3 LEDs connected via MCU to PCIe
200 * ports. One of these ports supports mSATA.
201 * There is no mSATA nor PCIe function.
202 * For now we use LED_FUNCTION_WLAN, since
203 * in most cases users have wifi cards in
205 * - there are 2 LEDs dedicated for user: A and
206 * B. Again there is no such function defined.
207 * For now we use LED_FUNCTION_INDICATOR
213 color = <LED_COLOR_ID_RGB>;
214 function = LED_FUNCTION_INDICATOR;
215 function-enumerator = <2>;
220 color = <LED_COLOR_ID_RGB>;
221 function = LED_FUNCTION_INDICATOR;
222 function-enumerator = <1>;
227 color = <LED_COLOR_ID_RGB>;
228 function = LED_FUNCTION_WLAN;
229 function-enumerator = <3>;
234 color = <LED_COLOR_ID_RGB>;
235 function = LED_FUNCTION_WLAN;
236 function-enumerator = <2>;
241 color = <LED_COLOR_ID_RGB>;
242 function = LED_FUNCTION_WLAN;
243 function-enumerator = <1>;
248 color = <LED_COLOR_ID_RGB>;
249 function = LED_FUNCTION_WAN;
254 color = <LED_COLOR_ID_RGB>;
255 function = LED_FUNCTION_LAN;
256 function-enumerator = <4>;
261 color = <LED_COLOR_ID_RGB>;
262 function = LED_FUNCTION_LAN;
263 function-enumerator = <3>;
268 color = <LED_COLOR_ID_RGB>;
269 function = LED_FUNCTION_LAN;
270 function-enumerator = <2>;
275 color = <LED_COLOR_ID_RGB>;
276 function = LED_FUNCTION_LAN;
277 function-enumerator = <1>;
282 color = <LED_COLOR_ID_RGB>;
283 function = LED_FUNCTION_LAN;
284 function-enumerator = <0>;
289 color = <LED_COLOR_ID_RGB>;
290 function = LED_FUNCTION_POWER;
295 compatible = "atmel,24c64";
298 /* The EEPROM contains data for bootloader.
300 * struct omnia_eeprom {
301 * u32 magic; (=0x0341a034 in LE)
302 * u32 ramsize; (in GiB)
311 #address-cells = <1>;
315 /* routed to PCIe0/mSATA connector (CN7A) */
319 #address-cells = <1>;
323 /* routed to PCIe1/USB2 connector (CN61A) */
327 #address-cells = <1>;
331 /* routed to PCIe2 connector (CN62A) */
335 #address-cells = <1>;
343 #address-cells = <1>;
347 /* ATSHA204A at address 0x64 */
351 #address-cells = <1>;
355 /* exposed on pin header */
359 #address-cells = <1>;
365 * GPIO expander for SFP+ signals and
368 compatible = "nxp,pca9538";
371 pinctrl-names = "default";
372 pinctrl-0 = <&pcawan_pins>;
374 interrupt-parent = <&gpio1>;
375 interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
385 pinctrl-names = "default";
386 pinctrl-0 = <&mdio_pins>;
389 phy1: ethernet-phy@1 {
390 compatible = "ethernet-phy-ieee802.3-c22";
393 /* irq is connected to &pcawan pin 7 */
396 /* Switch MV88E6176 at address 0x10 */
398 pinctrl-names = "default";
399 pinctrl-0 = <&swint_pins>;
400 compatible = "marvell,mv88e6085";
401 #address-cells = <1>;
407 interrupt-parent = <&gpio1>;
408 interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
411 #address-cells = <1>;
443 phy-mode = "rgmii-id";
451 /* port 6 is connected to eth0 */
457 pcawan_pins: pcawan-pins {
458 marvell,pins = "mpp46";
459 marvell,function = "gpio";
462 swint_pins: swint-pins {
463 marvell,pins = "mpp45";
464 marvell,function = "gpio";
467 spi0cs0_pins: spi0cs0-pins {
468 marvell,pins = "mpp25";
469 marvell,function = "spi0";
472 spi0cs1_pins: spi0cs1-pins {
473 marvell,pins = "mpp26";
474 marvell,function = "spi0";
479 pinctrl-names = "default";
480 pinctrl-0 = <&spi0_pins &spi0cs0_pins>;
484 compatible = "spansion,s25fl164k", "jedec,spi-nor";
485 #address-cells = <1>;
488 spi-max-frequency = <40000000>;
491 compatible = "fixed-partitions";
492 #address-cells = <1>;
496 reg = <0x0 0x00100000>;
501 reg = <0x00100000 0x00700000>;
502 label = "Rescue system";
507 /* MISO, MOSI, SCLK and CS1 are routed to pin header CN11 */
511 /* Pin header CN10 */
512 pinctrl-names = "default";
513 pinctrl-0 = <&uart0_pins>;
518 /* Pin header CN11 */
519 pinctrl-names = "default";
520 pinctrl-0 = <&uart1_pins>;