summaryrefslogtreecommitdiff
path: root/linux/arch/arm/boot/dts/am43x-epos-evm-hdmi.dts
blob: 42f6aa89ddf67c65a646ac70bf632fbf49088bf9 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/*
 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
 *
 * 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.
 */

/* AM43x EPOS EVM with HDMI output */

#include "am43x-epos-evm.dts"
#include "dt-bindings/sound/sii9022-audio.h"

/ {
	aliases {
		display0 = &hdmi;
	};

	hdmi: connector {
		compatible = "hdmi-connector";
		label = "hdmi";

		type = "b";

		port {
			hdmi_connector_in: endpoint {
				remote-endpoint = <&sii9022_out>;
			};
		};
	};

	sound@1 {
		compatible = "simple-audio-card";
		simple-audio-card,name = "HDMI";
		simple-audio-card,format = "i2s";
		simple-audio-card,bitclock-master = <&hdmi_dailink_master>;
		simple-audio-card,frame-master = <&hdmi_dailink_master>;
		hdmi_dailink_master: simple-audio-card,cpu {
			sound-dai = <&mcasp1>;
			system-clock-frequency = <24000000>;
			system-clock-direction = "out";
		};

		simple-audio-card,codec {
			sound-dai = <&sii9022>;
			system-clock-frequency = <12000000>;
		};
	};
};

&lcd_bl {
	status = "disabled";
};

&sound0 {
	status = "disabled";
};

&am43xx_pinmux {
	sii9022_pins: sii9022_pins {
		pinctrl-single,pins = <
			0x48 (PIN_INPUT | MUX_MODE7)	/* gpmc_a2.gpio1_18 */
		>;
	};
};

&i2c2 {
	sii9022: sii9022@3b {
		#sound-dai-cells = <0>;
		compatible = "sil,sii9022";
		reg = <0x3b>;

		pinctrl-names = "default";
		pinctrl-0 = <&sii9022_pins>;

		i2s-fifo-routing = <
			(ENABLE_BIT|CONNECT_SD0)
			0
			0
			0
		>;

		interrupt-parent = <&gpio1>;
		interrupts = <18 IRQ_TYPE_LEVEL_LOW>;

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
				reg = <0>;

				sii9022_in: endpoint {
					remote-endpoint = <&dpi_out>;
				};
			};

			port@1 {
				reg = <1>;

				sii9022_out: endpoint {
					remote-endpoint = <&hdmi_connector_in>;
				};
			};
		};
	};
};

&dss {
	port {
		dpi_out: endpoint@0 {
			remote-endpoint = <&sii9022_in>;
			data-lines = <24>;
		};
	};
};

/* Override SelLCDorHDMI from am43x-epos-evm.dts to select HDMI */
&gpio2 {
	p1 {
		output-low;
	};
};