xref: /openbmc/linux/arch/arm/boot/dts/ti/omap/dra7-evm-common.dtsi (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/
4*724ba675SRob Herring */
5*724ba675SRob Herring
6*724ba675SRob Herring#include "dra74-ipu-dsp-common.dtsi"
7*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
8*724ba675SRob Herring#include <dt-bindings/clock/ti-dra7-atl.h>
9*724ba675SRob Herring#include <dt-bindings/input/input.h>
10*724ba675SRob Herring
11*724ba675SRob Herring/ {
12*724ba675SRob Herring	chosen {
13*724ba675SRob Herring		stdout-path = &uart1;
14*724ba675SRob Herring	};
15*724ba675SRob Herring
16*724ba675SRob Herring	extcon_usb1: extcon_usb1 {
17*724ba675SRob Herring		compatible = "linux,extcon-usb-gpio";
18*724ba675SRob Herring		id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
19*724ba675SRob Herring	};
20*724ba675SRob Herring
21*724ba675SRob Herring	extcon_usb2: extcon_usb2 {
22*724ba675SRob Herring		compatible = "linux,extcon-usb-gpio";
23*724ba675SRob Herring		id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
24*724ba675SRob Herring	};
25*724ba675SRob Herring
26*724ba675SRob Herring	sound0: sound0 {
27*724ba675SRob Herring		compatible = "simple-audio-card";
28*724ba675SRob Herring		simple-audio-card,name = "DRA7xx-EVM";
29*724ba675SRob Herring		simple-audio-card,widgets =
30*724ba675SRob Herring			"Headphone", "Headphone Jack",
31*724ba675SRob Herring			"Line", "Line Out",
32*724ba675SRob Herring			"Microphone", "Mic Jack",
33*724ba675SRob Herring			"Line", "Line In";
34*724ba675SRob Herring		simple-audio-card,routing =
35*724ba675SRob Herring			"Headphone Jack",	"HPLOUT",
36*724ba675SRob Herring			"Headphone Jack",	"HPROUT",
37*724ba675SRob Herring			"Line Out",		"LLOUT",
38*724ba675SRob Herring			"Line Out",		"RLOUT",
39*724ba675SRob Herring			"MIC3L",		"Mic Jack",
40*724ba675SRob Herring			"MIC3R",		"Mic Jack",
41*724ba675SRob Herring			"Mic Jack",		"Mic Bias",
42*724ba675SRob Herring			"LINE1L",		"Line In",
43*724ba675SRob Herring			"LINE1R",		"Line In";
44*724ba675SRob Herring		simple-audio-card,format = "dsp_b";
45*724ba675SRob Herring		simple-audio-card,bitclock-master = <&sound0_master>;
46*724ba675SRob Herring		simple-audio-card,frame-master = <&sound0_master>;
47*724ba675SRob Herring		simple-audio-card,bitclock-inversion;
48*724ba675SRob Herring
49*724ba675SRob Herring		sound0_master: simple-audio-card,cpu {
50*724ba675SRob Herring			sound-dai = <&mcasp3>;
51*724ba675SRob Herring			system-clock-frequency = <5644800>;
52*724ba675SRob Herring		};
53*724ba675SRob Herring
54*724ba675SRob Herring		simple-audio-card,codec {
55*724ba675SRob Herring			sound-dai = <&tlv320aic3106>;
56*724ba675SRob Herring			clocks = <&atl_clkin2_ck>;
57*724ba675SRob Herring		};
58*724ba675SRob Herring	};
59*724ba675SRob Herring
60*724ba675SRob Herring	leds {
61*724ba675SRob Herring		compatible = "gpio-leds";
62*724ba675SRob Herring		led0 {
63*724ba675SRob Herring			label = "dra7:usr1";
64*724ba675SRob Herring			gpios = <&pcf_lcd 4 GPIO_ACTIVE_LOW>;
65*724ba675SRob Herring			default-state = "off";
66*724ba675SRob Herring		};
67*724ba675SRob Herring
68*724ba675SRob Herring		led1 {
69*724ba675SRob Herring			label = "dra7:usr2";
70*724ba675SRob Herring			gpios = <&pcf_lcd 5 GPIO_ACTIVE_LOW>;
71*724ba675SRob Herring			default-state = "off";
72*724ba675SRob Herring		};
73*724ba675SRob Herring
74*724ba675SRob Herring		led2 {
75*724ba675SRob Herring			label = "dra7:usr3";
76*724ba675SRob Herring			gpios = <&pcf_lcd 6 GPIO_ACTIVE_LOW>;
77*724ba675SRob Herring			default-state = "off";
78*724ba675SRob Herring		};
79*724ba675SRob Herring
80*724ba675SRob Herring		led3 {
81*724ba675SRob Herring			label = "dra7:usr4";
82*724ba675SRob Herring			gpios = <&pcf_lcd 7 GPIO_ACTIVE_LOW>;
83*724ba675SRob Herring			default-state = "off";
84*724ba675SRob Herring		};
85*724ba675SRob Herring	};
86*724ba675SRob Herring
87*724ba675SRob Herring	gpio_keys {
88*724ba675SRob Herring		compatible = "gpio-keys";
89*724ba675SRob Herring		#address-cells = <1>;
90*724ba675SRob Herring		#size-cells = <0>;
91*724ba675SRob Herring		autorepeat;
92*724ba675SRob Herring
93*724ba675SRob Herring		USER1 {
94*724ba675SRob Herring			label = "btnUser1";
95*724ba675SRob Herring			linux,code = <BTN_0>;
96*724ba675SRob Herring			gpios = <&pcf_lcd 2 GPIO_ACTIVE_LOW>;
97*724ba675SRob Herring		};
98*724ba675SRob Herring
99*724ba675SRob Herring		USER2 {
100*724ba675SRob Herring			label = "btnUser2";
101*724ba675SRob Herring			linux,code = <BTN_1>;
102*724ba675SRob Herring			gpios = <&pcf_lcd 3 GPIO_ACTIVE_LOW>;
103*724ba675SRob Herring		};
104*724ba675SRob Herring	};
105*724ba675SRob Herring};
106*724ba675SRob Herring
107*724ba675SRob Herring&i2c3 {
108*724ba675SRob Herring	status = "okay";
109*724ba675SRob Herring	clock-frequency = <400000>;
110*724ba675SRob Herring};
111*724ba675SRob Herring
112*724ba675SRob Herring&mcspi1 {
113*724ba675SRob Herring	status = "okay";
114*724ba675SRob Herring};
115*724ba675SRob Herring
116*724ba675SRob Herring&mcspi2 {
117*724ba675SRob Herring	status = "okay";
118*724ba675SRob Herring};
119*724ba675SRob Herring
120*724ba675SRob Herring&uart1 {
121*724ba675SRob Herring	status = "okay";
122*724ba675SRob Herring	interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
123*724ba675SRob Herring			      <&dra7_pmx_core 0x3e0>;
124*724ba675SRob Herring};
125*724ba675SRob Herring
126*724ba675SRob Herring&uart2 {
127*724ba675SRob Herring	status = "okay";
128*724ba675SRob Herring};
129*724ba675SRob Herring
130*724ba675SRob Herring&uart3 {
131*724ba675SRob Herring	status = "okay";
132*724ba675SRob Herring};
133*724ba675SRob Herring
134*724ba675SRob Herring&qspi {
135*724ba675SRob Herring	status = "okay";
136*724ba675SRob Herring
137*724ba675SRob Herring	spi-max-frequency = <76800000>;
138*724ba675SRob Herring	flash@0 {
139*724ba675SRob Herring		compatible = "s25fl256s1";
140*724ba675SRob Herring		spi-max-frequency = <76800000>;
141*724ba675SRob Herring		reg = <0>;
142*724ba675SRob Herring		spi-tx-bus-width = <1>;
143*724ba675SRob Herring		spi-rx-bus-width = <4>;
144*724ba675SRob Herring		#address-cells = <1>;
145*724ba675SRob Herring		#size-cells = <1>;
146*724ba675SRob Herring
147*724ba675SRob Herring		/* MTD partition table.
148*724ba675SRob Herring		 * The ROM checks the first four physical blocks
149*724ba675SRob Herring		 * for a valid file to boot and the flash here is
150*724ba675SRob Herring		 * 64KiB block size.
151*724ba675SRob Herring		 */
152*724ba675SRob Herring		partition@0 {
153*724ba675SRob Herring			label = "QSPI.SPL";
154*724ba675SRob Herring			reg = <0x00000000 0x00010000>;
155*724ba675SRob Herring		};
156*724ba675SRob Herring		partition@1 {
157*724ba675SRob Herring			label = "QSPI.SPL.backup1";
158*724ba675SRob Herring			reg = <0x00010000 0x00010000>;
159*724ba675SRob Herring		};
160*724ba675SRob Herring		partition@2 {
161*724ba675SRob Herring			label = "QSPI.SPL.backup2";
162*724ba675SRob Herring			reg = <0x00020000 0x00010000>;
163*724ba675SRob Herring		};
164*724ba675SRob Herring		partition@3 {
165*724ba675SRob Herring			label = "QSPI.SPL.backup3";
166*724ba675SRob Herring			reg = <0x00030000 0x00010000>;
167*724ba675SRob Herring		};
168*724ba675SRob Herring		partition@4 {
169*724ba675SRob Herring			label = "QSPI.u-boot";
170*724ba675SRob Herring			reg = <0x00040000 0x00100000>;
171*724ba675SRob Herring		};
172*724ba675SRob Herring		partition@5 {
173*724ba675SRob Herring			label = "QSPI.u-boot-spl-os";
174*724ba675SRob Herring			reg = <0x00140000 0x00080000>;
175*724ba675SRob Herring		};
176*724ba675SRob Herring		partition@6 {
177*724ba675SRob Herring			label = "QSPI.u-boot-env";
178*724ba675SRob Herring			reg = <0x001c0000 0x00010000>;
179*724ba675SRob Herring		};
180*724ba675SRob Herring		partition@7 {
181*724ba675SRob Herring			label = "QSPI.u-boot-env.backup1";
182*724ba675SRob Herring			reg = <0x001d0000 0x0010000>;
183*724ba675SRob Herring		};
184*724ba675SRob Herring		partition@8 {
185*724ba675SRob Herring			label = "QSPI.kernel";
186*724ba675SRob Herring			reg = <0x001e0000 0x0800000>;
187*724ba675SRob Herring		};
188*724ba675SRob Herring		partition@9 {
189*724ba675SRob Herring			label = "QSPI.file-system";
190*724ba675SRob Herring			reg = <0x009e0000 0x01620000>;
191*724ba675SRob Herring		};
192*724ba675SRob Herring	};
193*724ba675SRob Herring};
194*724ba675SRob Herring
195*724ba675SRob Herring&omap_dwc3_1 {
196*724ba675SRob Herring	extcon = <&extcon_usb1>;
197*724ba675SRob Herring};
198*724ba675SRob Herring
199*724ba675SRob Herring&usb1 {
200*724ba675SRob Herring	dr_mode = "otg";
201*724ba675SRob Herring	extcon = <&extcon_usb1>;
202*724ba675SRob Herring};
203*724ba675SRob Herring
204*724ba675SRob Herring&omap_dwc3_2 {
205*724ba675SRob Herring	extcon = <&extcon_usb2>;
206*724ba675SRob Herring};
207*724ba675SRob Herring
208*724ba675SRob Herring&usb2 {
209*724ba675SRob Herring	dr_mode = "host";
210*724ba675SRob Herring	extcon = <&extcon_usb2>;
211*724ba675SRob Herring};
212*724ba675SRob Herring
213*724ba675SRob Herring&atl {
214*724ba675SRob Herring	assigned-clocks = <&abe_dpll_sys_clk_mux>,
215*724ba675SRob Herring			  <&atl_clkctrl DRA7_ATL_ATL_CLKCTRL 26>,
216*724ba675SRob Herring			  <&dpll_abe_ck>,
217*724ba675SRob Herring			  <&dpll_abe_m2x2_ck>,
218*724ba675SRob Herring			  <&atl_clkin2_ck>;
219*724ba675SRob Herring	assigned-clock-parents = <&sys_clkin2>, <&dpll_abe_m2_ck>;
220*724ba675SRob Herring	assigned-clock-rates = <0>, <0>, <180633600>, <361267200>, <5644800>;
221*724ba675SRob Herring
222*724ba675SRob Herring	status = "okay";
223*724ba675SRob Herring
224*724ba675SRob Herring	atl2 {
225*724ba675SRob Herring		bws = <DRA7_ATL_WS_MCASP2_FSX>;
226*724ba675SRob Herring		aws = <DRA7_ATL_WS_MCASP3_FSX>;
227*724ba675SRob Herring	};
228*724ba675SRob Herring};
229*724ba675SRob Herring
230*724ba675SRob Herring&mcasp3 {
231*724ba675SRob Herring	#sound-dai-cells = <0>;
232*724ba675SRob Herring
233*724ba675SRob Herring	assigned-clocks = <&l4per2_clkctrl DRA7_L4PER2_MCASP3_CLKCTRL 24>;
234*724ba675SRob Herring	assigned-clock-parents = <&atl_clkin2_ck>;
235*724ba675SRob Herring
236*724ba675SRob Herring	status = "okay";
237*724ba675SRob Herring
238*724ba675SRob Herring	op-mode = <0>;          /* MCASP_IIS_MODE */
239*724ba675SRob Herring	tdm-slots = <2>;
240*724ba675SRob Herring	/* 4 serializer */
241*724ba675SRob Herring	serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
242*724ba675SRob Herring		1 2 0 0
243*724ba675SRob Herring	>;
244*724ba675SRob Herring	tx-num-evt = <32>;
245*724ba675SRob Herring	rx-num-evt = <32>;
246*724ba675SRob Herring};
247*724ba675SRob Herring
248*724ba675SRob Herring&pcie1_rc {
249*724ba675SRob Herring	status = "okay";
250*724ba675SRob Herring};
251*724ba675SRob Herring
252*724ba675SRob Herring&mmc4 {
253*724ba675SRob Herring	bus-width = <4>;
254*724ba675SRob Herring	cap-power-off-card;
255*724ba675SRob Herring	keep-power-in-suspend;
256*724ba675SRob Herring	non-removable;
257*724ba675SRob Herring	#address-cells = <1>;
258*724ba675SRob Herring	#size-cells = <0>;
259*724ba675SRob Herring	wifi@2 {
260*724ba675SRob Herring		compatible = "ti,wl1835";
261*724ba675SRob Herring		reg = <2>;
262*724ba675SRob Herring		interrupt-parent = <&gpio5>;
263*724ba675SRob Herring		interrupts = <7 IRQ_TYPE_EDGE_RISING>;
264*724ba675SRob Herring	};
265*724ba675SRob Herring};
266