Fabio Estevam | 241f76b | 2018-05-07 15:23:40 -0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 | // |
| 3 | // Copyright 2015 Freescale Semiconductor, Inc. |
| 4 | // Copyright 2016 Toradex AG |
Stefan Agner | a67970a | 2016-06-26 01:47:53 -0700 | [diff] [blame] | 5 | |
| 6 | #include "imx7s.dtsi" |
Andrey Smirnov | a816d57 | 2017-05-15 07:53:04 -0700 | [diff] [blame] | 7 | #include <dt-bindings/reset/imx7-reset.h> |
Stefan Agner | a67970a | 2016-06-26 01:47:53 -0700 | [diff] [blame] | 8 | |
| 9 | / { |
| 10 | cpus { |
Stefan Agner | f5bd51b | 2016-08-11 17:11:06 -0700 | [diff] [blame] | 11 | cpu0: cpu@0 { |
Stefan Agner | 1c4e2a1 | 2016-08-11 17:11:07 -0700 | [diff] [blame] | 12 | clock-frequency = <996000000>; |
Anson Huang | bce48c9 | 2018-05-16 12:48:17 +0800 | [diff] [blame] | 13 | operating-points-v2 = <&cpu0_opp_table>; |
Anson Huang | f3d80de | 2018-06-08 11:06:40 +0200 | [diff] [blame] | 14 | #cooling-cells = <2>; |
Stefan Agner | f5bd51b | 2016-08-11 17:11:06 -0700 | [diff] [blame] | 15 | }; |
| 16 | |
Stefan Agner | a67970a | 2016-06-26 01:47:53 -0700 | [diff] [blame] | 17 | cpu1: cpu@1 { |
| 18 | compatible = "arm,cortex-a7"; |
| 19 | device_type = "cpu"; |
| 20 | reg = <1>; |
Stefan Agner | 1c4e2a1 | 2016-08-11 17:11:07 -0700 | [diff] [blame] | 21 | clock-frequency = <996000000>; |
Anson Huang | bce48c9 | 2018-05-16 12:48:17 +0800 | [diff] [blame] | 22 | operating-points-v2 = <&cpu0_opp_table>; |
| 23 | }; |
| 24 | }; |
| 25 | |
| 26 | cpu0_opp_table: opp-table { |
| 27 | compatible = "operating-points-v2"; |
| 28 | opp-shared; |
| 29 | |
| 30 | opp-792000000 { |
| 31 | opp-hz = /bits/ 64 <792000000>; |
| 32 | opp-microvolt = <975000>; |
| 33 | clock-latency-ns = <150000>; |
| 34 | }; |
| 35 | |
| 36 | opp-996000000 { |
| 37 | opp-hz = /bits/ 64 <996000000>; |
| 38 | opp-microvolt = <1075000>; |
| 39 | clock-latency-ns = <150000>; |
| 40 | opp-suspend; |
Stefan Agner | a67970a | 2016-06-26 01:47:53 -0700 | [diff] [blame] | 41 | }; |
| 42 | }; |
| 43 | |
Fabio Estevam | dd55cb4 | 2017-11-29 16:54:39 -0200 | [diff] [blame] | 44 | usbphynop2: usbphynop2 { |
| 45 | compatible = "usb-nop-xceiv"; |
| 46 | clocks = <&clks IMX7D_USB_PHY2_CLK>; |
| 47 | clock-names = "main_clk"; |
| 48 | #phy-cells = <0>; |
| 49 | }; |
| 50 | |
Stefan Agner | 974a3ab | 2016-07-25 23:42:35 -0700 | [diff] [blame] | 51 | soc { |
| 52 | etm@3007d000 { |
| 53 | compatible = "arm,coresight-etm3x", "arm,primecell"; |
| 54 | reg = <0x3007d000 0x1000>; |
Stefan Agner | a67970a | 2016-06-26 01:47:53 -0700 | [diff] [blame] | 55 | |
Stefan Agner | 974a3ab | 2016-07-25 23:42:35 -0700 | [diff] [blame] | 56 | /* |
| 57 | * System will hang if added nosmp in kernel command line |
| 58 | * without arm,primecell-periphid because amba bus try to |
| 59 | * read id and core1 power off at this time. |
| 60 | */ |
| 61 | arm,primecell-periphid = <0xbb956>; |
| 62 | cpu = <&cpu1>; |
| 63 | clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>; |
| 64 | clock-names = "apb_pclk"; |
Stefan Agner | a67970a | 2016-06-26 01:47:53 -0700 | [diff] [blame] | 65 | |
Stefan Agner | 974a3ab | 2016-07-25 23:42:35 -0700 | [diff] [blame] | 66 | port { |
| 67 | etm1_out_port: endpoint { |
| 68 | remote-endpoint = <&ca_funnel_in_port1>; |
| 69 | }; |
Stefan Agner | a67970a | 2016-06-26 01:47:53 -0700 | [diff] [blame] | 70 | }; |
| 71 | }; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | &aips3 { |
| 76 | usbotg2: usb@30b20000 { |
| 77 | compatible = "fsl,imx7d-usb", "fsl,imx27-usb"; |
| 78 | reg = <0x30b20000 0x200>; |
| 79 | interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; |
| 80 | clocks = <&clks IMX7D_USB_CTRL_CLK>; |
| 81 | fsl,usbphy = <&usbphynop2>; |
| 82 | fsl,usbmisc = <&usbmisc2 0>; |
| 83 | phy-clkgate-delay-us = <400>; |
| 84 | status = "disabled"; |
| 85 | }; |
| 86 | |
| 87 | usbmisc2: usbmisc@30b20200 { |
| 88 | #index-cells = <1>; |
| 89 | compatible = "fsl,imx7d-usbmisc", "fsl,imx6q-usbmisc"; |
| 90 | reg = <0x30b20200 0x200>; |
| 91 | }; |
| 92 | |
Stefan Agner | a67970a | 2016-06-26 01:47:53 -0700 | [diff] [blame] | 93 | fec2: ethernet@30bf0000 { |
| 94 | compatible = "fsl,imx7d-fec", "fsl,imx6sx-fec"; |
| 95 | reg = <0x30bf0000 0x10000>; |
Troy Kisky | e94a230 | 2017-11-03 10:29:58 -0700 | [diff] [blame] | 96 | interrupt-names = "int0", "int1", "int2", "pps"; |
| 97 | interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>, |
| 98 | <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>, |
Stefan Agner | a67970a | 2016-06-26 01:47:53 -0700 | [diff] [blame] | 99 | <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>, |
Troy Kisky | e94a230 | 2017-11-03 10:29:58 -0700 | [diff] [blame] | 100 | <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; |
Anson Huang | 64f929d | 2018-05-18 09:01:06 +0800 | [diff] [blame] | 101 | clocks = <&clks IMX7D_ENET2_IPG_ROOT_CLK>, |
Stefan Agner | a67970a | 2016-06-26 01:47:53 -0700 | [diff] [blame] | 102 | <&clks IMX7D_ENET_AXI_ROOT_CLK>, |
| 103 | <&clks IMX7D_ENET2_TIME_ROOT_CLK>, |
| 104 | <&clks IMX7D_PLL_ENET_MAIN_125M_CLK>, |
| 105 | <&clks IMX7D_ENET_PHY_REF_ROOT_CLK>; |
| 106 | clock-names = "ipg", "ahb", "ptp", |
| 107 | "enet_clk_ref", "enet_out"; |
| 108 | fsl,num-tx-queues=<3>; |
| 109 | fsl,num-rx-queues=<3>; |
| 110 | status = "disabled"; |
| 111 | }; |
Andrey Smirnov | a816d57 | 2017-05-15 07:53:04 -0700 | [diff] [blame] | 112 | |
Fabio Estevam | 2290ad1 | 2017-11-29 16:54:40 -0200 | [diff] [blame] | 113 | pcie: pcie@33800000 { |
Andrey Smirnov | a816d57 | 2017-05-15 07:53:04 -0700 | [diff] [blame] | 114 | compatible = "fsl,imx7d-pcie", "snps,dw-pcie"; |
| 115 | reg = <0x33800000 0x4000>, |
| 116 | <0x4ff00000 0x80000>; |
| 117 | reg-names = "dbi", "config"; |
| 118 | #address-cells = <3>; |
| 119 | #size-cells = <2>; |
| 120 | device_type = "pci"; |
Fabio Estevam | 2290ad1 | 2017-11-29 16:54:40 -0200 | [diff] [blame] | 121 | bus-range = <0x00 0xff>; |
Andrey Smirnov | a816d57 | 2017-05-15 07:53:04 -0700 | [diff] [blame] | 122 | ranges = <0x81000000 0 0 0x4ff80000 0 0x00010000 /* downstream I/O */ |
| 123 | 0x82000000 0 0x40000000 0x40000000 0 0x0ff00000>; /* non-prefetchable memory */ |
| 124 | num-lanes = <1>; |
| 125 | interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; |
| 126 | interrupt-names = "msi"; |
| 127 | #interrupt-cells = <1>; |
| 128 | interrupt-map-mask = <0 0 0 0x7>; |
Andrey Smirnov | 1c86c9d | 2017-10-09 11:43:44 -0700 | [diff] [blame] | 129 | interrupt-map = <0 0 0 1 &intc GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>, |
| 130 | <0 0 0 2 &intc GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, |
| 131 | <0 0 0 3 &intc GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>, |
| 132 | <0 0 0 4 &intc GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>; |
Andrey Smirnov | a816d57 | 2017-05-15 07:53:04 -0700 | [diff] [blame] | 133 | clocks = <&clks IMX7D_PCIE_CTRL_ROOT_CLK>, |
| 134 | <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>, |
| 135 | <&clks IMX7D_PCIE_PHY_ROOT_CLK>; |
| 136 | clock-names = "pcie", "pcie_bus", "pcie_phy"; |
| 137 | assigned-clocks = <&clks IMX7D_PCIE_CTRL_ROOT_SRC>, |
| 138 | <&clks IMX7D_PCIE_PHY_ROOT_SRC>; |
| 139 | assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_250M_CLK>, |
| 140 | <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>; |
| 141 | |
| 142 | fsl,max-link-speed = <2>; |
| 143 | power-domains = <&pgc_pcie_phy>; |
| 144 | resets = <&src IMX7_RESET_PCIEPHY>, |
| 145 | <&src IMX7_RESET_PCIE_CTRL_APPS_EN>; |
| 146 | reset-names = "pciephy", "apps"; |
| 147 | status = "disabled"; |
| 148 | }; |
Stefan Agner | a67970a | 2016-06-26 01:47:53 -0700 | [diff] [blame] | 149 | }; |
| 150 | |
| 151 | &ca_funnel_ports { |
| 152 | port@1 { |
| 153 | reg = <1>; |
| 154 | ca_funnel_in_port1: endpoint { |
| 155 | slave-mode; |
| 156 | remote-endpoint = <&etm1_out_port>; |
| 157 | }; |
| 158 | }; |
| 159 | }; |