xref: /openbmc/linux/arch/arm/boot/dts/nxp/imx/imx6ul-prti6g.dts (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (c) 2016 Protonic Holland
4*724ba675SRob Herring * Copyright (c) 2020 Oleksij Rempel <kernel@pengutronix.de>, Pengutronix
5*724ba675SRob Herring */
6*724ba675SRob Herring
7*724ba675SRob Herring/dts-v1/;
8*724ba675SRob Herring#include "imx6ul.dtsi"
9*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
10*724ba675SRob Herring
11*724ba675SRob Herring/ {
12*724ba675SRob Herring	model = "Protonic PRTI6G Board";
13*724ba675SRob Herring	compatible = "prt,prti6g", "fsl,imx6ul";
14*724ba675SRob Herring
15*724ba675SRob Herring	chosen {
16*724ba675SRob Herring		stdout-path = &uart1;
17*724ba675SRob Herring	};
18*724ba675SRob Herring
19*724ba675SRob Herring	clock_ksz8081_in: clock-ksz8081-in {
20*724ba675SRob Herring		compatible = "fixed-clock";
21*724ba675SRob Herring		#clock-cells = <0>;
22*724ba675SRob Herring		clock-frequency = <25000000>;
23*724ba675SRob Herring	};
24*724ba675SRob Herring
25*724ba675SRob Herring	clock_ksz8081_out: clock-ksz8081-out {
26*724ba675SRob Herring		compatible = "fixed-clock";
27*724ba675SRob Herring		#clock-cells = <0>;
28*724ba675SRob Herring		clock-frequency = <50000000>;
29*724ba675SRob Herring		clock-output-names = "enet1_ref_pad";
30*724ba675SRob Herring	};
31*724ba675SRob Herring
32*724ba675SRob Herring	leds {
33*724ba675SRob Herring		compatible = "gpio-leds";
34*724ba675SRob Herring		pinctrl-names = "default";
35*724ba675SRob Herring		pinctrl-0 = <&pinctrl_leds>;
36*724ba675SRob Herring
37*724ba675SRob Herring		led-0 {
38*724ba675SRob Herring			label = "debug0";
39*724ba675SRob Herring			gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
40*724ba675SRob Herring			linux,default-trigger = "heartbeat";
41*724ba675SRob Herring		};
42*724ba675SRob Herring	};
43*724ba675SRob Herring
44*724ba675SRob Herring	reg_3v2: regulator-3v2 {
45*724ba675SRob Herring		compatible = "regulator-fixed";
46*724ba675SRob Herring		regulator-name = "3v2";
47*724ba675SRob Herring		regulator-min-microvolt = <3200000>;
48*724ba675SRob Herring		regulator-max-microvolt = <3200000>;
49*724ba675SRob Herring	};
50*724ba675SRob Herring};
51*724ba675SRob Herring
52*724ba675SRob Herring&can1 {
53*724ba675SRob Herring	pinctrl-names = "default";
54*724ba675SRob Herring	pinctrl-0 = <&pinctrl_can1>;
55*724ba675SRob Herring	status = "okay";
56*724ba675SRob Herring};
57*724ba675SRob Herring
58*724ba675SRob Herring&can2 {
59*724ba675SRob Herring	pinctrl-names = "default";
60*724ba675SRob Herring	pinctrl-0 = <&pinctrl_can2>;
61*724ba675SRob Herring	status = "okay";
62*724ba675SRob Herring};
63*724ba675SRob Herring
64*724ba675SRob Herring&clks {
65*724ba675SRob Herring	clocks = <&ckil>, <&osc>, <&ipp_di0>, <&ipp_di1>, <&clock_ksz8081_out>;
66*724ba675SRob Herring	clock-names = "ckil", "osc", "ipp_di0", "ipp_di1", "enet1_ref_pad";
67*724ba675SRob Herring	assigned-clocks = <&clks IMX6UL_CLK_ENET1_REF_SEL>;
68*724ba675SRob Herring	assigned-clock-parents = <&clock_ksz8081_out>;
69*724ba675SRob Herring};
70*724ba675SRob Herring
71*724ba675SRob Herring&ecspi1 {
72*724ba675SRob Herring	cs-gpios = <&gpio4 26 GPIO_ACTIVE_LOW>;
73*724ba675SRob Herring	pinctrl-names = "default";
74*724ba675SRob Herring	pinctrl-0 = <&pinctrl_ecspi1>;
75*724ba675SRob Herring	status = "okay";
76*724ba675SRob Herring
77*724ba675SRob Herring	flash@0 {
78*724ba675SRob Herring		compatible = "jedec,spi-nor";
79*724ba675SRob Herring		reg = <0>;
80*724ba675SRob Herring		spi-max-frequency = <20000000>;
81*724ba675SRob Herring	};
82*724ba675SRob Herring};
83*724ba675SRob Herring
84*724ba675SRob Herring&ecspi2 {
85*724ba675SRob Herring	cs-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
86*724ba675SRob Herring	pinctrl-names = "default";
87*724ba675SRob Herring	pinctrl-0 = <&pinctrl_ecspi2>;
88*724ba675SRob Herring	status = "okay";
89*724ba675SRob Herring};
90*724ba675SRob Herring
91*724ba675SRob Herring&fec1 {
92*724ba675SRob Herring	pinctrl-names = "default";
93*724ba675SRob Herring	pinctrl-0 = <&pinctrl_eth1>;
94*724ba675SRob Herring	phy-mode = "rmii";
95*724ba675SRob Herring	phy-handle = <&rmii_phy>;
96*724ba675SRob Herring	status = "okay";
97*724ba675SRob Herring
98*724ba675SRob Herring	mdio {
99*724ba675SRob Herring		#address-cells = <1>;
100*724ba675SRob Herring		#size-cells = <0>;
101*724ba675SRob Herring
102*724ba675SRob Herring		/* Microchip KSZ8081RNA PHY */
103*724ba675SRob Herring		rmii_phy: ethernet-phy@0 {
104*724ba675SRob Herring			reg = <0>;
105*724ba675SRob Herring			interrupts-extended = <&gpio5 1 IRQ_TYPE_LEVEL_LOW>;
106*724ba675SRob Herring			reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
107*724ba675SRob Herring			reset-assert-us = <10000>;
108*724ba675SRob Herring			reset-deassert-us = <300>;
109*724ba675SRob Herring			clocks = <&clock_ksz8081_in>;
110*724ba675SRob Herring			clock-names = "rmii-ref";
111*724ba675SRob Herring		};
112*724ba675SRob Herring	};
113*724ba675SRob Herring};
114*724ba675SRob Herring
115*724ba675SRob Herring&i2c1 {
116*724ba675SRob Herring	pinctrl-names = "default";
117*724ba675SRob Herring	pinctrl-0 = <&pinctrl_i2c1>;
118*724ba675SRob Herring	clock-frequency = <100000>;
119*724ba675SRob Herring	status = "okay";
120*724ba675SRob Herring
121*724ba675SRob Herring	/* additional i2c devices are added automatically by the boot loader */
122*724ba675SRob Herring};
123*724ba675SRob Herring
124*724ba675SRob Herring&i2c2 {
125*724ba675SRob Herring	pinctrl-names = "default";
126*724ba675SRob Herring	pinctrl-0 = <&pinctrl_i2c2>;
127*724ba675SRob Herring	clock-frequency = <100000>;
128*724ba675SRob Herring	status = "okay";
129*724ba675SRob Herring
130*724ba675SRob Herring	adc@49 {
131*724ba675SRob Herring		compatible = "ti,ads1015";
132*724ba675SRob Herring		reg = <0x49>;
133*724ba675SRob Herring		#address-cells = <1>;
134*724ba675SRob Herring		#size-cells = <0>;
135*724ba675SRob Herring
136*724ba675SRob Herring		channel@4 {
137*724ba675SRob Herring			reg = <4>;
138*724ba675SRob Herring			ti,gain = <3>;
139*724ba675SRob Herring			ti,datarate = <3>;
140*724ba675SRob Herring		};
141*724ba675SRob Herring
142*724ba675SRob Herring		channel@5 {
143*724ba675SRob Herring			reg = <5>;
144*724ba675SRob Herring			ti,gain = <3>;
145*724ba675SRob Herring			ti,datarate = <3>;
146*724ba675SRob Herring		};
147*724ba675SRob Herring
148*724ba675SRob Herring		channel@6 {
149*724ba675SRob Herring			reg = <6>;
150*724ba675SRob Herring			ti,gain = <3>;
151*724ba675SRob Herring			ti,datarate = <3>;
152*724ba675SRob Herring		};
153*724ba675SRob Herring
154*724ba675SRob Herring		channel@7 {
155*724ba675SRob Herring			reg = <7>;
156*724ba675SRob Herring			ti,gain = <3>;
157*724ba675SRob Herring			ti,datarate = <3>;
158*724ba675SRob Herring		};
159*724ba675SRob Herring	};
160*724ba675SRob Herring
161*724ba675SRob Herring	rtc@51 {
162*724ba675SRob Herring		compatible = "nxp,pcf8563";
163*724ba675SRob Herring		reg = <0x51>;
164*724ba675SRob Herring	};
165*724ba675SRob Herring
166*724ba675SRob Herring	temperature-sensor@70 {
167*724ba675SRob Herring		compatible = "ti,tmp103";
168*724ba675SRob Herring		reg = <0x70>;
169*724ba675SRob Herring	};
170*724ba675SRob Herring};
171*724ba675SRob Herring
172*724ba675SRob Herring&uart1 {
173*724ba675SRob Herring	pinctrl-names = "default";
174*724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart1>;
175*724ba675SRob Herring	status = "okay";
176*724ba675SRob Herring};
177*724ba675SRob Herring
178*724ba675SRob Herring&usbotg1 {
179*724ba675SRob Herring	dr_mode = "host";
180*724ba675SRob Herring	over-current-active-low;
181*724ba675SRob Herring	status = "okay";
182*724ba675SRob Herring};
183*724ba675SRob Herring
184*724ba675SRob Herring&usdhc1 {
185*724ba675SRob Herring	pinctrl-names = "default";
186*724ba675SRob Herring	pinctrl-0 = <&pinctrl_usdhc1>;
187*724ba675SRob Herring	cd-gpios = <&gpio4 12 GPIO_ACTIVE_LOW>;
188*724ba675SRob Herring	vmmc-supply = <&reg_3v2>;
189*724ba675SRob Herring	no-1-8-v;
190*724ba675SRob Herring	disable-wp;
191*724ba675SRob Herring	cap-sd-highspeed;
192*724ba675SRob Herring	no-mmc;
193*724ba675SRob Herring	no-sdio;
194*724ba675SRob Herring	status = "okay";
195*724ba675SRob Herring};
196*724ba675SRob Herring
197*724ba675SRob Herring&usdhc2 {
198*724ba675SRob Herring	pinctrl-names = "default";
199*724ba675SRob Herring	pinctrl-0 = <&pinctrl_usdhc2>;
200*724ba675SRob Herring	bus-width = <8>;
201*724ba675SRob Herring	no-1-8-v;
202*724ba675SRob Herring	non-removable;
203*724ba675SRob Herring	no-sd;
204*724ba675SRob Herring	no-sdio;
205*724ba675SRob Herring	status = "okay";
206*724ba675SRob Herring};
207*724ba675SRob Herring
208*724ba675SRob Herring&iomuxc {
209*724ba675SRob Herring	pinctrl-names = "default";
210*724ba675SRob Herring	pinctrl-0 = <&pinctrl_hog>;
211*724ba675SRob Herring
212*724ba675SRob Herring	pinctrl_can1: can1grp {
213*724ba675SRob Herring		fsl,pins = <
214*724ba675SRob Herring			MX6UL_PAD_UART3_CTS_B__FLEXCAN1_TX		0x0b0b0
215*724ba675SRob Herring			MX6UL_PAD_UART3_RTS_B__FLEXCAN1_RX		0x0b0b0
216*724ba675SRob Herring			/* SR */
217*724ba675SRob Herring			MX6UL_PAD_SNVS_TAMPER3__GPIO5_IO03		0x0b0b0
218*724ba675SRob Herring			/* TERM */
219*724ba675SRob Herring			MX6UL_PAD_SNVS_TAMPER4__GPIO5_IO04		0x0b0b0
220*724ba675SRob Herring			/* nSMBALERT */
221*724ba675SRob Herring			MX6UL_PAD_SNVS_TAMPER2__GPIO5_IO02		0x0b0b0
222*724ba675SRob Herring		>;
223*724ba675SRob Herring	};
224*724ba675SRob Herring
225*724ba675SRob Herring	pinctrl_can2: can2grp {
226*724ba675SRob Herring		fsl,pins = <
227*724ba675SRob Herring			MX6UL_PAD_UART2_CTS_B__FLEXCAN2_TX		0x0b0b0
228*724ba675SRob Herring			MX6UL_PAD_UART2_RTS_B__FLEXCAN2_RX		0x0b0b0
229*724ba675SRob Herring			/* SR */
230*724ba675SRob Herring			MX6UL_PAD_SNVS_TAMPER5__GPIO5_IO05		0x0b0b0
231*724ba675SRob Herring		>;
232*724ba675SRob Herring	};
233*724ba675SRob Herring
234*724ba675SRob Herring	pinctrl_ecspi1: ecspi1grp {
235*724ba675SRob Herring		fsl,pins = <
236*724ba675SRob Herring			MX6UL_PAD_CSI_DATA04__ECSPI1_SCLK		0x0b0b0
237*724ba675SRob Herring			MX6UL_PAD_CSI_DATA05__GPIO4_IO26		0x000b1
238*724ba675SRob Herring			MX6UL_PAD_CSI_DATA06__ECSPI1_MOSI		0x0b0b0
239*724ba675SRob Herring			MX6UL_PAD_CSI_DATA07__ECSPI1_MISO		0x0b0b0
240*724ba675SRob Herring		>;
241*724ba675SRob Herring	};
242*724ba675SRob Herring
243*724ba675SRob Herring	pinctrl_ecspi2: ecspi2grp {
244*724ba675SRob Herring		fsl,pins = <
245*724ba675SRob Herring			MX6UL_PAD_CSI_DATA00__ECSPI2_SCLK		0x0b0b0
246*724ba675SRob Herring			MX6UL_PAD_CSI_DATA01__GPIO4_IO22		0x000b1
247*724ba675SRob Herring			MX6UL_PAD_CSI_DATA02__ECSPI2_MOSI		0x0b0b0
248*724ba675SRob Herring			MX6UL_PAD_CSI_DATA03__ECSPI2_MISO		0x0b0b0
249*724ba675SRob Herring		>;
250*724ba675SRob Herring	};
251*724ba675SRob Herring
252*724ba675SRob Herring	pinctrl_eth1: eth1grp {
253*724ba675SRob Herring		fsl,pins = <
254*724ba675SRob Herring			MX6UL_PAD_GPIO1_IO07__ENET1_MDC			0x1b0b0
255*724ba675SRob Herring			MX6UL_PAD_GPIO1_IO06__ENET1_MDIO		0x100b0
256*724ba675SRob Herring			MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00		0x1b0b0
257*724ba675SRob Herring			MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01		0x1b0b0
258*724ba675SRob Herring			MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN		0x100b0
259*724ba675SRob Herring			MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER		0x1b0b0
260*724ba675SRob Herring			MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN		0x1b0b0
261*724ba675SRob Herring			MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00		0x1b0b0
262*724ba675SRob Herring			MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01		0x1b0b0
263*724ba675SRob Herring			MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1		0x1b000
264*724ba675SRob Herring			/* PHY ENET1_RST */
265*724ba675SRob Herring			MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00		0x00880
266*724ba675SRob Herring			/* PHY ENET1_IRQ */
267*724ba675SRob Herring			MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01		0x00880
268*724ba675SRob Herring		>;
269*724ba675SRob Herring	};
270*724ba675SRob Herring
271*724ba675SRob Herring	pinctrl_hog: hoggrp {
272*724ba675SRob Herring		fsl,pins = <
273*724ba675SRob Herring			/* HW revision detect */
274*724ba675SRob Herring			/* REV_ID0 */
275*724ba675SRob Herring			MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08		0x1b0b0
276*724ba675SRob Herring			/* REV_ID1 */
277*724ba675SRob Herring			MX6UL_PAD_ENET2_RX_DATA1__GPIO2_IO09		0x1b0b0
278*724ba675SRob Herring			/* REV_ID2 */
279*724ba675SRob Herring			MX6UL_PAD_ENET2_RX_EN__GPIO2_IO10		0x1b0b0
280*724ba675SRob Herring			/* REV_ID3 */
281*724ba675SRob Herring			MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11		0x1b0b0
282*724ba675SRob Herring			/* BOARD_ID0 */
283*724ba675SRob Herring			MX6UL_PAD_ENET2_TX_EN__GPIO2_IO13		0x1b0b0
284*724ba675SRob Herring			/* BOARD_ID1 */
285*724ba675SRob Herring			MX6UL_PAD_ENET2_TX_CLK__GPIO2_IO14		0x1b0b0
286*724ba675SRob Herring			/* BOARD_ID2 */
287*724ba675SRob Herring			MX6UL_PAD_ENET2_RX_ER__GPIO2_IO15		0x1b0b0
288*724ba675SRob Herring			/* BOARD_ID3 */
289*724ba675SRob Herring			MX6UL_PAD_ENET2_TX_DATA1__GPIO2_IO12		0x1b0b0
290*724ba675SRob Herring			/* Safety controller IO */
291*724ba675SRob Herring			/* WAKE_SC */
292*724ba675SRob Herring			MX6UL_PAD_SNVS_TAMPER6__GPIO5_IO06		0x1b0b0
293*724ba675SRob Herring			/* PROGRAM_SC */
294*724ba675SRob Herring			MX6UL_PAD_SNVS_TAMPER7__GPIO5_IO07		0x1b0b0
295*724ba675SRob Herring		>;
296*724ba675SRob Herring	};
297*724ba675SRob Herring
298*724ba675SRob Herring	pinctrl_i2c1: i2c1grp {
299*724ba675SRob Herring		fsl,pins = <
300*724ba675SRob Herring			MX6UL_PAD_CSI_MCLK__I2C1_SDA		0x4001b8b0
301*724ba675SRob Herring			MX6UL_PAD_CSI_PIXCLK__I2C1_SCL		0x4001b8b0
302*724ba675SRob Herring		>;
303*724ba675SRob Herring	};
304*724ba675SRob Herring
305*724ba675SRob Herring	pinctrl_i2c2: i2c2grp {
306*724ba675SRob Herring		fsl,pins = <
307*724ba675SRob Herring			MX6UL_PAD_CSI_VSYNC__I2C2_SDA		0x4001b8b0
308*724ba675SRob Herring			MX6UL_PAD_CSI_HSYNC__I2C2_SCL		0x4001b8b0
309*724ba675SRob Herring		>;
310*724ba675SRob Herring	};
311*724ba675SRob Herring
312*724ba675SRob Herring	pinctrl_leds: ledsgrp {
313*724ba675SRob Herring		fsl,pins = <
314*724ba675SRob Herring			MX6UL_PAD_NAND_DQS__GPIO4_IO16			0x1b0b0
315*724ba675SRob Herring		>;
316*724ba675SRob Herring	};
317*724ba675SRob Herring
318*724ba675SRob Herring	pinctrl_uart1: uart1grp {
319*724ba675SRob Herring		fsl,pins = <
320*724ba675SRob Herring			MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX		0x1b0b1
321*724ba675SRob Herring			MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX		0x1b0b1
322*724ba675SRob Herring		>;
323*724ba675SRob Herring	};
324*724ba675SRob Herring
325*724ba675SRob Herring	pinctrl_usdhc1: usdhc1grp {
326*724ba675SRob Herring		fsl,pins = <
327*724ba675SRob Herring			MX6UL_PAD_SD1_CMD__USDHC1_CMD			0x070b1
328*724ba675SRob Herring			MX6UL_PAD_SD1_CLK__USDHC1_CLK			0x07099
329*724ba675SRob Herring			MX6UL_PAD_SD1_DATA0__USDHC1_DATA0		0x070b1
330*724ba675SRob Herring			MX6UL_PAD_SD1_DATA1__USDHC1_DATA1		0x070b1
331*724ba675SRob Herring			MX6UL_PAD_SD1_DATA2__USDHC1_DATA2		0x070b1
332*724ba675SRob Herring			MX6UL_PAD_SD1_DATA3__USDHC1_DATA3		0x070b1
333*724ba675SRob Herring			/* SD1 CD */
334*724ba675SRob Herring			MX6UL_PAD_NAND_READY_B__GPIO4_IO12		0x170b0
335*724ba675SRob Herring		>;
336*724ba675SRob Herring	};
337*724ba675SRob Herring
338*724ba675SRob Herring	pinctrl_usdhc2: usdhc2grp {
339*724ba675SRob Herring		fsl,pins = <
340*724ba675SRob Herring			MX6UL_PAD_NAND_WE_B__USDHC2_CMD			0x170f9
341*724ba675SRob Herring			MX6UL_PAD_NAND_RE_B__USDHC2_CLK			0x100f9
342*724ba675SRob Herring			MX6UL_PAD_NAND_DATA00__USDHC2_DATA0		0x170f9
343*724ba675SRob Herring			MX6UL_PAD_NAND_DATA01__USDHC2_DATA1		0x170f9
344*724ba675SRob Herring			MX6UL_PAD_NAND_DATA02__USDHC2_DATA2		0x170f9
345*724ba675SRob Herring			MX6UL_PAD_NAND_DATA03__USDHC2_DATA3		0x170f9
346*724ba675SRob Herring			MX6UL_PAD_NAND_DATA04__USDHC2_DATA4		0x170f9
347*724ba675SRob Herring			MX6UL_PAD_NAND_DATA05__USDHC2_DATA5		0x170f9
348*724ba675SRob Herring			MX6UL_PAD_NAND_DATA06__USDHC2_DATA6		0x170f9
349*724ba675SRob Herring			MX6UL_PAD_NAND_DATA07__USDHC2_DATA7		0x170f9
350*724ba675SRob Herring			MX6UL_PAD_NAND_ALE__USDHC2_RESET_B		0x170b0
351*724ba675SRob Herring		>;
352*724ba675SRob Herring	};
353*724ba675SRob Herring};
354