Lines Matching +full:syscon +full:- +full:pcie +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright 2013 - 2022 CZ.NIC z.s.p.o. (http://www.nic.cz/)
8 * and available at: https://docs.turris.cz/hw/turris-1x/turris-1x/
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
13 #include <dt-bindings/leds/common.h>
14 /include/ "fsl/p2020si-pre.dtsi"
18 …compatible = "cznic,turris1x", "fsl,P2020RDB-PC"; /* fsl,P2020RDB-PC is required for booting Linux…
41 gpio-controller@18 {
45 #gpio-cells = <2>;
46 gpio-controller;
51 power-control@2a {
66 temperature-sensor@4c {
69 interrupt-parent = <&gpio>;
70 interrupts = <12 IRQ_TYPE_LEVEL_LOW>, /* GPIO12 - ALERT pin */
71 <13 IRQ_TYPE_LEVEL_LOW>; /* GPIO13 - CRIT pin */
80 /* MCP79402-I/ST Protected EEPROM */
85 /* ATSHA204-TH-DA-T crypto module */
92 clock-generator@69 {
97 /* MCP79402-I/ST RTC */
101 interrupt-parent = <&gpio>;
102 interrupts = <14 0>; /* GPIO14 - MFP pin */
110 gpio: gpio-controller@fc00 {
111 #interrupt-cells = <2>;
112 interrupt-controller;
115 /* Connected to SMSC USB2412-DZK 2-Port USB 2.0 Hub Controller */
122 /* Connected to port 6 of QCA8337N-AL3C switch */
123 phy-connection-type = "rgmii-id";
125 fixed-link {
127 full-duplex;
133 phy: ethernet-phy@7 {
138 /* QCA8337N-AL3C switch with integrated ethernet PHYs for LAN ports */
145 #address-cells = <1>;
146 #size-cells = <0>;
152 phy-mode = "rgmii-id";
154 fixed-link {
156 full-duplex;
189 phy-mode = "rgmii-id";
191 fixed-link {
193 full-duplex;
201 fsl,tclk-period = <5>;
202 fsl,tmr-prsc = <200>;
203 fsl,tmr-add = <0xcccccccd>;
204 fsl,tmr-fiper1 = <0x3b9ac9fb>;
205 fsl,tmr-fiper2 = <0x0001869b>;
206 fsl,max-adj = <249999999>;
210 /* Connected to port 0 of QCA8337N-AL3C switch */
211 phy-connection-type = "rgmii-id";
213 fixed-link {
215 full-duplex;
226 phy-handle = <&phy>;
227 phy-connection-type = "rgmii-id";
235 bus-width = <4>;
236 cd-gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
249 compatible = "cfi-flash";
251 bank-width = <2>;
252 device-width = <1>;
255 compatible = "fixed-partitions";
256 #address-cells = <1>;
257 #size-cells = <1>;
289 /* free unused space 0x00f00000-0x00f20000 */
292 /* 128 kB for U-Boot Environment Variables */
294 label = "u-boot-env";
298 /* 768 kB for U-Boot Bootloader Image */
300 label = "u-boot";
307 compatible = "fsl,p2020-fcm-nand", "fsl,elbc-fcm-nand";
309 nand-ecc-mode = "soft";
310 nand-ecc-algo = "bch";
313 compatible = "fixed-partitions";
314 #address-cells = <1>;
315 #size-cells = <1>;
325 /* LCMXO1200C-3FTN256C FPGA */
329 * is extended version of P1021RDB-PC CPLD v4.1 firmware.
333 * https://gitlab.nic.cz/turris/hw/turris_cpld/-/blob/master/CZ_NIC_Router_CPLD.v
335 compatible = "cznic,turris1x-cpld", "fsl,p1021rdb-pc-cpld", "simple-bus", "syscon";
337 #address-cells = <1>;
338 #size-cells = <1>;
356 compatible = "syscon-reboot";
363 led-controller@13 {
370 compatible = "cznic,turris1x-leds";
372 #address-cells = <1>;
373 #size-cells = <0>;
375 multi-led@0 {
381 multi-led@1 {
385 function-enumerator = <5>;
388 multi-led@2 {
392 function-enumerator = <4>;
395 multi-led@3 {
399 function-enumerator = <3>;
402 multi-led@4 {
406 function-enumerator = <2>;
409 multi-led@5 {
413 function-enumerator = <1>;
416 multi-led@6 {
422 multi-led@7 {
431 pci2: pcie@ffe08000 {
433 * PCIe bus for on-board TUSB7340RKM USB 3.0 xHCI controller.
435 * Turris 1.0 boards have nothing connected to this PCIe bus,
436 * so system would see only PCIe Root Port of this PCIe Root
442 * P2020 PCIe Root Port uses 1MB of PCIe MEM and xHCI controller
443 * uses 64kB + 8kB of PCIe MEM. No PCIe IO is used or required.
444 * So allocate 2MB of PCIe MEM for this PCIe bus.
450 pcie@0 {
455 pci1: pcie@ffe09000 {
456 /* PCIe bus on mPCIe slot 2 (CN6) for expansion mPCIe card */
461 pcie@0 {
466 pci0: pcie@ffe0a000 {
468 * PCIe bus on mPCIe slot 1 (CN5) for expansion mPCIe card.
471 * additional SIM card slot, both for USB-based WWAN cards.
477 pcie@0 {
483 /include/ "fsl/p2020si-post.dtsi"