xref: /linux/scripts/dtc/include-prefixes/arm64/freescale/imx8mn-vhip4-evalboard-v2.dts (revision 6589b3d76db2d6adbf8f2084c303fb24252a0dc6)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright 2024 Fedor Ross <fedor.ross@ifm.com>
4 */
5
6/dts-v1/;
7
8#include "imx8mn-vhip4-evalboard-common.dtsi"
9
10/ {
11	model = "ifm i.MX8MNano VHIP4 Evaluation Board v2";
12	compatible = "ifm,imx8mn-vhip4-evalboard-v2", "ifm,imx8mn-vhip4-evalboard",
13		     "ifm,imx8mn-vhip4", "fsl,imx8mn";
14
15	multi-led {
16		compatible = "leds-group-multicolor";
17		color = <LED_COLOR_ID_RGB>;
18		function = LED_FUNCTION_INDICATOR;
19		leds = <&rgb_0>, <&rgb_1>, <&rgb_2>;
20	};
21};
22
23&ifm_led {
24	pinctrl-1 = <&pinctrl_gpio_led_v2>;
25
26	rgb_0: rgb-led-red {
27		color = <LED_COLOR_ID_RED>;
28		gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>;
29		default-state = "keep";
30	};
31
32	rgb_1: rgb-led-green {
33		color = <LED_COLOR_ID_GREEN>;
34		gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
35		default-state = "keep";
36	};
37
38	rgb_2: rgb-led-blue {
39		color = <LED_COLOR_ID_BLUE>;
40		gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
41		default-state = "keep";
42	};
43};
44
45&ecspi1 {
46	cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>, <&gpio1 11 GPIO_ACTIVE_LOW>;
47	status = "okay";
48
49	eeprom@0 {
50		compatible = "fujitsu,mb85rs64", "atmel,at25";
51		reg = <0>;
52		spi-max-frequency = <20000000>;
53		spi-cpha;
54		spi-cpol;
55		pagesize = <1>;
56		size = <32768>;
57		address-width = <16>;
58	};
59};
60
61&ecspi3 {
62	cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>;
63	status = "okay";
64
65	can0: can@0 {
66		compatible = "microchip,mcp2518fd";
67		pinctrl-names = "default";
68		pinctrl-0 = <&pinctrl_mcp2518>;
69		reg = <0>;
70		clocks = <&can_clk40m>;
71		interrupt-parent = <&gpio1>;
72		interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
73		microchip,rx-int-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
74		spi-max-frequency = <20000000>;
75	};
76};
77
78&i2c1 {
79	scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
80	sda-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
81	status = "okay";
82
83	temperature-sensor@48 {
84		compatible = "ti,tmp1075";
85		reg = <0x48>;
86	};
87
88	eeprom@54 {
89		compatible = "atmel,24c128";
90		reg = <0x54>;
91	};
92};
93
94&i2c3 {
95	scl-gpios = <&gpio5 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
96	sda-gpios = <&gpio5 19 GPIO_ACTIVE_HIGH>;
97	status = "okay";
98};
99
100&ifm_pmic {
101	interrupt-parent = <&gpio5>;
102	interrupts = <17 GPIO_ACTIVE_LOW>;
103};
104
105&iomuxc {
106	pinctrl_ecspi1_cs: ecspi1-cs-grp {
107		fsl,pins = <
108			/* KS8794 nCS */
109			MX8MN_IOMUXC_GPIO1_IO11_GPIO1_IO11		0x150
110			/* Retain memory nCS (FRAM or MRAM) */
111			MX8MN_IOMUXC_ECSPI1_SS0_GPIO5_IO9		0x150
112			/* RETAIN_nHOLD */
113			MX8MN_IOMUXC_SPDIF_RX_GPIO5_IO4			0x140
114		>;
115	};
116
117	pinctrl_ecspi3_cs: ecspi3-cs-grp {
118		fsl,pins = <
119			/* MCP2518FD nCS */
120			MX8MN_IOMUXC_UART2_TXD_GPIO5_IO25		0x150
121		>;
122	};
123
124	pinctrl_gpio_led_v2: gpioled-v2-grp {
125		fsl,pins = <
126			/* LED_RGB_RED */
127			MX8MN_IOMUXC_SD2_DATA2_GPIO2_IO17		0x116
128			/* LED_RGB_GREEN */
129			MX8MN_IOMUXC_SD2_RESET_B_GPIO2_IO19		0x116
130			/* LED_RGB_BLUE */
131			MX8MN_IOMUXC_SD2_WP_GPIO2_IO20			0x116
132		>;
133	};
134
135	pinctrl_i2c1: i2c1-grp {
136		fsl,pins = <
137			MX8MN_IOMUXC_SD1_DATA4_I2C1_SCL			0x40000056
138			MX8MN_IOMUXC_SD1_DATA5_I2C1_SDA			0x400000d6
139		>;
140	};
141
142	pinctrl_i2c1_gpio: i2c1-gpio-grp {
143		fsl,pins = <
144			MX8MN_IOMUXC_SD1_DATA4_GPIO2_IO6		0x56
145			MX8MN_IOMUXC_SD1_DATA5_GPIO2_IO7		0xd6
146			/* CFG_EEPROM_WP */
147			MX8MN_IOMUXC_SD1_STROBE_GPIO2_IO11		0x140
148			/* RTC_nIRQ */
149			MX8MN_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5		0x116
150			/* LOG_EE_WP */
151			MX8MN_IOMUXC_SPDIF_TX_GPIO5_IO3			0x140
152		>;
153	};
154
155	pinctrl_i2c3: i2c3-grp {
156		fsl,pins = <
157			MX8MN_IOMUXC_I2C3_SCL_I2C3_SCL			0x40000056
158			MX8MN_IOMUXC_I2C3_SDA_I2C3_SDA			0x400000d6
159		>;
160	};
161
162	pinctrl_i2c3_gpio: i2c3-gpio-grp {
163		fsl,pins = <
164			MX8MN_IOMUXC_I2C3_SCL_GPIO5_IO18		0x56
165			MX8MN_IOMUXC_I2C3_SDA_GPIO5_IO19		0xd6
166		>;
167	};
168
169	pinctrl_mcp2518: mcp2518-grp {
170		fsl,pins = <
171			/* CAN0_CLKO */
172			MX8MN_IOMUXC_GPIO1_IO00_GPIO1_IO0		0x116
173			/* CAN0_nINT0 */
174			MX8MN_IOMUXC_GPIO1_IO03_GPIO1_IO3		0x116
175			/* CAN0_nINT1 */
176			MX8MN_IOMUXC_GPIO1_IO04_GPIO1_IO4		0x116
177			/* CAN0_nINT */
178			MX8MN_IOMUXC_GPIO1_IO01_GPIO1_IO1		0x116
179		>;
180	};
181
182	pinctrl_pmic: pmic-irq-grp {
183		fsl,pins = <
184			/* PMIC_nIRQ */
185			MX8MN_IOMUXC_I2C2_SDA_GPIO5_IO17		0x1d6
186		>;
187	};
188
189	pinctrl_uart3: uart3-grp {
190		fsl,pins = <
191			MX8MN_IOMUXC_SD1_DATA6_UART3_DCE_TX		0x142
192			MX8MN_IOMUXC_SD1_DATA7_UART3_DCE_RX		0x142
193		>;
194	};
195
196	pinctrl_wdog: wdog-grp {
197		fsl,pins = <
198			MX8MN_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B		0x64
199		>;
200	};
201};
202
203&gpio2 {
204	gpio-line-names =
205		"", "", "", "", "", "", "", "",
206		"", "", "",
207		"ifm_device_info_eeprom_wp",
208		"", "", "", "",
209		"", "", "", "", "", "", "", "",
210		"", "", "", "", "", "", "", "";
211};
212
213&gpio5 {
214	gpio-line-names =
215		"", "", "",
216		"ifm_logging_eeprom_wp",
217		"", "", "", "",
218		"", "", "", "", "", "", "", "",
219		"", "", "", "",	"", "", "", "",
220		"", "", "", "", "", "", "", "";
221};
222