summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/imx6ul-14x14-evk-ecspi.dts
blob: 14670020969398f59877767fd63522b5b0cf1ca1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * Copyright (C) 2018 NXP
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

/*
 * DTS file for ECSPI Certification at i.mx6ul 14x14 evk board.
 * NOTE: Because Ethernet2 use the same pins with ecspi4, so disable
 *       fec1/fec2 for ECSPI4 test.
 */

#include "imx6ul-14x14-evk.dts"

&iomuxc {
	pinctrl_ecspi4: ecspi4grp {
		fsl,pins = <
			MX6UL_PAD_ENET2_TX_DATA1__ECSPI4_SCLK	0x70a1
			MX6UL_PAD_ENET2_TX_EN__ECSPI4_MOSI	0x70a1
			MX6UL_PAD_ENET2_TX_CLK__ECSPI4_MISO	0x70a1
			MX6UL_PAD_ENET2_RX_ER__ECSPI4_SS0	0x70a1
		>;
	};
};

&ecspi4 {
	#address-cells = <1>;
	#size-cells = <0>;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_ecspi4>;
	status = "okay";

	spidev0: spi@0 {
		reg = <0>;
		compatible = "rohm,dh2228fv";
		spi-max-frequency = <20000000>;
	};
};

&fec1 {
	status = "disabled";
};

&fec2 {
	status = "disabled";
};