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";
33 device_type = "memory";
34 reg = <0x00000000 0x40000000>; /* 1024 MB */
38 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
39 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
40 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
41 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
42 MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
46 /* USB part of the PCIe2/USB 2.0 port */
56 pinctrl-names = "default";
57 pinctrl-0 = <&sdhci_pins>;
80 slot-power-limit-milliwatt = <10000>;
86 slot-power-limit-milliwatt = <10000>;
92 slot-power-limit-milliwatt = <10000>;
98 compatible = "sff,sfp";
100 tx-fault-gpios = <&pcawan 0 GPIO_ACTIVE_HIGH>;
101 tx-disable-gpios = <&pcawan 1 GPIO_ACTIVE_HIGH>;
102 rate-select0-gpios = <&pcawan 2 GPIO_ACTIVE_HIGH>;
103 los-gpios = <&pcawan 3 GPIO_ACTIVE_HIGH>;
104 mod-def0-gpios = <&pcawan 4 GPIO_ACTIVE_LOW>;
105 maximum-power-milliwatt = <3000>;
108 * For now this has to be enabled at boot time by U-Boot when
109 * a SFP module is present. Read more in the comment in the
116 compatible = "simple-audio-card";
117 simple-audio-card,name = "SPDIF";
118 simple-audio-card,format = "i2s";
120 simple-audio-card,cpu {
121 sound-dai = <&audio_controller 1>;
124 simple-audio-card,codec {
125 sound-dai = <&spdif_out>;
129 spdif_out: spdif-out {
130 #sound-dai-cells = <0>;
131 compatible = "linux,spdif-dit";
136 /* Pin header U16, GPIO51 in SPDIFO mode */
137 pinctrl-0 = <&spdif_pins>;
138 pinctrl-names = "default";
151 /* Connected to 88E6176 switch, port 6 */
153 pinctrl-names = "default";
154 pinctrl-0 = <&ge0_rgmii_pins>;
157 buffer-manager = <&bm>;
167 /* Connected to 88E6176 switch, port 5 */
169 pinctrl-names = "default";
170 pinctrl-0 = <&ge1_rgmii_pins>;
173 buffer-manager = <&bm>;
186 * eth2 is connected via a multiplexor to both the SFP cage and to
187 * ethernet-phy@1. The multiplexor switches the signal to SFP cage when
188 * a SFP module is present, as determined by the mode-def0 GPIO.
190 * Until kernel supports this configuration properly, in case SFP module
191 * is present, U-Boot has to enable the sfp node above, remove phy
192 * handle and add managed = "in-band-status" property.
196 phy-handle = <&phy1>;
199 buffer-manager = <&bm>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&i2c0_pins>;
211 compatible = "nxp,pca9547";
212 #address-cells = <1>;
217 #address-cells = <1>;
221 /* STM32F0 command interface at address 0x2a */
224 compatible = "cznic,turris-omnia-leds";
226 #address-cells = <1>;
231 * LEDs are controlled by MCU (STM32F0) at
234 * LED functions are not stable yet:
235 * - there are 3 LEDs connected via MCU to PCIe
236 * ports. One of these ports supports mSATA.
237 * There is no mSATA nor PCIe function.
238 * For now we use LED_FUNCTION_WLAN, since
239 * in most cases users have wifi cards in
241 * - there are 2 LEDs dedicated for user: A and
242 * B. Again there is no such function defined.
243 * For now we use LED_FUNCTION_INDICATOR
248 color = <LED_COLOR_ID_RGB>;
249 function = LED_FUNCTION_INDICATOR;
250 function-enumerator = <2>;
255 color = <LED_COLOR_ID_RGB>;
256 function = LED_FUNCTION_INDICATOR;
257 function-enumerator = <1>;
262 color = <LED_COLOR_ID_RGB>;
263 function = LED_FUNCTION_WLAN;
264 function-enumerator = <3>;
269 color = <LED_COLOR_ID_RGB>;
270 function = LED_FUNCTION_WLAN;
271 function-enumerator = <2>;
276 color = <LED_COLOR_ID_RGB>;
277 function = LED_FUNCTION_WLAN;
278 function-enumerator = <1>;
283 color = <LED_COLOR_ID_RGB>;
284 function = LED_FUNCTION_WAN;
289 color = <LED_COLOR_ID_RGB>;
290 function = LED_FUNCTION_LAN;
291 function-enumerator = <4>;
296 color = <LED_COLOR_ID_RGB>;
297 function = LED_FUNCTION_LAN;
298 function-enumerator = <3>;
303 color = <LED_COLOR_ID_RGB>;
304 function = LED_FUNCTION_LAN;
305 function-enumerator = <2>;
310 color = <LED_COLOR_ID_RGB>;
311 function = LED_FUNCTION_LAN;
312 function-enumerator = <1>;
317 color = <LED_COLOR_ID_RGB>;
318 function = LED_FUNCTION_LAN;
319 function-enumerator = <0>;
324 color = <LED_COLOR_ID_RGB>;
325 function = LED_FUNCTION_POWER;
330 compatible = "atmel,24c64";
333 /* The EEPROM contains data for bootloader.
335 * struct omnia_eeprom {
336 * u32 magic; (=0x0341a034 in LE)
337 * u32 ramsize; (in GiB)
346 #address-cells = <1>;
350 /* routed to PCIe0/mSATA connector (CN7A) */
354 #address-cells = <1>;
358 /* routed to PCIe1/USB2 connector (CN61A) */
362 #address-cells = <1>;
366 /* routed to PCIe2 connector (CN62A) */
370 #address-cells = <1>;
378 #address-cells = <1>;
382 /* ATSHA204A-MAHDA-T crypto module */
384 compatible = "atmel,atsha204a";
390 #address-cells = <1>;
394 /* exposed on pin header */
398 #address-cells = <1>;
404 * GPIO expander for SFP+ signals and
407 compatible = "nxp,pca9538";
410 pinctrl-names = "default";
411 pinctrl-0 = <&pcawan_pins>;
413 interrupt-parent = <&gpio1>;
414 interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
424 pinctrl-names = "default";
425 pinctrl-0 = <&mdio_pins>;
428 phy1: ethernet-phy@1 {
429 compatible = "ethernet-phy-ieee802.3-c22";
431 marvell,reg-init = <3 18 0 0x4985>,
432 <3 16 0xfff0 0x0001>;
434 /* irq is connected to &pcawan pin 7 */
437 /* Switch MV88E6176 at address 0x10 */
439 pinctrl-names = "default";
440 pinctrl-0 = <&swint_pins>;
441 compatible = "marvell,mv88e6085";
446 interrupt-parent = <&gpio1>;
447 interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
450 #address-cells = <1>;
481 phy-mode = "rgmii-id";
492 phy-mode = "rgmii-id";
504 pcawan_pins: pcawan-pins {
505 marvell,pins = "mpp46";
506 marvell,function = "gpio";
509 swint_pins: swint-pins {
510 marvell,pins = "mpp45";
511 marvell,function = "gpio";
514 spi0cs0_pins: spi0cs0-pins {
515 marvell,pins = "mpp25";
516 marvell,function = "spi0";
519 spi0cs2_pins: spi0cs2-pins {
520 marvell,pins = "mpp26";
521 marvell,function = "spi0";
526 pinctrl-names = "default";
527 pinctrl-0 = <&spi0_pins &spi0cs0_pins>;
531 compatible = "spansion,s25fl164k", "jedec,spi-nor";
532 #address-cells = <1>;
535 spi-max-frequency = <40000000>;
538 compatible = "fixed-partitions";
539 #address-cells = <1>;
543 reg = <0x0 0x00100000>;
548 reg = <0x00100000 0x00700000>;
549 label = "Rescue system";
554 /* MISO, MOSI, SCLK and CS2 are routed to pin header CN11 */
558 /* Pin header CN10 */
559 pinctrl-names = "default";
560 pinctrl-0 = <&uart0_pins>;
565 /* Pin header CN11 */
566 pinctrl-names = "default";
567 pinctrl-0 = <&uart1_pins>;