xref: /openbmc/linux/arch/arm/boot/dts/nxp/imx/imx6ul-phytec-segin.dtsi (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2016 PHYTEC Messtechnik GmbH
4*724ba675SRob Herring * Author: Christian Hemp <c.hemp@phytec.de>
5*724ba675SRob Herring */
6*724ba675SRob Herring
7*724ba675SRob Herring/ {
8*724ba675SRob Herring	model = "PHYTEC phyBOARD-Segin i.MX6 UltraLite";
9*724ba675SRob Herring	compatible = "phytec,imx6ul-pbacd-10", "phytec,imx6ul-pcl063", "fsl,imx6ul";
10*724ba675SRob Herring
11*724ba675SRob Herring	aliases {
12*724ba675SRob Herring		rtc0 = &i2c_rtc;
13*724ba675SRob Herring		rtc1 = &snvs_rtc;
14*724ba675SRob Herring	};
15*724ba675SRob Herring
16*724ba675SRob Herring	reg_sound_1v8: regulator-1v8 {
17*724ba675SRob Herring		compatible = "regulator-fixed";
18*724ba675SRob Herring		regulator-name = "i2s-audio-1v8";
19*724ba675SRob Herring		regulator-min-microvolt = <1800000>;
20*724ba675SRob Herring		regulator-max-microvolt = <1800000>;
21*724ba675SRob Herring		status = "disabled";
22*724ba675SRob Herring	};
23*724ba675SRob Herring
24*724ba675SRob Herring	reg_sound_3v3: regulator-3v3 {
25*724ba675SRob Herring		compatible = "regulator-fixed";
26*724ba675SRob Herring		regulator-name = "i2s-audio-3v3";
27*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
28*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
29*724ba675SRob Herring		status = "disabled";
30*724ba675SRob Herring	};
31*724ba675SRob Herring
32*724ba675SRob Herring	reg_can1_en: regulator-can1 {
33*724ba675SRob Herring		compatible = "regulator-fixed";
34*724ba675SRob Herring		pinctrl-names = "default";
35*724ba675SRob Herring		pinctrl-0 = <&princtrl_flexcan1_en>;
36*724ba675SRob Herring		regulator-name = "Can";
37*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
38*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
39*724ba675SRob Herring		gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
40*724ba675SRob Herring		enable-active-high;
41*724ba675SRob Herring		status = "disabled";
42*724ba675SRob Herring	};
43*724ba675SRob Herring
44*724ba675SRob Herring	reg_adc1_vref_3v3: regulator-vref-3v3 {
45*724ba675SRob Herring		compatible = "regulator-fixed";
46*724ba675SRob Herring		regulator-name = "vref-3v3";
47*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
48*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
49*724ba675SRob Herring	};
50*724ba675SRob Herring
51*724ba675SRob Herring	sound: sound {
52*724ba675SRob Herring		compatible = "simple-audio-card";
53*724ba675SRob Herring		simple-audio-card,name = "phyBOARD-Segin-TLV320AIC3007";
54*724ba675SRob Herring		simple-audio-card,format = "i2s";
55*724ba675SRob Herring		simple-audio-card,bitclock-master = <&dailink_master>;
56*724ba675SRob Herring		simple-audio-card,frame-master = <&dailink_master>;
57*724ba675SRob Herring		simple-audio-card,widgets =
58*724ba675SRob Herring			"Line", "Line In",
59*724ba675SRob Herring			"Line", "Line Out",
60*724ba675SRob Herring			"Speaker", "Speaker";
61*724ba675SRob Herring		simple-audio-card,routing =
62*724ba675SRob Herring			"Line Out", "LLOUT",
63*724ba675SRob Herring			"Line Out", "RLOUT",
64*724ba675SRob Herring			"Speaker", "SPOP",
65*724ba675SRob Herring			"Speaker", "SPOM",
66*724ba675SRob Herring			"LINE1L", "Line In",
67*724ba675SRob Herring			"LINE1R", "Line In";
68*724ba675SRob Herring		status = "disabled";
69*724ba675SRob Herring
70*724ba675SRob Herring		simple-audio-card,cpu {
71*724ba675SRob Herring			sound-dai = <&sai2>;
72*724ba675SRob Herring		};
73*724ba675SRob Herring
74*724ba675SRob Herring		dailink_master: simple-audio-card,codec {
75*724ba675SRob Herring			sound-dai = <&tlv320>;
76*724ba675SRob Herring			clocks = <&clks IMX6UL_CLK_SAI2>;
77*724ba675SRob Herring		};
78*724ba675SRob Herring	};
79*724ba675SRob Herring
80*724ba675SRob Herring};
81*724ba675SRob Herring
82*724ba675SRob Herring&adc1 {
83*724ba675SRob Herring	pinctrl-names = "default";
84*724ba675SRob Herring	pinctrl-0 = <&pinctrl_adc1>;
85*724ba675SRob Herring	vref-supply = <&reg_adc1_vref_3v3>;
86*724ba675SRob Herring	status = "disabled";
87*724ba675SRob Herring};
88*724ba675SRob Herring
89*724ba675SRob Herring&can1 {
90*724ba675SRob Herring	pinctrl-names = "default";
91*724ba675SRob Herring	pinctrl-0 = <&pinctrl_flexcan1>;
92*724ba675SRob Herring	xceiver-supply = <&reg_can1_en>;
93*724ba675SRob Herring	status = "disabled";
94*724ba675SRob Herring};
95*724ba675SRob Herring
96*724ba675SRob Herring&clks {
97*724ba675SRob Herring	assigned-clocks = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>;
98*724ba675SRob Herring	assigned-clock-rates = <786432000>;
99*724ba675SRob Herring};
100*724ba675SRob Herring
101*724ba675SRob Herring&ecspi3 {
102*724ba675SRob Herring	pinctrl-names = "default";
103*724ba675SRob Herring	pinctrl-0 = <&pinctrl_ecspi3>;
104*724ba675SRob Herring	cs-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
105*724ba675SRob Herring	status = "disabled";
106*724ba675SRob Herring};
107*724ba675SRob Herring
108*724ba675SRob Herring&fec2 {
109*724ba675SRob Herring	pinctrl-names = "default";
110*724ba675SRob Herring	pinctrl-0 = <&pinctrl_enet2>;
111*724ba675SRob Herring	phy-mode = "rmii";
112*724ba675SRob Herring	phy-handle = <&ethphy2>;
113*724ba675SRob Herring	status = "disabled";
114*724ba675SRob Herring};
115*724ba675SRob Herring
116*724ba675SRob Herring&i2c1 {
117*724ba675SRob Herring	tlv320: codec@18 {
118*724ba675SRob Herring		compatible = "ti,tlv320aic3007";
119*724ba675SRob Herring		#sound-dai-cells = <0>;
120*724ba675SRob Herring		reg = <0x18>;
121*724ba675SRob Herring		AVDD-supply = <&reg_sound_3v3>;
122*724ba675SRob Herring		IOVDD-supply = <&reg_sound_3v3>;
123*724ba675SRob Herring		DRVDD-supply = <&reg_sound_3v3>;
124*724ba675SRob Herring		DVDD-supply = <&reg_sound_1v8>;
125*724ba675SRob Herring		status = "disabled";
126*724ba675SRob Herring	};
127*724ba675SRob Herring
128*724ba675SRob Herring	i2c_rtc: rtc@68 {
129*724ba675SRob Herring		pinctrl-names = "default";
130*724ba675SRob Herring		pinctrl-0 = <&pinctrl_rtc_int>;
131*724ba675SRob Herring		compatible = "microcrystal,rv4162";
132*724ba675SRob Herring		reg = <0x68>;
133*724ba675SRob Herring		interrupt-parent = <&gpio5>;
134*724ba675SRob Herring		interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
135*724ba675SRob Herring		status = "disabled";
136*724ba675SRob Herring	};
137*724ba675SRob Herring};
138*724ba675SRob Herring
139*724ba675SRob Herring&mdio {
140*724ba675SRob Herring	ethphy2: ethernet-phy@2 {
141*724ba675SRob Herring		reg = <2>;
142*724ba675SRob Herring		micrel,led-mode = <1>;
143*724ba675SRob Herring		clocks = <&clks IMX6UL_CLK_ENET2_REF>;
144*724ba675SRob Herring		clock-names = "rmii-ref";
145*724ba675SRob Herring		status = "disabled";
146*724ba675SRob Herring	};
147*724ba675SRob Herring};
148*724ba675SRob Herring
149*724ba675SRob Herring&sai2 {
150*724ba675SRob Herring	pinctrl-names = "default";
151*724ba675SRob Herring	pinctrl-0 = <&pinctrl_sai2>;
152*724ba675SRob Herring	assigned-clocks = <&clks IMX6UL_CLK_SAI2_SEL>,
153*724ba675SRob Herring			<&clks IMX6UL_CLK_SAI2>;
154*724ba675SRob Herring	assigned-clock-parents = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>;
155*724ba675SRob Herring	assigned-clock-rates = <0>, <19200000>;
156*724ba675SRob Herring	fsl,sai-mclk-direction-output;
157*724ba675SRob Herring	status = "disabled";
158*724ba675SRob Herring};
159*724ba675SRob Herring
160*724ba675SRob Herring&uart5 {
161*724ba675SRob Herring	pinctrl-names = "default";
162*724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart5>;
163*724ba675SRob Herring	uart-has-rtscts;
164*724ba675SRob Herring	status = "disabled";
165*724ba675SRob Herring};
166*724ba675SRob Herring
167*724ba675SRob Herring&usbotg1 {
168*724ba675SRob Herring	pinctrl-names = "default";
169*724ba675SRob Herring	pinctrl-0 = <&pinctrl_usb_otg1_id>;
170*724ba675SRob Herring	dr_mode = "otg";
171*724ba675SRob Herring	status = "disabled";
172*724ba675SRob Herring};
173*724ba675SRob Herring
174*724ba675SRob Herring&usbotg2 {
175*724ba675SRob Herring	dr_mode = "host";
176*724ba675SRob Herring	disable-over-current;
177*724ba675SRob Herring	status = "disabled";
178*724ba675SRob Herring};
179*724ba675SRob Herring
180*724ba675SRob Herring&usdhc1 {
181*724ba675SRob Herring	pinctrl-names = "default", "state_100mhz", "state_200mhz";
182*724ba675SRob Herring	pinctrl-0 = <&pinctrl_usdhc1>;
183*724ba675SRob Herring	pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
184*724ba675SRob Herring	pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
185*724ba675SRob Herring	cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
186*724ba675SRob Herring	no-1-8-v;
187*724ba675SRob Herring	keep-power-in-suspend;
188*724ba675SRob Herring	wakeup-source;
189*724ba675SRob Herring	disable-wp;
190*724ba675SRob Herring	status = "disabled";
191*724ba675SRob Herring};
192*724ba675SRob Herring
193*724ba675SRob Herring&iomuxc {
194*724ba675SRob Herring	pinctrl_adc1: adc1grp {
195*724ba675SRob Herring		fsl,pins = <
196*724ba675SRob Herring			MX6UL_PAD_GPIO1_IO03__GPIO1_IO03	0xb0
197*724ba675SRob Herring		>;
198*724ba675SRob Herring	};
199*724ba675SRob Herring
200*724ba675SRob Herring	pinctrl_ecspi3: ecspi3grp {
201*724ba675SRob Herring		fsl,pins = <
202*724ba675SRob Herring			MX6UL_PAD_UART2_RTS_B__ECSPI3_MISO	0x10b0
203*724ba675SRob Herring			MX6UL_PAD_UART2_CTS_B__ECSPI3_MOSI	0x10b0
204*724ba675SRob Herring			MX6UL_PAD_UART2_RX_DATA__ECSPI3_SCLK	0x10b0
205*724ba675SRob Herring			MX6UL_PAD_UART2_TX_DATA__GPIO1_IO20	0x10b0
206*724ba675SRob Herring		>;
207*724ba675SRob Herring	};
208*724ba675SRob Herring
209*724ba675SRob Herring	pinctrl_enet2: enet2grp {
210*724ba675SRob Herring		fsl,pins = <
211*724ba675SRob Herring			MX6UL_PAD_ENET2_RX_EN__ENET2_RX_EN	0x1b0b0
212*724ba675SRob Herring			MX6UL_PAD_ENET2_RX_ER__ENET2_RX_ER	0x1b0b0
213*724ba675SRob Herring			MX6UL_PAD_ENET2_RX_DATA0__ENET2_RDATA00	0x1b0b0
214*724ba675SRob Herring			MX6UL_PAD_ENET2_RX_DATA1__ENET2_RDATA01	0x1b0b0
215*724ba675SRob Herring			MX6UL_PAD_ENET2_TX_EN__ENET2_TX_EN	0x1b010
216*724ba675SRob Herring			MX6UL_PAD_ENET2_TX_DATA0__ENET2_TDATA00	0x1b010
217*724ba675SRob Herring			MX6UL_PAD_ENET2_TX_DATA1__ENET2_TDATA01	0x1b010
218*724ba675SRob Herring			MX6UL_PAD_ENET2_TX_CLK__ENET2_REF_CLK2	0x4001b010
219*724ba675SRob Herring		>;
220*724ba675SRob Herring	};
221*724ba675SRob Herring
222*724ba675SRob Herring	pinctrl_flexcan1: flexcan1 {
223*724ba675SRob Herring		fsl,pins = <
224*724ba675SRob Herring			MX6UL_PAD_UART3_CTS_B__FLEXCAN1_TX	0x0b0b0
225*724ba675SRob Herring			MX6UL_PAD_UART3_RTS_B__FLEXCAN1_RX	0x0b0b0
226*724ba675SRob Herring		>;
227*724ba675SRob Herring	};
228*724ba675SRob Herring
229*724ba675SRob Herring	princtrl_flexcan1_en: flexcan1engrp {
230*724ba675SRob Herring		fsl,pins = <
231*724ba675SRob Herring			MX6UL_PAD_SNVS_TAMPER2__GPIO5_IO02	0x17059
232*724ba675SRob Herring		>;
233*724ba675SRob Herring	};
234*724ba675SRob Herring
235*724ba675SRob Herring	pinctrl_rtc_int: rtcintgrp {
236*724ba675SRob Herring		fsl,pins = <
237*724ba675SRob Herring			MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01	0x17059
238*724ba675SRob Herring		>;
239*724ba675SRob Herring	};
240*724ba675SRob Herring
241*724ba675SRob Herring	pinctrl_sai2: sai2grp {
242*724ba675SRob Herring		fsl,pins = <
243*724ba675SRob Herring			MX6UL_PAD_JTAG_TDI__SAI2_TX_BCLK	0x17088
244*724ba675SRob Herring			MX6UL_PAD_JTAG_TDO__SAI2_TX_SYNC	0x17088
245*724ba675SRob Herring			MX6UL_PAD_JTAG_TRST_B__SAI2_TX_DATA	0x11088
246*724ba675SRob Herring			MX6UL_PAD_JTAG_TCK__SAI2_RX_DATA	0x11088
247*724ba675SRob Herring			MX6UL_PAD_JTAG_TMS__SAI2_MCLK		0x17088
248*724ba675SRob Herring		>;
249*724ba675SRob Herring	};
250*724ba675SRob Herring
251*724ba675SRob Herring	pinctrl_uart5: uart5grp {
252*724ba675SRob Herring		fsl,pins = <
253*724ba675SRob Herring			MX6UL_PAD_UART5_TX_DATA__UART5_DCE_TX	0x1b0b1
254*724ba675SRob Herring			MX6UL_PAD_UART5_RX_DATA__UART5_DCE_RX	0x1b0b1
255*724ba675SRob Herring			MX6UL_PAD_GPIO1_IO08__UART5_DCE_RTS	0x1b0b1
256*724ba675SRob Herring			MX6UL_PAD_GPIO1_IO09__UART5_DCE_CTS	0x1b0b1
257*724ba675SRob Herring		>;
258*724ba675SRob Herring	};
259*724ba675SRob Herring
260*724ba675SRob Herring	pinctrl_usb_otg1_id: usbotg1idgrp {
261*724ba675SRob Herring		fsl,pins = <
262*724ba675SRob Herring			MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID	0x17059
263*724ba675SRob Herring		>;
264*724ba675SRob Herring	};
265*724ba675SRob Herring
266*724ba675SRob Herring	pinctrl_usdhc1: usdhc1grp {
267*724ba675SRob Herring		fsl,pins = <
268*724ba675SRob Herring			MX6UL_PAD_SD1_CMD__USDHC1_CMD		0x17059
269*724ba675SRob Herring			MX6UL_PAD_SD1_CLK__USDHC1_CLK		0x10059
270*724ba675SRob Herring			MX6UL_PAD_SD1_DATA0__USDHC1_DATA0	0x17059
271*724ba675SRob Herring			MX6UL_PAD_SD1_DATA1__USDHC1_DATA1	0x17059
272*724ba675SRob Herring			MX6UL_PAD_SD1_DATA2__USDHC1_DATA2	0x17059
273*724ba675SRob Herring			MX6UL_PAD_SD1_DATA3__USDHC1_DATA3	0x17059
274*724ba675SRob Herring			MX6UL_PAD_UART1_RTS_B__GPIO1_IO19	0x17059
275*724ba675SRob Herring		>;
276*724ba675SRob Herring	};
277*724ba675SRob Herring
278*724ba675SRob Herring	pinctrl_usdhc1_100mhz: usdhc1grp100mhz {
279*724ba675SRob Herring		fsl,pins = <
280*724ba675SRob Herring			MX6UL_PAD_SD1_CMD__USDHC1_CMD		0x170b9
281*724ba675SRob Herring			MX6UL_PAD_SD1_CLK__USDHC1_CLK		0x100b9
282*724ba675SRob Herring			MX6UL_PAD_SD1_DATA0__USDHC1_DATA0	0x170b9
283*724ba675SRob Herring			MX6UL_PAD_SD1_DATA1__USDHC1_DATA1	0x170b9
284*724ba675SRob Herring			MX6UL_PAD_SD1_DATA2__USDHC1_DATA2	0x170b9
285*724ba675SRob Herring			MX6UL_PAD_SD1_DATA3__USDHC1_DATA3	0x170b9
286*724ba675SRob Herring		>;
287*724ba675SRob Herring	};
288*724ba675SRob Herring
289*724ba675SRob Herring	pinctrl_usdhc1_200mhz: usdhc1grp200mhz {
290*724ba675SRob Herring		fsl,pins = <
291*724ba675SRob Herring			MX6UL_PAD_SD1_CMD__USDHC1_CMD		0x170f9
292*724ba675SRob Herring			MX6UL_PAD_SD1_CLK__USDHC1_CLK		0x100f9
293*724ba675SRob Herring			MX6UL_PAD_SD1_DATA0__USDHC1_DATA0	0x170f9
294*724ba675SRob Herring			MX6UL_PAD_SD1_DATA1__USDHC1_DATA1	0x170f9
295*724ba675SRob Herring			MX6UL_PAD_SD1_DATA2__USDHC1_DATA2	0x170f9
296*724ba675SRob Herring			MX6UL_PAD_SD1_DATA3__USDHC1_DATA3	0x170f9
297*724ba675SRob Herring		>;
298*724ba675SRob Herring	};
299*724ba675SRob Herring};
300