xref: /openbmc/u-boot/arch/arm/dts/imx7d.dtsi (revision 9865543a)
1/*
2 * Copyright 2015 Freescale Semiconductor, Inc.
3 * Copyright 2016 Toradex AG
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 *  a) This file is free software; you can redistribute it and/or
11 *     modify it under the terms of the GNU General Public License as
12 *     published by the Free Software Foundation; either version 2 of the
13 *     License, or (at your option) any later version.
14 *
15 *     This file is distributed in the hope that it will be useful,
16 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
17 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 *     GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 *  b) Permission is hereby granted, free of charge, to any person
23 *     obtaining a copy of this software and associated documentation
24 *     files (the "Software"), to deal in the Software without
25 *     restriction, including without limitation the rights to use,
26 *     copy, modify, merge, publish, distribute, sublicense, and/or
27 *     sell copies of the Software, and to permit persons to whom the
28 *     Software is furnished to do so, subject to the following
29 *     conditions:
30 *
31 *     The above copyright notice and this permission notice shall be
32 *     included in all copies or substantial portions of the Software.
33 *
34 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 *     OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44#include "imx7s.dtsi"
45
46/ {
47	cpus {
48		cpu0: cpu@0 {
49			operating-points = <
50				/* KHz	uV */
51				996000	1075000
52				792000	975000
53			>;
54			clock-frequency = <996000000>;
55		};
56
57		cpu1: cpu@1 {
58			compatible = "arm,cortex-a7";
59			device_type = "cpu";
60			reg = <1>;
61			clock-frequency = <996000000>;
62		};
63	};
64
65	soc {
66		etm@3007d000 {
67			compatible = "arm,coresight-etm3x", "arm,primecell";
68			reg = <0x3007d000 0x1000>;
69
70			/*
71			 * System will hang if added nosmp in kernel command line
72			 * without arm,primecell-periphid because amba bus try to
73			 * read id and core1 power off at this time.
74			 */
75			arm,primecell-periphid = <0xbb956>;
76			cpu = <&cpu1>;
77			clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
78			clock-names = "apb_pclk";
79
80			port {
81				etm1_out_port: endpoint {
82					remote-endpoint = <&ca_funnel_in_port1>;
83				};
84			};
85		};
86	};
87};
88
89&aips2 {
90	epdc: epdc@306f0000 {
91		compatible = "fsl,imx7d-epdc";
92		interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
93		reg = <0x306f0000 0x10000>;
94		clocks = <&clks IMX7D_CLK_DUMMY>, <&clks IMX7D_EPDC_PIXEL_ROOT_CLK>;
95		clock-names = "epdc_axi", "epdc_pix";
96		epdc-ram = <&gpr 0x4 30>;
97		status = "disabled";
98	};
99};
100
101&aips3 {
102	usbotg2: usb@30b20000 {
103		compatible = "fsl,imx7d-usb", "fsl,imx27-usb";
104		reg = <0x30b20000 0x200>;
105		interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
106		clocks = <&clks IMX7D_USB_CTRL_CLK>;
107		fsl,usbphy = <&usbphynop2>;
108		fsl,usbmisc = <&usbmisc2 0>;
109		phy-clkgate-delay-us = <400>;
110		status = "disabled";
111	};
112
113	usbmisc2: usbmisc@30b20200 {
114		#index-cells = <1>;
115		compatible = "fsl,imx7d-usbmisc", "fsl,imx6q-usbmisc";
116		reg = <0x30b20200 0x200>;
117	};
118
119	usbphynop2: usbphynop2 {
120		compatible = "usb-nop-xceiv";
121		clocks = <&clks IMX7D_USB_PHY2_CLK>;
122		clock-names = "main_clk";
123	};
124
125	fec2: ethernet@30bf0000 {
126		compatible = "fsl,imx7d-fec", "fsl,imx6sx-fec";
127		reg = <0x30bf0000 0x10000>;
128		interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
129			<GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
130			<GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
131		clocks = <&clks IMX7D_ENET_AXI_ROOT_CLK>,
132			<&clks IMX7D_ENET_AXI_ROOT_CLK>,
133			<&clks IMX7D_ENET2_TIME_ROOT_CLK>,
134			<&clks IMX7D_PLL_ENET_MAIN_125M_CLK>,
135			<&clks IMX7D_ENET_PHY_REF_ROOT_CLK>;
136		clock-names = "ipg", "ahb", "ptp",
137			"enet_clk_ref", "enet_out";
138		fsl,num-tx-queues=<3>;
139		fsl,num-rx-queues=<3>;
140		status = "disabled";
141	};
142};
143
144&ca_funnel_ports {
145	port@1 {
146		reg = <1>;
147		ca_funnel_in_port1: endpoint {
148			slave-mode;
149			remote-endpoint = <&etm1_out_port>;
150		};
151	};
152};
153