xref: /linux/arch/arm64/boot/dts/ti/k3-am65-iot2050-dp.dtsi (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) Siemens AG, 2024
4 *
5 * Authors:
6 *   Jan Kiszka <jan.kiszka@siemens.com>
7 *
8 * Common bits for IOT2050 variants with Display Port
9 */
10
11&main_pmx0 {
12	dss_vout1_pins_default: dss-vout1-default-pins {
13		pinctrl-single,pins = <
14			AM65X_IOPAD(0x0000, PIN_OUTPUT, 1)  /* VOUT1_DATA0 */
15			AM65X_IOPAD(0x0004, PIN_OUTPUT, 1)  /* VOUT1_DATA1 */
16			AM65X_IOPAD(0x0008, PIN_OUTPUT, 1)  /* VOUT1_DATA2 */
17			AM65X_IOPAD(0x000c, PIN_OUTPUT, 1)  /* VOUT1_DATA3 */
18			AM65X_IOPAD(0x0010, PIN_OUTPUT, 1)  /* VOUT1_DATA4 */
19			AM65X_IOPAD(0x0014, PIN_OUTPUT, 1)  /* VOUT1_DATA5 */
20			AM65X_IOPAD(0x0018, PIN_OUTPUT, 1)  /* VOUT1_DATA6 */
21			AM65X_IOPAD(0x001c, PIN_OUTPUT, 1)  /* VOUT1_DATA7 */
22			AM65X_IOPAD(0x0020, PIN_OUTPUT, 1)  /* VOUT1_DATA8 */
23			AM65X_IOPAD(0x0024, PIN_OUTPUT, 1)  /* VOUT1_DATA9 */
24			AM65X_IOPAD(0x0028, PIN_OUTPUT, 1)  /* VOUT1_DATA10 */
25			AM65X_IOPAD(0x002c, PIN_OUTPUT, 1)  /* VOUT1_DATA11 */
26			AM65X_IOPAD(0x0030, PIN_OUTPUT, 1)  /* VOUT1_DATA12 */
27			AM65X_IOPAD(0x0034, PIN_OUTPUT, 1)  /* VOUT1_DATA13 */
28			AM65X_IOPAD(0x0038, PIN_OUTPUT, 1)  /* VOUT1_DATA14 */
29			AM65X_IOPAD(0x003c, PIN_OUTPUT, 1)  /* VOUT1_DATA15 */
30			AM65X_IOPAD(0x0040, PIN_OUTPUT, 1)  /* VOUT1_DATA16 */
31			AM65X_IOPAD(0x0044, PIN_OUTPUT, 1)  /* VOUT1_DATA17 */
32			AM65X_IOPAD(0x0048, PIN_OUTPUT, 1)  /* VOUT1_DATA18 */
33			AM65X_IOPAD(0x004c, PIN_OUTPUT, 1)  /* VOUT1_DATA19 */
34			AM65X_IOPAD(0x0050, PIN_OUTPUT, 1)  /* VOUT1_DATA20 */
35			AM65X_IOPAD(0x0054, PIN_OUTPUT, 1)  /* VOUT1_DATA21 */
36			AM65X_IOPAD(0x0058, PIN_OUTPUT, 1)  /* VOUT1_DATA22 */
37			AM65X_IOPAD(0x005c, PIN_OUTPUT, 1)  /* VOUT1_DATA23 */
38			AM65X_IOPAD(0x0060, PIN_OUTPUT, 1)  /* VOUT1_VSYNC */
39			AM65X_IOPAD(0x0064, PIN_OUTPUT, 1)  /* VOUT1_HSYNC */
40			AM65X_IOPAD(0x0068, PIN_OUTPUT, 1)  /* VOUT1_PCLK */
41			AM65X_IOPAD(0x006c, PIN_OUTPUT, 1)  /* VOUT1_DE */
42		>;
43	};
44
45	dp_pins_default: dp-default-pins {
46		pinctrl-single,pins = <
47			AM65X_IOPAD(0x0078, PIN_OUTPUT, 7)  /* (AF18) DP rst_n */
48		>;
49	};
50};
51
52&main_i2c3 {
53	edp-bridge@f {
54		compatible = "toshiba,tc358767";
55		reg = <0x0f>;
56		pinctrl-names = "default";
57		pinctrl-0 = <&dp_pins_default>;
58		reset-gpios = <&main_gpio0 30 GPIO_ACTIVE_HIGH>;
59
60		clock-names = "ref";
61		clocks = <&dp_refclk>;
62
63		toshiba,hpd-pin = <0>;
64
65		ports {
66			#address-cells = <1>;
67			#size-cells = <0>;
68
69			port@1 {
70				reg = <1>;
71
72				bridge_in: endpoint {
73					remote-endpoint = <&dpi_out>;
74				};
75			};
76		};
77	};
78};
79
80&dss {
81	pinctrl-names = "default";
82	pinctrl-0 = <&dss_vout1_pins_default>;
83
84	assigned-clocks = <&k3_clks 67 2>;
85	assigned-clock-parents = <&k3_clks 67 5>;
86};
87
88&dss_ports {
89	#address-cells = <1>;
90	#size-cells = <0>;
91	port@1 {
92		reg = <1>;
93
94		dpi_out: endpoint {
95			remote-endpoint = <&bridge_in>;
96		};
97	};
98};
99