154c15ec3SPali Rohár// SPDX-License-Identifier: GPL-2.0+ 254c15ec3SPali Rohár/* 354c15ec3SPali Rohár * Turris 1.x Device Tree Source 454c15ec3SPali Rohár * 554c15ec3SPali Rohár * Copyright 2013 - 2022 CZ.NIC z.s.p.o. (http://www.nic.cz/) 654c15ec3SPali Rohár * 754c15ec3SPali Rohár * Pinout, Schematics and Altium hardware design files are open source 854c15ec3SPali Rohár * and available at: https://docs.turris.cz/hw/turris-1x/turris-1x/ 954c15ec3SPali Rohár */ 1054c15ec3SPali Rohár 1154c15ec3SPali Rohár#include <dt-bindings/gpio/gpio.h> 1254c15ec3SPali Rohár#include <dt-bindings/interrupt-controller/irq.h> 1354c15ec3SPali Rohár#include <dt-bindings/leds/common.h> 1454c15ec3SPali Rohár/include/ "fsl/p2020si-pre.dtsi" 1554c15ec3SPali Rohár 1654c15ec3SPali Rohár/ { 1754c15ec3SPali Rohár model = "Turris 1.x"; 1854c15ec3SPali Rohár compatible = "cznic,turris1x", "fsl,P2020RDB-PC"; /* fsl,P2020RDB-PC is required for booting Linux */ 1954c15ec3SPali Rohár 2054c15ec3SPali Rohár aliases { 2154c15ec3SPali Rohár ethernet0 = &enet0; 2254c15ec3SPali Rohár ethernet1 = &enet1; 2354c15ec3SPali Rohár ethernet2 = &enet2; 2454c15ec3SPali Rohár serial0 = &serial0; 2554c15ec3SPali Rohár serial1 = &serial1; 2654c15ec3SPali Rohár pci0 = &pci0; 2754c15ec3SPali Rohár pci1 = &pci1; 2854c15ec3SPali Rohár pci2 = &pci2; 2954c15ec3SPali Rohár spi0 = &spi0; 3054c15ec3SPali Rohár }; 3154c15ec3SPali Rohár 3254c15ec3SPali Rohár memory { 3354c15ec3SPali Rohár device_type = "memory"; 3454c15ec3SPali Rohár }; 3554c15ec3SPali Rohár 3654c15ec3SPali Rohár soc: soc@ffe00000 { 3754c15ec3SPali Rohár ranges = <0x0 0x0 0xffe00000 0x00100000>; 3854c15ec3SPali Rohár 3954c15ec3SPali Rohár i2c@3000 { 4054c15ec3SPali Rohár /* PCA9557PW GPIO controller for boot config */ 4154c15ec3SPali Rohár gpio-controller@18 { 4254c15ec3SPali Rohár compatible = "nxp,pca9557"; 4354c15ec3SPali Rohár label = "bootcfg"; 4454c15ec3SPali Rohár reg = <0x18>; 4554c15ec3SPali Rohár #gpio-cells = <2>; 4654c15ec3SPali Rohár gpio-controller; 4754c15ec3SPali Rohár polarity = <0x00>; 4854c15ec3SPali Rohár }; 4954c15ec3SPali Rohár 5054c15ec3SPali Rohár /* STM32F030R8T6 MCU for power control */ 5154c15ec3SPali Rohár power-control@2a { 5254c15ec3SPali Rohár /* 5354c15ec3SPali Rohár * Turris Power Control firmware runs on STM32F0 MCU. 5454c15ec3SPali Rohár * This firmware is open source and available at: 5554c15ec3SPali Rohár * https://gitlab.nic.cz/turris/hw/turris_power_control 5654c15ec3SPali Rohár */ 5754c15ec3SPali Rohár reg = <0x2a>; 5854c15ec3SPali Rohár }; 5954c15ec3SPali Rohár 6054c15ec3SPali Rohár /* DDR3 SPD/EEPROM PSWP instruction */ 6154c15ec3SPali Rohár eeprom@32 { 6254c15ec3SPali Rohár reg = <0x32>; 6354c15ec3SPali Rohár }; 6454c15ec3SPali Rohár 6554c15ec3SPali Rohár /* SA56004ED temperature control */ 6654c15ec3SPali Rohár temperature-sensor@4c { 6754c15ec3SPali Rohár compatible = "nxp,sa56004"; 6854c15ec3SPali Rohár reg = <0x4c>; 6954c15ec3SPali Rohár interrupt-parent = <&gpio>; 7054c15ec3SPali Rohár interrupts = <12 IRQ_TYPE_LEVEL_LOW>, /* GPIO12 - ALERT pin */ 7154c15ec3SPali Rohár <13 IRQ_TYPE_LEVEL_LOW>; /* GPIO13 - CRIT pin */ 7254c15ec3SPali Rohár }; 7354c15ec3SPali Rohár 7454c15ec3SPali Rohár /* DDR3 SPD/EEPROM */ 7554c15ec3SPali Rohár eeprom@52 { 7654c15ec3SPali Rohár compatible = "atmel,spd"; 7754c15ec3SPali Rohár reg = <0x52>; 7854c15ec3SPali Rohár }; 7954c15ec3SPali Rohár 8054c15ec3SPali Rohár /* MCP79402-I/ST Protected EEPROM */ 8154c15ec3SPali Rohár eeprom@57 { 8254c15ec3SPali Rohár reg = <0x57>; 8354c15ec3SPali Rohár }; 8454c15ec3SPali Rohár 8554c15ec3SPali Rohár /* ATSHA204-TH-DA-T crypto module */ 8654c15ec3SPali Rohár crypto@64 { 8754c15ec3SPali Rohár compatible = "atmel,atsha204"; 8854c15ec3SPali Rohár reg = <0x64>; 8954c15ec3SPali Rohár }; 9054c15ec3SPali Rohár 9154c15ec3SPali Rohár /* IDT6V49205BNLGI clock generator */ 9254c15ec3SPali Rohár clock-generator@69 { 9354c15ec3SPali Rohár compatible = "idt,6v49205b"; 9454c15ec3SPali Rohár reg = <0x69>; 9554c15ec3SPali Rohár }; 9654c15ec3SPali Rohár 9754c15ec3SPali Rohár /* MCP79402-I/ST RTC */ 9854c15ec3SPali Rohár rtc@6f { 9954c15ec3SPali Rohár compatible = "microchip,mcp7940x"; 10054c15ec3SPali Rohár reg = <0x6f>; 10154c15ec3SPali Rohár interrupt-parent = <&gpio>; 10254c15ec3SPali Rohár interrupts = <14 0>; /* GPIO14 - MFP pin */ 10354c15ec3SPali Rohár }; 10454c15ec3SPali Rohár }; 10554c15ec3SPali Rohár 10654c15ec3SPali Rohár /* SPI on connector P1 */ 10754c15ec3SPali Rohár spi0: spi@7000 { 10854c15ec3SPali Rohár }; 10954c15ec3SPali Rohár 11054c15ec3SPali Rohár gpio: gpio-controller@fc00 { 11154c15ec3SPali Rohár #interrupt-cells = <2>; 11254c15ec3SPali Rohár interrupt-controller; 11354c15ec3SPali Rohár }; 11454c15ec3SPali Rohár 11554c15ec3SPali Rohár /* Connected to SMSC USB2412-DZK 2-Port USB 2.0 Hub Controller */ 11654c15ec3SPali Rohár usb@22000 { 11754c15ec3SPali Rohár phy_type = "ulpi"; 11854c15ec3SPali Rohár dr_mode = "host"; 11954c15ec3SPali Rohár }; 12054c15ec3SPali Rohár 12154c15ec3SPali Rohár enet0: ethernet@24000 { 12254c15ec3SPali Rohár /* Connected to port 6 of QCA8337N-AL3C switch */ 12354c15ec3SPali Rohár phy-connection-type = "rgmii-id"; 12454c15ec3SPali Rohár 12554c15ec3SPali Rohár fixed-link { 12654c15ec3SPali Rohár speed = <1000>; 12754c15ec3SPali Rohár full-duplex; 12854c15ec3SPali Rohár }; 12954c15ec3SPali Rohár }; 13054c15ec3SPali Rohár 13154c15ec3SPali Rohár mdio@24520 { 13254c15ec3SPali Rohár /* KSZ9031RNXCA ethernet phy for WAN port */ 13354c15ec3SPali Rohár phy: ethernet-phy@7 { 13454c15ec3SPali Rohár interrupts = <3 1 0 0>; 13554c15ec3SPali Rohár reg = <0x7>; 13654c15ec3SPali Rohár }; 13754c15ec3SPali Rohár 13854c15ec3SPali Rohár /* QCA8337N-AL3C switch with integrated ethernet PHYs for LAN ports */ 13954c15ec3SPali Rohár switch@10 { 14054c15ec3SPali Rohár compatible = "qca,qca8337"; 14154c15ec3SPali Rohár interrupts = <2 1 0 0>; 14254c15ec3SPali Rohár reg = <0x10>; 14354c15ec3SPali Rohár 14454c15ec3SPali Rohár ports { 14554c15ec3SPali Rohár #address-cells = <1>; 14654c15ec3SPali Rohár #size-cells = <0>; 14754c15ec3SPali Rohár 14854c15ec3SPali Rohár port@0 { 14954c15ec3SPali Rohár reg = <0>; 15054c15ec3SPali Rohár label = "cpu1"; 15154c15ec3SPali Rohár ethernet = <&enet1>; 15254c15ec3SPali Rohár phy-mode = "rgmii-id"; 15354c15ec3SPali Rohár 15454c15ec3SPali Rohár fixed-link { 15554c15ec3SPali Rohár speed = <1000>; 15654c15ec3SPali Rohár full-duplex; 15754c15ec3SPali Rohár }; 15854c15ec3SPali Rohár }; 15954c15ec3SPali Rohár 16054c15ec3SPali Rohár port@1 { 16154c15ec3SPali Rohár reg = <1>; 16254c15ec3SPali Rohár label = "lan5"; 16354c15ec3SPali Rohár }; 16454c15ec3SPali Rohár 16554c15ec3SPali Rohár port@2 { 16654c15ec3SPali Rohár reg = <2>; 16754c15ec3SPali Rohár label = "lan4"; 16854c15ec3SPali Rohár }; 16954c15ec3SPali Rohár 17054c15ec3SPali Rohár port@3 { 17154c15ec3SPali Rohár reg = <3>; 17254c15ec3SPali Rohár label = "lan3"; 17354c15ec3SPali Rohár }; 17454c15ec3SPali Rohár 17554c15ec3SPali Rohár port@4 { 17654c15ec3SPali Rohár reg = <4>; 17754c15ec3SPali Rohár label = "lan2"; 17854c15ec3SPali Rohár }; 17954c15ec3SPali Rohár 18054c15ec3SPali Rohár port@5 { 18154c15ec3SPali Rohár reg = <5>; 18254c15ec3SPali Rohár label = "lan1"; 18354c15ec3SPali Rohár }; 18454c15ec3SPali Rohár 18554c15ec3SPali Rohár port@6 { 18654c15ec3SPali Rohár reg = <6>; 18754c15ec3SPali Rohár label = "cpu0"; 18854c15ec3SPali Rohár ethernet = <&enet0>; 18954c15ec3SPali Rohár phy-mode = "rgmii-id"; 19054c15ec3SPali Rohár 19154c15ec3SPali Rohár fixed-link { 19254c15ec3SPali Rohár speed = <1000>; 19354c15ec3SPali Rohár full-duplex; 19454c15ec3SPali Rohár }; 19554c15ec3SPali Rohár }; 19654c15ec3SPali Rohár }; 19754c15ec3SPali Rohár }; 19854c15ec3SPali Rohár }; 19954c15ec3SPali Rohár 20054c15ec3SPali Rohár ptp_clock@24e00 { 20154c15ec3SPali Rohár fsl,tclk-period = <5>; 20254c15ec3SPali Rohár fsl,tmr-prsc = <200>; 20354c15ec3SPali Rohár fsl,tmr-add = <0xcccccccd>; 20454c15ec3SPali Rohár fsl,tmr-fiper1 = <0x3b9ac9fb>; 20554c15ec3SPali Rohár fsl,tmr-fiper2 = <0x0001869b>; 20654c15ec3SPali Rohár fsl,max-adj = <249999999>; 20754c15ec3SPali Rohár }; 20854c15ec3SPali Rohár 20954c15ec3SPali Rohár enet1: ethernet@25000 { 21054c15ec3SPali Rohár /* Connected to port 0 of QCA8337N-AL3C switch */ 21154c15ec3SPali Rohár phy-connection-type = "rgmii-id"; 21254c15ec3SPali Rohár 21354c15ec3SPali Rohár fixed-link { 21454c15ec3SPali Rohár speed = <1000>; 21554c15ec3SPali Rohár full-duplex; 21654c15ec3SPali Rohár }; 21754c15ec3SPali Rohár }; 21854c15ec3SPali Rohár 21954c15ec3SPali Rohár mdio@25520 { 22054c15ec3SPali Rohár status = "disabled"; 22154c15ec3SPali Rohár }; 22254c15ec3SPali Rohár 22354c15ec3SPali Rohár enet2: ethernet@26000 { 22454c15ec3SPali Rohár /* Connected to KSZ9031RNXCA ethernet phy (WAN port) */ 22554c15ec3SPali Rohár label = "wan"; 22654c15ec3SPali Rohár phy-handle = <&phy>; 22754c15ec3SPali Rohár phy-connection-type = "rgmii-id"; 22854c15ec3SPali Rohár }; 22954c15ec3SPali Rohár 23054c15ec3SPali Rohár mdio@26520 { 23154c15ec3SPali Rohár status = "disabled"; 23254c15ec3SPali Rohár }; 23354c15ec3SPali Rohár 23454c15ec3SPali Rohár sdhc@2e000 { 23554c15ec3SPali Rohár bus-width = <4>; 23654c15ec3SPali Rohár cd-gpios = <&gpio 8 GPIO_ACTIVE_LOW>; 23754c15ec3SPali Rohár }; 23854c15ec3SPali Rohár }; 23954c15ec3SPali Rohár 24054c15ec3SPali Rohár lbc: localbus@ffe05000 { 24154c15ec3SPali Rohár reg = <0 0xffe05000 0 0x1000>; 24254c15ec3SPali Rohár 24354c15ec3SPali Rohár ranges = <0x0 0x0 0x0 0xef000000 0x01000000>, /* NOR */ 24454c15ec3SPali Rohár <0x1 0x0 0x0 0xff800000 0x00040000>, /* NAND */ 24554c15ec3SPali Rohár <0x3 0x0 0x0 0xffa00000 0x00020000>; /* CPLD */ 24654c15ec3SPali Rohár 24754c15ec3SPali Rohár /* S29GL128P90TFIR10 NOR */ 24854c15ec3SPali Rohár nor@0,0 { 24954c15ec3SPali Rohár compatible = "cfi-flash"; 25054c15ec3SPali Rohár reg = <0x0 0x0 0x01000000>; 25154c15ec3SPali Rohár bank-width = <2>; 25254c15ec3SPali Rohár device-width = <1>; 25354c15ec3SPali Rohár 25454c15ec3SPali Rohár partitions { 25554c15ec3SPali Rohár compatible = "fixed-partitions"; 25654c15ec3SPali Rohár #address-cells = <1>; 25754c15ec3SPali Rohár #size-cells = <1>; 25854c15ec3SPali Rohár 25954c15ec3SPali Rohár partition@0 { 26054c15ec3SPali Rohár /* 128 kB for Device Tree Blob */ 26154c15ec3SPali Rohár reg = <0x00000000 0x00020000>; 26254c15ec3SPali Rohár label = "dtb"; 26354c15ec3SPali Rohár }; 26454c15ec3SPali Rohár 26554c15ec3SPali Rohár partition@20000 { 26654c15ec3SPali Rohár /* 1.7 MB for Rescue Linux Kernel Image */ 26754c15ec3SPali Rohár reg = <0x00020000 0x001a0000>; 26854c15ec3SPali Rohár label = "rescue-kernel"; 26954c15ec3SPali Rohár }; 27054c15ec3SPali Rohár 27154c15ec3SPali Rohár partition@1c0000 { 27254c15ec3SPali Rohár /* 1.5 MB for Rescue JFFS2 Root File System */ 27354c15ec3SPali Rohár reg = <0x001c0000 0x00180000>; 27454c15ec3SPali Rohár label = "rescue-rootfs"; 27554c15ec3SPali Rohár }; 27654c15ec3SPali Rohár 27754c15ec3SPali Rohár partition@340000 { 27854c15ec3SPali Rohár /* 11 MB for TAR.XZ Backup with content of NAND Root File System */ 27954c15ec3SPali Rohár reg = <0x00340000 0x00b00000>; 28054c15ec3SPali Rohár label = "backup-rootfs"; 28154c15ec3SPali Rohár }; 28254c15ec3SPali Rohár 28354c15ec3SPali Rohár partition@e40000 { 28454c15ec3SPali Rohár /* 768 kB for Certificates JFFS2 File System */ 28554c15ec3SPali Rohár reg = <0x00e40000 0x000c0000>; 28654c15ec3SPali Rohár label = "certificates"; 28754c15ec3SPali Rohár }; 28854c15ec3SPali Rohár 28954c15ec3SPali Rohár /* free unused space 0x00f00000-0x00f20000 */ 29054c15ec3SPali Rohár 29154c15ec3SPali Rohár partition@f20000 { 29254c15ec3SPali Rohár /* 128 kB for U-Boot Environment Variables */ 29354c15ec3SPali Rohár reg = <0x00f20000 0x00020000>; 29454c15ec3SPali Rohár label = "u-boot-env"; 29554c15ec3SPali Rohár }; 29654c15ec3SPali Rohár 29754c15ec3SPali Rohár partition@f40000 { 29854c15ec3SPali Rohár /* 768 kB for U-Boot Bootloader Image */ 29954c15ec3SPali Rohár reg = <0x00f40000 0x000c0000>; 30054c15ec3SPali Rohár label = "u-boot"; 30154c15ec3SPali Rohár }; 30254c15ec3SPali Rohár }; 30354c15ec3SPali Rohár }; 30454c15ec3SPali Rohár 30554c15ec3SPali Rohár /* MT29F2G08ABAEAWP:E NAND */ 30654c15ec3SPali Rohár nand@1,0 { 30754c15ec3SPali Rohár compatible = "fsl,p2020-fcm-nand", "fsl,elbc-fcm-nand"; 30854c15ec3SPali Rohár reg = <0x1 0x0 0x00040000>; 30954c15ec3SPali Rohár nand-ecc-mode = "soft"; 31054c15ec3SPali Rohár nand-ecc-algo = "bch"; 31154c15ec3SPali Rohár 31254c15ec3SPali Rohár partitions { 31354c15ec3SPali Rohár compatible = "fixed-partitions"; 31454c15ec3SPali Rohár #address-cells = <1>; 31554c15ec3SPali Rohár #size-cells = <1>; 31654c15ec3SPali Rohár 31754c15ec3SPali Rohár partition@0 { 31854c15ec3SPali Rohár /* 256 MB for UBI with one volume: UBIFS Root File System */ 31954c15ec3SPali Rohár reg = <0x00000000 0x10000000>; 32054c15ec3SPali Rohár label = "rootfs"; 32154c15ec3SPali Rohár }; 32254c15ec3SPali Rohár }; 32354c15ec3SPali Rohár }; 32454c15ec3SPali Rohár 32554c15ec3SPali Rohár /* LCMXO1200C-3FTN256C FPGA */ 32654c15ec3SPali Rohár cpld@3,0 { 32754c15ec3SPali Rohár /* 32854c15ec3SPali Rohár * Turris CPLD firmware which runs on this Lattice FPGA, 32954c15ec3SPali Rohár * is extended version of P1021RDB-PC CPLD v4.1 firmware. 33054c15ec3SPali Rohár * It is backward compatible with its original version 33154c15ec3SPali Rohár * and the only extension is support for Turris LEDs. 33254c15ec3SPali Rohár * Turris CPLD firmware is open source and available at: 33354c15ec3SPali Rohár * https://gitlab.nic.cz/turris/hw/turris_cpld/-/blob/master/CZ_NIC_Router_CPLD.v 33454c15ec3SPali Rohár */ 335*0531a4abSPali Rohár compatible = "cznic,turris1x-cpld", "fsl,p1021rdb-pc-cpld", "simple-bus", "syscon"; 33654c15ec3SPali Rohár reg = <0x3 0x0 0x30>; 33754c15ec3SPali Rohár #address-cells = <1>; 33854c15ec3SPali Rohár #size-cells = <1>; 33954c15ec3SPali Rohár ranges = <0x0 0x3 0x0 0x00020000>; 34054c15ec3SPali Rohár 34154c15ec3SPali Rohár /* MAX6370KA+T watchdog */ 34254c15ec3SPali Rohár watchdog@2 { 34354c15ec3SPali Rohár /* 34454c15ec3SPali Rohár * CPLD firmware maps SET0, SET1 and SET2 34554c15ec3SPali Rohár * input logic of MAX6370KA+T chip to CPLD 34654c15ec3SPali Rohár * memory space at byte offset 0x2. WDI 34754c15ec3SPali Rohár * input logic is outside of the CPLD and 34854c15ec3SPali Rohár * connected via external GPIO. 34954c15ec3SPali Rohár */ 35054c15ec3SPali Rohár compatible = "maxim,max6370"; 35154c15ec3SPali Rohár reg = <0x02 0x01>; 35254c15ec3SPali Rohár gpios = <&gpio 11 GPIO_ACTIVE_LOW>; 35354c15ec3SPali Rohár }; 35454c15ec3SPali Rohár 355*0531a4abSPali Rohár reboot@d { 356*0531a4abSPali Rohár compatible = "syscon-reboot"; 357*0531a4abSPali Rohár reg = <0x0d 0x01>; 358*0531a4abSPali Rohár offset = <0x0d>; 359*0531a4abSPali Rohár mask = <0x01>; 360*0531a4abSPali Rohár value = <0x01>; 361*0531a4abSPali Rohár }; 362*0531a4abSPali Rohár 36354c15ec3SPali Rohár led-controller@13 { 36454c15ec3SPali Rohár /* 36554c15ec3SPali Rohár * LEDs are controlled by CPLD firmware. 36654c15ec3SPali Rohár * All five LAN LEDs share common RGB settings 36754c15ec3SPali Rohár * and so it is not possible to set different 36854c15ec3SPali Rohár * colors on different LAN ports. 36954c15ec3SPali Rohár */ 37054c15ec3SPali Rohár compatible = "cznic,turris1x-leds"; 37154c15ec3SPali Rohár reg = <0x13 0x1d>; 37254c15ec3SPali Rohár #address-cells = <1>; 37354c15ec3SPali Rohár #size-cells = <0>; 37454c15ec3SPali Rohár 37554c15ec3SPali Rohár multi-led@0 { 37654c15ec3SPali Rohár reg = <0x0>; 37754c15ec3SPali Rohár color = <LED_COLOR_ID_RGB>; 37854c15ec3SPali Rohár function = LED_FUNCTION_WAN; 37954c15ec3SPali Rohár }; 38054c15ec3SPali Rohár 38154c15ec3SPali Rohár multi-led@1 { 38254c15ec3SPali Rohár reg = <0x1>; 38354c15ec3SPali Rohár color = <LED_COLOR_ID_RGB>; 38454c15ec3SPali Rohár function = LED_FUNCTION_LAN; 38554c15ec3SPali Rohár function-enumerator = <5>; 38654c15ec3SPali Rohár }; 38754c15ec3SPali Rohár 38854c15ec3SPali Rohár multi-led@2 { 38954c15ec3SPali Rohár reg = <0x2>; 39054c15ec3SPali Rohár color = <LED_COLOR_ID_RGB>; 39154c15ec3SPali Rohár function = LED_FUNCTION_LAN; 39254c15ec3SPali Rohár function-enumerator = <4>; 39354c15ec3SPali Rohár }; 39454c15ec3SPali Rohár 39554c15ec3SPali Rohár multi-led@3 { 39654c15ec3SPali Rohár reg = <0x3>; 39754c15ec3SPali Rohár color = <LED_COLOR_ID_RGB>; 39854c15ec3SPali Rohár function = LED_FUNCTION_LAN; 39954c15ec3SPali Rohár function-enumerator = <3>; 40054c15ec3SPali Rohár }; 40154c15ec3SPali Rohár 40254c15ec3SPali Rohár multi-led@4 { 40354c15ec3SPali Rohár reg = <0x4>; 40454c15ec3SPali Rohár color = <LED_COLOR_ID_RGB>; 40554c15ec3SPali Rohár function = LED_FUNCTION_LAN; 40654c15ec3SPali Rohár function-enumerator = <2>; 40754c15ec3SPali Rohár }; 40854c15ec3SPali Rohár 40954c15ec3SPali Rohár multi-led@5 { 41054c15ec3SPali Rohár reg = <0x5>; 41154c15ec3SPali Rohár color = <LED_COLOR_ID_RGB>; 41254c15ec3SPali Rohár function = LED_FUNCTION_LAN; 41354c15ec3SPali Rohár function-enumerator = <1>; 41454c15ec3SPali Rohár }; 41554c15ec3SPali Rohár 41654c15ec3SPali Rohár multi-led@6 { 41754c15ec3SPali Rohár reg = <0x6>; 41854c15ec3SPali Rohár color = <LED_COLOR_ID_RGB>; 41954c15ec3SPali Rohár function = LED_FUNCTION_WLAN; 42054c15ec3SPali Rohár }; 42154c15ec3SPali Rohár 42254c15ec3SPali Rohár multi-led@7 { 42354c15ec3SPali Rohár reg = <0x7>; 42454c15ec3SPali Rohár color = <LED_COLOR_ID_RGB>; 42554c15ec3SPali Rohár function = LED_FUNCTION_POWER; 42654c15ec3SPali Rohár }; 42754c15ec3SPali Rohár }; 42854c15ec3SPali Rohár }; 42954c15ec3SPali Rohár }; 43054c15ec3SPali Rohár 43154c15ec3SPali Rohár pci2: pcie@ffe08000 { 43254c15ec3SPali Rohár /* 43354c15ec3SPali Rohár * PCIe bus for on-board TUSB7340RKM USB 3.0 xHCI controller. 43454c15ec3SPali Rohár * This xHCI controller is available only on Turris 1.1 boards. 43554c15ec3SPali Rohár * Turris 1.0 boards have nothing connected to this PCIe bus, 43654c15ec3SPali Rohár * so system would see only PCIe Root Port of this PCIe Root 43754c15ec3SPali Rohár * Complex. TUSB7340RKM xHCI controller has four SuperSpeed 43854c15ec3SPali Rohár * channels. Channel 0 is connected to the front USB 3.0 port, 43954c15ec3SPali Rohár * channel 1 (but only USB 2.0 subset) to USB 2.0 pins on mPCIe 44054c15ec3SPali Rohár * slot 1 (CN5), channels 2 and 3 to connector P600. 44154c15ec3SPali Rohár * 44254c15ec3SPali Rohár * P2020 PCIe Root Port uses 1MB of PCIe MEM and xHCI controller 44354c15ec3SPali Rohár * uses 64kB + 8kB of PCIe MEM. No PCIe IO is used or required. 44454c15ec3SPali Rohár * So allocate 2MB of PCIe MEM for this PCIe bus. 44554c15ec3SPali Rohár */ 44654c15ec3SPali Rohár reg = <0 0xffe08000 0 0x1000>; 44754c15ec3SPali Rohár ranges = <0x02000000 0x0 0xc0000000 0 0xc0000000 0x0 0x00200000>, /* MEM */ 44854c15ec3SPali Rohár <0x01000000 0x0 0x00000000 0 0xffc20000 0x0 0x00010000>; /* IO */ 44954c15ec3SPali Rohár 45054c15ec3SPali Rohár pcie@0 { 45154c15ec3SPali Rohár ranges; 45254c15ec3SPali Rohár }; 45354c15ec3SPali Rohár }; 45454c15ec3SPali Rohár 45554c15ec3SPali Rohár pci1: pcie@ffe09000 { 45654c15ec3SPali Rohár /* PCIe bus on mPCIe slot 2 (CN6) for expansion mPCIe card */ 45754c15ec3SPali Rohár reg = <0 0xffe09000 0 0x1000>; 45854c15ec3SPali Rohár ranges = <0x02000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000>, /* MEM */ 45954c15ec3SPali Rohár <0x01000000 0x0 0x00000000 0 0xffc10000 0x0 0x00010000>; /* IO */ 46054c15ec3SPali Rohár 46154c15ec3SPali Rohár pcie@0 { 46254c15ec3SPali Rohár ranges; 46354c15ec3SPali Rohár }; 46454c15ec3SPali Rohár }; 46554c15ec3SPali Rohár 46654c15ec3SPali Rohár pci0: pcie@ffe0a000 { 46754c15ec3SPali Rohár /* 46854c15ec3SPali Rohár * PCIe bus on mPCIe slot 1 (CN5) for expansion mPCIe card. 46954c15ec3SPali Rohár * Turris 1.1 boards have in this mPCIe slot additional USB 2.0 47054c15ec3SPali Rohár * pins via channel 1 of TUSB7340RKM xHCI controller and also 47154c15ec3SPali Rohár * additional SIM card slot, both for USB-based WWAN cards. 47254c15ec3SPali Rohár */ 47354c15ec3SPali Rohár reg = <0 0xffe0a000 0 0x1000>; 47454c15ec3SPali Rohár ranges = <0x02000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000>, /* MEM */ 47554c15ec3SPali Rohár <0x01000000 0x0 0x00000000 0 0xffc00000 0x0 0x00010000>; /* IO */ 47654c15ec3SPali Rohár 47754c15ec3SPali Rohár pcie@0 { 47854c15ec3SPali Rohár ranges; 47954c15ec3SPali Rohár }; 48054c15ec3SPali Rohár }; 48154c15ec3SPali Rohár}; 48254c15ec3SPali Rohár 48354c15ec3SPali Rohár/include/ "fsl/p2020si-post.dtsi" 484