1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2015-2016 Texas Instruments Incorporated - http://www.ti.com/
4 */
5/dts-v1/;
6
7#include "am5718.dtsi"
8#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/interrupt-controller/irq.h>
10#include "dra7-mmc-iodelay.dtsi"
11#include "dra72x-mmc-iodelay.dtsi"
12#include "am57xx-idk-common.dtsi"
13
14/ {
15	model = "TI AM5718 IDK";
16	compatible = "ti,am5718-idk", "ti,am5718", "ti,dra7";
17
18	memory@80000000 {
19		device_type = "memory";
20		reg = <0x0 0x80000000 0x0 0x40000000>;
21	};
22
23	leds {
24		compatible = "gpio-leds";
25		cpu0-led {
26			label = "status0:red:cpu0";
27			gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
28			default-state = "off";
29			linux,default-trigger = "cpu0";
30		};
31
32		usr0-led {
33			label = "status0:green:usr";
34			gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
35			default-state = "off";
36		};
37
38		heartbeat-led {
39			label = "status0:blue:heartbeat";
40			gpios = <&gpio2 27 GPIO_ACTIVE_HIGH>;
41			default-state = "off";
42			linux,default-trigger = "heartbeat";
43		};
44
45		usr1-led {
46			label = "status1:red:usr";
47			gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
48			default-state = "off";
49		};
50
51		usr2-led {
52			label = "status1:green:usr";
53			gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
54			default-state = "off";
55		};
56
57		mmc0-led {
58			label = "status1:blue:mmc0";
59			gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
60			default-state = "off";
61			linux,default-trigger = "mmc0";
62		};
63	};
64
65	idk-leds {
66		status = "disabled";
67		compatible = "gpio-leds";
68		red0-led {
69			label = "idk:red0";
70			gpios = <&gpio6 19 GPIO_ACTIVE_HIGH>;
71			default-state = "off";
72		};
73
74		green0-led {
75			label = "idk:green0";
76			gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>;
77			default-state = "off";
78		};
79
80		blue0-led {
81			label = "idk:blue0";
82			gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
83			default-state = "off";
84		};
85
86		red1-led {
87			label = "idk:red1";
88			gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
89			default-state = "off";
90		};
91
92		green1-led {
93			label = "idk:green1";
94			gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
95			default-state = "off";
96		};
97
98		blue1-led {
99			label = "idk:blue1";
100			gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
101			default-state = "off";
102		};
103
104		red2-led {
105			label = "idk:red2";
106			gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>;
107			default-state = "off";
108		};
109
110		green2-led {
111			label = "idk:green2";
112			gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>;
113			default-state = "off";
114		};
115
116		blue2-led {
117			label = "idk:blue2";
118			gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>;
119			default-state = "off";
120		};
121
122		red3-led {
123			label = "idk:red3";
124			gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>;
125			default-state = "off";
126		};
127
128		green3-led {
129			label = "idk:green3";
130			gpios = <&gpio7 25 GPIO_ACTIVE_HIGH>;
131			default-state = "off";
132		};
133
134		blue3-led {
135			label = "idk:blue3";
136			gpios = <&gpio7 24 GPIO_ACTIVE_HIGH>;
137			default-state = "off";
138		};
139	};
140};
141
142&extcon_usb2 {
143	id-gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>;
144	vbus-gpio = <&gpio7 22 GPIO_ACTIVE_HIGH>;
145};
146
147&sn65hvs882 {
148	load-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
149};
150
151&mailbox5 {
152	status = "okay";
153	mbox_ipu1_ipc3x: mbox_ipu1_ipc3x {
154		status = "okay";
155	};
156	mbox_dsp1_ipc3x: mbox_dsp1_ipc3x {
157		status = "okay";
158	};
159};
160
161&mailbox6 {
162	status = "okay";
163	mbox_ipu2_ipc3x: mbox_ipu2_ipc3x {
164		status = "okay";
165	};
166};
167
168&pcie1_rc {
169	status = "okay";
170	gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
171};
172
173&pcie1_ep {
174	gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
175};
176
177&mmc1 {
178	pinctrl-names = "default", "hs";
179	pinctrl-0 = <&mmc1_pins_default_no_clk_pu>;
180	pinctrl-1 = <&mmc1_pins_hs>;
181};
182
183&mmc2 {
184	pinctrl-names = "default", "hs", "ddr_3_3v";
185	pinctrl-0 = <&mmc2_pins_default>;
186	pinctrl-1 = <&mmc2_pins_hs>;
187	pinctrl-2 = <&mmc2_pins_ddr_rev20 &mmc2_iodelay_ddr_conf>;
188};
189