aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Lifshitz <lifshitz@compulab.co.il>2014-09-17 08:10:05 -0400
committerTony Lindgren <tony@atomide.com>2014-09-18 12:06:52 -0400
commit6097b5a5341614e36153d90189ac3ad75f19ce09 (patch)
treefa5ce9354e2a2e3fe3d920efa2fe8bca6fbfd231
parentdb5790f89f82759ba51a2c65969cb45befa61a00 (diff)
ARM: dts: cm-t54: add HDMI/DVI display data
Add DSS related pinmux and display data nodes required to support HDMI and DVI video out on CM-T54. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/boot/dts/omap5-cm-t54.dts158
1 files changed, 158 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts
index 29007d1fcb2d..a3faca98a8e7 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -16,6 +16,11 @@
16 reg = <0x80000000 0x7F000000>; /* 2048 MB */ 16 reg = <0x80000000 0x7F000000>; /* 2048 MB */
17 }; 17 };
18 18
19 aliases {
20 display0 = &hdmi0;
21 display1 = &dvi0;
22 };
23
19 vmmcsd_fixed: fixed-regulator-mmcsd { 24 vmmcsd_fixed: fixed-regulator-mmcsd {
20 compatible = "regulator-fixed"; 25 compatible = "regulator-fixed";
21 regulator-name = "vmmcsd_fixed"; 26 regulator-name = "vmmcsd_fixed";
@@ -66,6 +71,64 @@
66 default-state = "off"; 71 default-state = "off";
67 }; 72 };
68 }; 73 };
74
75 hdmi0: connector@0 {
76 compatible = "hdmi-connector";
77 label = "hdmi";
78
79 type = "a";
80
81 pinctrl-names = "default";
82 pinctrl-0 = <&hdmi_conn_pins>;
83
84 hpd-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; /* GPIO 193, HPD */
85
86 port {
87 hdmi_connector_in: endpoint {
88 remote-endpoint = <&hdmi_out>;
89 };
90 };
91 };
92
93 tfp410: encoder@0 {
94 compatible = "ti,tfp410";
95
96 ports {
97 #address-cells = <1>;
98 #size-cells = <0>;
99
100 port@0 {
101 reg = <0>;
102
103 tfp410_in: endpoint@0 {
104 remote-endpoint = <&dpi_dvi_out>;
105 };
106 };
107
108 port@1 {
109 reg = <1>;
110
111 tfp410_out: endpoint@0 {
112 remote-endpoint = <&dvi_connector_in>;
113 };
114 };
115 };
116 };
117
118 dvi0: connector@1 {
119 compatible = "dvi-connector";
120 label = "dvi";
121
122 digital;
123
124 ddc-i2c-bus = <&i2c2>;
125
126 port {
127 dvi_connector_in: endpoint {
128 remote-endpoint = <&tfp410_out>;
129 };
130 };
131 };
69}; 132};
70 133
71&omap5_pmx_core { 134&omap5_pmx_core {
@@ -88,6 +151,13 @@
88 >; 151 >;
89 }; 152 };
90 153
154 i2c2_pins: pinmux_i2c2_pins {
155 pinctrl-single,pins = <
156 OMAP5_IOPAD(0x01b8, PIN_INPUT | MUX_MODE0) /* i2c2_scl */
157 OMAP5_IOPAD(0x01ba, PIN_INPUT | MUX_MODE0) /* i2c2_sda */
158 >;
159 };
160
91 mmc1_pins: pinmux_mmc1_pins { 161 mmc1_pins: pinmux_mmc1_pins {
92 pinctrl-single,pins = < 162 pinctrl-single,pins = <
93 OMAP5_IOPAD(0x01e2, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_clk */ 163 OMAP5_IOPAD(0x01e2, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_clk */
@@ -144,6 +214,53 @@
144 OMAP5_IOPAD(0x00b6, PIN_OUTPUT | MUX_MODE6) /* hsi2_acdata.gpio3_83 */ 214 OMAP5_IOPAD(0x00b6, PIN_OUTPUT | MUX_MODE6) /* hsi2_acdata.gpio3_83 */
145 >; 215 >;
146 }; 216 };
217
218 dss_hdmi_pins: pinmux_dss_hdmi_pins {
219 pinctrl-single,pins = <
220 OMAP5_IOPAD(0x013c, PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_cec */
221 OMAP5_IOPAD(0x0140, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_scl */
222 OMAP5_IOPAD(0x0142, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_sda */
223 >;
224 };
225
226 hdmi_conn_pins: pinmux_hdmi_conn_pins {
227 pinctrl-single,pins = <
228 OMAP5_IOPAD(0x013e, PIN_INPUT | MUX_MODE6) /* hdmi_hpd.gpio7_193 */
229 >;
230 };
231
232 dss_dpi_pins: pinmux_dss_dpi_pins {
233 pinctrl-single,pins = <
234 OMAP5_IOPAD(0x0104, PIN_OUTPUT | MUX_MODE3) /* rfbi_data15.dispc_data15 */
235 OMAP5_IOPAD(0x0106, PIN_OUTPUT | MUX_MODE3) /* rfbi_data14.dispc_data14 */
236 OMAP5_IOPAD(0x0108, PIN_OUTPUT | MUX_MODE3) /* rfbi_data13.dispc_data13 */
237 OMAP5_IOPAD(0x010a, PIN_OUTPUT | MUX_MODE3) /* rfbi_data12.dispc_data12 */
238 OMAP5_IOPAD(0x010c, PIN_OUTPUT | MUX_MODE3) /* rfbi_data11.dispc_data11 */
239 OMAP5_IOPAD(0x010e, PIN_OUTPUT | MUX_MODE3) /* rfbi_data10.dispc_data10 */
240 OMAP5_IOPAD(0x0110, PIN_OUTPUT | MUX_MODE3) /* rfbi_data9.dispc_data9 */
241 OMAP5_IOPAD(0x0112, PIN_OUTPUT | MUX_MODE3) /* rfbi_data8.dispc_data8 */
242 OMAP5_IOPAD(0x0114, PIN_OUTPUT | MUX_MODE3) /* rfbi_data7.dispc_data7 */
243 OMAP5_IOPAD(0x0116, PIN_OUTPUT | MUX_MODE3) /* rfbi_data6.dispc_data6 */
244 OMAP5_IOPAD(0x0118, PIN_OUTPUT | MUX_MODE3) /* rfbi_data5.dispc_data5 */
245 OMAP5_IOPAD(0x011a, PIN_OUTPUT | MUX_MODE3) /* rfbi_data4.dispc_data4 */
246 OMAP5_IOPAD(0x011c, PIN_OUTPUT | MUX_MODE3) /* rfbi_data3.dispc_data3 */
247 OMAP5_IOPAD(0x011e, PIN_OUTPUT | MUX_MODE3) /* rfbi_data2.dispc_data2 */
248 OMAP5_IOPAD(0x0120, PIN_OUTPUT | MUX_MODE3) /* rfbi_data1.dispc_data1 */
249 OMAP5_IOPAD(0x0122, PIN_OUTPUT | MUX_MODE3) /* rfbi_data0.dispc_data0 */
250 OMAP5_IOPAD(0x0124, PIN_OUTPUT | MUX_MODE3) /* rfbi_we.dispc_vsync */
251 OMAP5_IOPAD(0x0126, PIN_OUTPUT | MUX_MODE3) /* rfbi_cs0.dispc_hsync */
252 OMAP5_IOPAD(0x0128, PIN_OUTPUT | MUX_MODE3) /* rfbi_a0.dispc_de */
253 OMAP5_IOPAD(0x012a, PIN_OUTPUT | MUX_MODE3) /* rfbi_re.dispc_pclk */
254 OMAP5_IOPAD(0x012c, PIN_OUTPUT | MUX_MODE3) /* rfbi_hsync0.dispc_data17 */
255 OMAP5_IOPAD(0x012e, PIN_OUTPUT | MUX_MODE3) /* rfbi_te_vsync0.dispc_data16 */
256 OMAP5_IOPAD(0x0130, PIN_OUTPUT | MUX_MODE3) /* gpio6_182.dispc_data18 */
257 OMAP5_IOPAD(0x0132, PIN_OUTPUT | MUX_MODE3) /* gpio6_183.dispc_data19 */
258 OMAP5_IOPAD(0x0134, PIN_OUTPUT | MUX_MODE3) /* gpio6_184.dispc_data20 */
259 OMAP5_IOPAD(0x0136, PIN_OUTPUT | MUX_MODE3) /* gpio6_185.dispc_data21 */
260 OMAP5_IOPAD(0x0138, PIN_OUTPUT | MUX_MODE3) /* gpio6_186.dispc_data22 */
261 OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* gpio6_187.dispc_data23 */
262 >;
263 };
147}; 264};
148 265
149&mmc1 { 266&mmc1 {
@@ -399,6 +516,13 @@
399 }; 516 };
400}; 517};
401 518
519&i2c2 {
520 pinctrl-names = "default";
521 pinctrl-0 = <&i2c2_pins>;
522
523 clock-frequency = <100000>;
524};
525
402&usbhshost { 526&usbhshost {
403 port2-mode = "ehci-hsic"; 527 port2-mode = "ehci-hsic";
404 port3-mode = "ehci-hsic"; 528 port3-mode = "ehci-hsic";
@@ -411,3 +535,37 @@
411&cpu0 { 535&cpu0 {
412 cpu0-supply = <&smps123_reg>; 536 cpu0-supply = <&smps123_reg>;
413}; 537};
538
539&dss {
540 status = "ok";
541
542 pinctrl-names = "default";
543 pinctrl-0 = <&dss_dpi_pins>;
544
545 port {
546 dpi_dvi_out: endpoint@0 {
547 remote-endpoint = <&tfp410_in>;
548 data-lines = <24>;
549 };
550 };
551};
552
553&dsi2 {
554 status = "ok";
555 vdd-supply = <&ldo4_reg>;
556};
557
558&hdmi {
559 status = "ok";
560 vdda-supply = <&ldo4_reg>;
561
562 pinctrl-names = "default";
563 pinctrl-0 = <&dss_hdmi_pins>;
564
565 port {
566 hdmi_out: endpoint {
567 remote-endpoint = <&hdmi_connector_in>;
568 lanes = <1 0 3 2 5 4 7 6>;
569 };
570 };
571};