xref: /linux/arch/arm/boot/dts/nxp/imx/imx27-apf27dev.dts (revision fbf5df34a4dbcd09d433dd4f0916bf9b2ddb16de)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright 2013 Armadeus Systems - <support@armadeus.com>
4 */
5
6/* APF27Dev is a docking board for the APF27 SOM */
7#include "imx27-apf27.dts"
8
9/ {
10	model = "Armadeus Systems APF27Dev docking/development board";
11	compatible = "armadeus,imx27-apf27dev", "armadeus,imx27-apf27", "fsl,imx27";
12
13	display: display {
14		model = "Chimei-LW700AT9003";
15		bits-per-pixel = <16>;  /* non-standard but required */
16		fsl,pcr = <0xfae80083>;	/* non-standard but required */
17		display-timings {
18			native-mode = <&timing0>;
19			timing0: timing0 {
20				clock-frequency = <33000033>;
21				hactive = <800>;
22				vactive = <480>;
23				hback-porch = <96>;
24				hfront-porch = <96>;
25				vback-porch = <20>;
26				vfront-porch = <21>;
27				hsync-len = <64>;
28				vsync-len = <4>;
29			};
30		};
31	};
32
33	gpio-keys {
34		compatible = "gpio-keys";
35		pinctrl-names = "default";
36		pinctrl-0 = <&pinctrl_gpio_keys>;
37
38		user-key {
39			label = "user";
40			gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
41			linux,code = <276>; /* BTN_EXTRA */
42		};
43	};
44
45	leds {
46		compatible = "gpio-leds";
47		pinctrl-names = "default";
48		pinctrl-0 = <&pinctrl_gpio_leds>;
49
50		led-user {
51			label = "Heartbeat";
52			gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>;
53			linux,default-trigger = "heartbeat";
54		};
55	};
56
57	reg_max5821: regulator-0 {
58		compatible = "regulator-fixed";
59		regulator-name = "max5821-reg";
60		regulator-min-microvolt = <2500000>;
61		regulator-max-microvolt = <2500000>;
62		regulator-always-on;
63	};
64};
65
66&cspi1 {
67	cs-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
68	pinctrl-names = "default";
69	pinctrl-0 = <&pinctrl_cspi1 &pinctrl_cspi1_cs>;
70	status = "okay";
71
72	adc@0 {
73		compatible = "maxim,max1027";
74		reg = <0>;
75		interrupt-parent = <&gpio5>;
76		interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
77		pinctrl-names = "default";
78		pinctrl-0 = <&pinctrl_max1027>;
79		spi-max-frequency = <10000000>;
80	};
81};
82
83&cspi2 {
84	cs-gpios = <&gpio4 21 GPIO_ACTIVE_LOW>,
85		   <&gpio4 27 GPIO_ACTIVE_LOW>,
86		   <&gpio2 17 GPIO_ACTIVE_LOW>;
87	pinctrl-names = "default";
88	pinctrl-0 = <&pinctrl_cspi2 &pinctrl_cspi2_cs>;
89	status = "okay";
90};
91
92&fb {
93	display = <&display>;
94	fsl,dmacr = <0x00020010>;
95	pinctrl-names = "default";
96	pinctrl-0 = <&pinctrl_imxfb1>;
97	status = "okay";
98};
99
100&i2c1 {
101	clock-frequency = <400000>;
102	pinctrl-names = "default";
103	pinctrl-0 = <&pinctrl_i2c1>;
104	status = "okay";
105
106	rtc@68 {
107		compatible = "dallas,ds1374";
108		reg = <0x68>;
109	};
110
111	max5821@38 {
112		compatible = "maxim,max5821";
113		reg = <0x38>;
114		vref-supply = <&reg_max5821>;
115	};
116};
117
118&i2c2 {
119	pinctrl-names = "default";
120	pinctrl-0 = <&pinctrl_i2c2>;
121	status = "okay";
122};
123
124&iomuxc {
125	pinctrl_cspi1: cspi1grp {
126		fsl,pins = <
127			MX27_PAD_CSPI1_MISO__CSPI1_MISO 0x0
128			MX27_PAD_CSPI1_MOSI__CSPI1_MOSI 0x0
129			MX27_PAD_CSPI1_SCLK__CSPI1_SCLK 0x0
130		>;
131	};
132
133	pinctrl_cspi1_cs: cspi1csgrp {
134		fsl,pins = <MX27_PAD_CSPI1_SS0__GPIO4_28 0x0>;
135	};
136
137	pinctrl_cspi2: cspi2grp {
138		fsl,pins = <
139			MX27_PAD_CSPI2_MISO__CSPI2_MISO 0x0
140			MX27_PAD_CSPI2_MOSI__CSPI2_MOSI 0x0
141			MX27_PAD_CSPI2_SCLK__CSPI2_SCLK 0x0
142		>;
143	};
144
145	pinctrl_cspi2_cs: cspi2csgrp {
146		fsl,pins = <
147			MX27_PAD_CSI_D5__GPIO2_17 0x0
148			MX27_PAD_CSPI2_SS0__GPIO4_21 0x0
149			MX27_PAD_CSPI1_SS1__GPIO4_27 0x0
150		>;
151	};
152
153	pinctrl_gpio_leds: gpioledsgrp {
154		fsl,pins = <MX27_PAD_PC_VS1__GPIO6_14 0x0>;
155	};
156
157	pinctrl_gpio_keys: gpiokeysgrp {
158		fsl,pins = <MX27_PAD_PC_VS2__GPIO6_13 0x0>;
159	};
160
161	pinctrl_imxfb1: imxfbgrp {
162		fsl,pins = <
163			MX27_PAD_CLS__CLS 0x0
164			MX27_PAD_CONTRAST__CONTRAST 0x0
165			MX27_PAD_LD0__LD0 0x0
166			MX27_PAD_LD1__LD1 0x0
167			MX27_PAD_LD2__LD2 0x0
168			MX27_PAD_LD3__LD3 0x0
169			MX27_PAD_LD4__LD4 0x0
170			MX27_PAD_LD5__LD5 0x0
171			MX27_PAD_LD6__LD6 0x0
172			MX27_PAD_LD7__LD7 0x0
173			MX27_PAD_LD8__LD8 0x0
174			MX27_PAD_LD9__LD9 0x0
175			MX27_PAD_LD10__LD10 0x0
176			MX27_PAD_LD11__LD11 0x0
177			MX27_PAD_LD12__LD12 0x0
178			MX27_PAD_LD13__LD13 0x0
179			MX27_PAD_LD14__LD14 0x0
180			MX27_PAD_LD15__LD15 0x0
181			MX27_PAD_LD16__LD16 0x0
182			MX27_PAD_LD17__LD17 0x0
183			MX27_PAD_LSCLK__LSCLK 0x0
184			MX27_PAD_OE_ACD__OE_ACD 0x0
185			MX27_PAD_PS__PS 0x0
186			MX27_PAD_REV__REV 0x0
187			MX27_PAD_SPL_SPR__SPL_SPR 0x0
188			MX27_PAD_HSYNC__HSYNC 0x0
189			MX27_PAD_VSYNC__VSYNC 0x0
190		>;
191	};
192
193	pinctrl_i2c1: i2c1grp {
194		fsl,pins = <
195			MX27_PAD_I2C_DATA__I2C_DATA 0x0
196			MX27_PAD_I2C_CLK__I2C_CLK 0x0
197		>;
198	};
199
200	pinctrl_i2c2: i2c2grp {
201		fsl,pins = <
202			MX27_PAD_I2C2_SDA__I2C2_SDA 0x0
203			MX27_PAD_I2C2_SCL__I2C2_SCL 0x0
204		>;
205	};
206
207	pinctrl_max1027: max1027grp {
208		 fsl,pins = <
209			 MX27_PAD_UART1_CTS__GPIO5_14 0x0 /* CNVST */
210			 MX27_PAD_UART1_RTS__GPIO5_15 0x0 /* EOC */
211		>;
212	};
213
214	pinctrl_pwm: pwmgrp {
215		fsl,pins = <
216			MX27_PAD_PWMO__PWMO 0x0
217		>;
218	};
219
220	pinctrl_sdhc2: sdhc2grp {
221		fsl,pins = <
222			MX27_PAD_SD2_CLK__SD2_CLK 0x0
223			MX27_PAD_SD2_CMD__SD2_CMD 0x0
224			MX27_PAD_SD2_D0__SD2_D0 0x0
225			MX27_PAD_SD2_D1__SD2_D1 0x0
226			MX27_PAD_SD2_D2__SD2_D2 0x0
227			MX27_PAD_SD2_D3__SD2_D3 0x0
228		>;
229	};
230
231	pinctrl_sdhc2_cd: sdhc2cdgrp {
232		fsl,pins = <MX27_PAD_TOUT__GPIO3_14 0x0>;
233	};
234};
235
236&sdhci2 {
237	bus-width = <4>;
238	cd-gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
239	pinctrl-names = "default";
240	pinctrl-0 = <&pinctrl_sdhc2 &pinctrl_sdhc2_cd>;
241	status = "okay";
242};
243
244&pwm {
245	pinctrl-names = "default";
246	pinctrl-0 = <&pinctrl_pwm>;
247};
248