xref: /linux/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts (revision fcc79e1714e8c2b8e216dc3149812edd37884eef)
1// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
2/*
3 * Copyright 2020-2021 TQ-Systems GmbH
4 */
5
6/dts-v1/;
7
8#include <dt-bindings/phy/phy-imx8-pcie.h>
9
10#include "imx8mm-tqma8mqml.dtsi"
11#include "mba8mx.dtsi"
12
13/ {
14	model = "TQ-Systems GmbH i.MX8MM TQMa8MxML on MBa8Mx";
15	compatible = "tq,imx8mm-tqma8mqml-mba8mx", "tq,imx8mm-tqma8mqml", "fsl,imx8mm";
16	chassis-type = "embedded";
17
18	aliases {
19		eeprom0 = &eeprom3;
20		mmc0 = &usdhc3;
21		mmc1 = &usdhc2;
22		mmc2 = &usdhc1;
23		rtc0 = &pcf85063;
24		rtc1 = &snvs_rtc;
25	};
26
27	reg_usdhc2_vmmc: regulator-vmmc {
28		compatible = "regulator-fixed";
29		pinctrl-names = "default";
30		pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
31		regulator-name = "VSD_3V3";
32		regulator-min-microvolt = <3300000>;
33		regulator-max-microvolt = <3300000>;
34		gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
35		enable-active-high;
36		startup-delay-us = <100>;
37		off-on-delay-us = <12000>;
38	};
39
40	connector {
41		compatible = "gpio-usb-b-connector", "usb-b-connector";
42		type = "micro";
43		label = "X19";
44		pinctrl-names = "default";
45		pinctrl-0 = <&pinctrl_usb1_connector>;
46		id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
47
48		ports {
49			#address-cells = <1>;
50			#size-cells = <0>;
51
52			port@0 {
53				reg = <0>;
54				usb_dr_connector: endpoint {
55					remote-endpoint = <&usb1_drd_sw>;
56				};
57			};
58		};
59	};
60};
61
62&i2c1 {
63	expander2: gpio@27 {
64		compatible = "nxp,pca9555";
65		reg = <0x27>;
66		gpio-controller;
67		#gpio-cells = <2>;
68		vcc-supply = <&reg_vcc_3v3>;
69		pinctrl-names = "default";
70		pinctrl-0 = <&pinctrl_expander>;
71		interrupt-parent = <&gpio1>;
72		interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
73		interrupt-controller;
74		#interrupt-cells = <2>;
75	};
76};
77
78&mipi_dsi {
79	samsung,burst-clock-frequency = <891000000>;
80	samsung,esc-clock-frequency = <20000000>;
81};
82
83&pcie_phy {
84	fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
85	fsl,clkreq-unsupported;
86	clocks = <&pcieclk 2>;
87	clock-names = "ref";
88	status = "okay";
89};
90
91/* PCIe slot on X36 */
92&pcie0 {
93	reset-gpio = <&expander0 14 GPIO_ACTIVE_LOW>;
94	clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&pcieclk 3>,
95		 <&clk IMX8MM_CLK_PCIE1_AUX>;
96	assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
97			  <&clk IMX8MM_CLK_PCIE1_CTRL>;
98	assigned-clock-rates = <10000000>, <250000000>;
99	assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
100				 <&clk IMX8MM_SYS_PLL2_250M>;
101	status = "okay";
102};
103
104&sai3 {
105	assigned-clocks = <&clk IMX8MM_CLK_SAI3>;
106	assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
107	clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3", "pll8k", "pll11k";
108	clocks = <&clk IMX8MM_CLK_SAI3_IPG>, <&clk IMX8MM_CLK_DUMMY>,
109		<&clk IMX8MM_CLK_SAI3_ROOT>, <&clk IMX8MM_CLK_DUMMY>,
110		<&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_AUDIO_PLL1_OUT>,
111		<&clk IMX8MM_AUDIO_PLL2_OUT>;
112};
113
114&tlv320aic3x04 {
115	clock-names = "mclk";
116	clocks = <&clk IMX8MM_CLK_SAI3_ROOT>;
117};
118
119&uart1 {
120	assigned-clocks = <&clk IMX8MM_CLK_UART1>;
121	assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
122};
123
124&uart2 {
125	assigned-clocks = <&clk IMX8MM_CLK_UART2>;
126	assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
127};
128
129&usbotg1 {
130	pinctrl-names = "default";
131	pinctrl-0 = <&pinctrl_usbotg1>;
132	dr_mode = "otg";
133	srp-disable;
134	hnp-disable;
135	adp-disable;
136	power-active-high;
137	over-current-active-low;
138	usb-role-switch;
139	status = "okay";
140
141	port {
142		usb1_drd_sw: endpoint {
143			remote-endpoint = <&usb_dr_connector>;
144		};
145	};
146};
147
148&usbotg2 {
149	dr_mode = "host";
150	disable-over-current;
151	vbus-supply = <&reg_hub_vbus>;
152	status = "okay";
153};
154
155&iomuxc {
156	pinctrl_ecspi1: ecspi1grp {
157		fsl,pins = <MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK	0x00000006>,
158			   <MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI	0x00000006>,
159			   <MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO	0x00000006>,
160			   <MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9		0x00000006>;
161	};
162
163	pinctrl_ecspi2: ecspi2grp {
164		fsl,pins = <MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK	0x00000006>,
165			   <MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI	0x00000006>,
166			   <MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO	0x00000006>,
167			   <MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13		0x00000006>;
168	};
169
170	pinctrl_expander: expandergrp {
171		fsl,pins = <MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9		0x94>;
172	};
173
174	pinctrl_fec1: fec1grp {
175		fsl,pins = <MX8MM_IOMUXC_ENET_MDC_ENET1_MDC		0x40000002>,
176			   <MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO		0x40000002>,
177			   <MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3	0x14>,
178			   <MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2	0x14>,
179			   <MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1	0x14>,
180			   <MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0	0x14>,
181			   <MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3	0x90>,
182			   <MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2	0x90>,
183			   <MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1	0x90>,
184			   <MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0	0x90>,
185			   <MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC	0x14>,
186			   <MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC	0x90>,
187			   <MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL	0x90>,
188			   <MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL	0x14>;
189	};
190
191	pinctrl_gpiobutton: gpiobuttongrp {
192		fsl,pins = <MX8MM_IOMUXC_GPIO1_IO05_GPIO1_IO5		0x84>,
193			   <MX8MM_IOMUXC_GPIO1_IO07_GPIO1_IO7		0x84>,
194			   <MX8MM_IOMUXC_SD1_CLK_GPIO2_IO0		0x84>;
195	};
196
197	pinctrl_gpioled: gpioledgrp {
198		fsl,pins = <MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0		0x84>,
199			   <MX8MM_IOMUXC_NAND_DQS_GPIO3_IO14		0x84>;
200	};
201
202	pinctrl_i2c2: i2c2grp {
203		fsl,pins = <MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL		0x40000004>,
204			   <MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA		0x40000004>;
205	};
206
207	pinctrl_i2c2_gpio: i2c2gpiogrp {
208		fsl,pins = <MX8MM_IOMUXC_I2C2_SCL_GPIO5_IO16		0x40000004>,
209			   <MX8MM_IOMUXC_I2C2_SDA_GPIO5_IO17		0x40000004>;
210	};
211
212	pinctrl_i2c3: i2c3grp {
213		fsl,pins = <MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL		0x40000004>,
214			   <MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA		0x40000004>;
215	};
216
217	pinctrl_i2c3_gpio: i2c3gpiogrp {
218		fsl,pins = <MX8MM_IOMUXC_I2C3_SCL_GPIO5_IO18		0x40000004>,
219			   <MX8MM_IOMUXC_I2C3_SDA_GPIO5_IO19		0x40000004>;
220	};
221
222	pinctrl_pwm3: pwm3grp {
223		fsl,pins = <MX8MM_IOMUXC_GPIO1_IO14_PWM3_OUT		0x14>;
224	};
225
226	pinctrl_pwm4: pwm4grp {
227		fsl,pins = <MX8MM_IOMUXC_GPIO1_IO15_PWM4_OUT		0x14>;
228	};
229
230	pinctrl_sai3: sai3grp {
231		fsl,pins = <MX8MM_IOMUXC_SAI3_MCLK_SAI3_MCLK		0x94>,
232			   <MX8MM_IOMUXC_SAI3_RXC_SAI3_RX_BCLK		0x94>,
233			   <MX8MM_IOMUXC_SAI3_RXFS_SAI3_RX_SYNC		0x94>,
234			   <MX8MM_IOMUXC_SAI3_RXD_SAI3_RX_DATA0		0x94>,
235			   <MX8MM_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC		0x94>,
236			   <MX8MM_IOMUXC_SAI3_TXD_SAI3_TX_DATA0		0x94>,
237			   <MX8MM_IOMUXC_SAI3_TXC_SAI3_TX_BCLK		0x94>;
238	};
239
240	pinctrl_uart1: uart1grp {
241		fsl,pins = <MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX		0x16>,
242			   <MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX		0x16>;
243	};
244
245	pinctrl_uart2: uart2grp {
246		fsl,pins = <MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX		0x16>,
247			   <MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX		0x16>;
248	};
249
250	pinctrl_uart3: uart3grp {
251		fsl,pins = <MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX		0x16>,
252			   <MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX		0x16>;
253	};
254
255	pinctrl_uart4: uart4grp {
256		fsl,pins = <MX8MM_IOMUXC_UART4_RXD_UART4_DCE_RX		0x16>,
257			   <MX8MM_IOMUXC_UART4_TXD_UART4_DCE_TX		0x16>;
258	};
259
260	pinctrl_usbotg1: usbotg1grp {
261		fsl,pins = <MX8MM_IOMUXC_GPIO1_IO12_USB1_OTG_PWR	0x84>,
262			   <MX8MM_IOMUXC_GPIO1_IO13_USB1_OTG_OC		0x84>;
263	};
264
265	pinctrl_usb1_connector: usb1-connectorgrp {
266		fsl,pins = <MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10		0x1c0>;
267	};
268
269	pinctrl_usdhc2_gpio: usdhc2grpgpiogrp {
270		fsl,pins = <MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12		0x84>;
271	};
272
273	pinctrl_usdhc2: usdhc2grp {
274		fsl,pins = <MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK		0x1d4>,
275			   <MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD		0x1d4>,
276			   <MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0		0x1d4>,
277			   <MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1		0x1d4>,
278			   <MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2		0x1d4>,
279			   <MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3		0x1d4>,
280			   <MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT	0x84>;
281	};
282
283	pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
284		fsl,pins = <MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK		0x1d4>,
285			   <MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD		0x1d4>,
286			   <MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0		0x1d4>,
287			   <MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1		0x1d4>,
288			   <MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2		0x1d4>,
289			   <MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3		0x1d4>,
290			   <MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT	0x84>;
291	};
292
293	pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
294		fsl,pins = <MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK		0x1d4>,
295			   <MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD		0x1d4>,
296			   <MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0		0x1d4>,
297			   <MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1		0x1d4>,
298			   <MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2		0x1d4>,
299			   <MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3		0x1d4>,
300			   <MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT	0x84>;
301	};
302};
303