0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group
0004 */
0005
0006 /*
0007 * DVI output for some Gumstix Overo boards (Tobi and Summit)
0008 */
0009
0010 &omap3_pmx_core {
0011 dss_dpi_pins: pinmux_dss_dpi_pins {
0012 pinctrl-single,pins = <
0013 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
0014 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
0015 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
0016 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
0017 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
0018 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
0019 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
0020 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
0021 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
0022 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
0023 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
0024 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
0025 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
0026 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
0027 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
0028 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
0029 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
0030 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
0031 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
0032 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
0033 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
0034 OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
0035 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
0036 OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
0037 OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
0038 OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
0039 OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
0040 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
0041 >;
0042 };
0043 };
0044
0045 /* Needed to power the DPI pins */
0046 &vpll2 {
0047 regulator-always-on;
0048 };
0049
0050 &dss {
0051 status = "okay";
0052
0053 pinctrl-names = "default";
0054 pinctrl-0 = <&dss_dpi_pins>;
0055
0056 port {
0057 dpi_out: endpoint {
0058 remote-endpoint = <&tfp410_in>;
0059 data-lines = <24>;
0060 };
0061 };
0062 };
0063
0064 / {
0065 aliases {
0066 display0 = &dvi0;
0067 };
0068
0069 tfp410: encoder {
0070 compatible = "ti,tfp410";
0071
0072 ports {
0073 #address-cells = <1>;
0074 #size-cells = <0>;
0075
0076 port@0 {
0077 reg = <0>;
0078
0079 tfp410_in: endpoint {
0080 remote-endpoint = <&dpi_out>;
0081 };
0082 };
0083
0084 port@1 {
0085 reg = <1>;
0086
0087 tfp410_out: endpoint {
0088 remote-endpoint = <&dvi_connector_in>;
0089 };
0090 };
0091 };
0092 };
0093
0094 dvi0: connector {
0095 compatible = "dvi-connector";
0096 label = "dvi";
0097
0098 digital;
0099 ddc-i2c-bus = <&i2c3>;
0100
0101 port {
0102 dvi_connector_in: endpoint {
0103 remote-endpoint = <&tfp410_out>;
0104 };
0105 };
0106 };
0107 };
0108