summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/nxp/imx/imx53-sk-imx53-atm0700d4-lvds.dts
blob: b1c1e7c759b31c33810e6cc2965f781fc7735c45 (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
// SPDX-License-Identifier: GPL-2.0+
//
// Copyright 2023 Linaro Ltd.

/dts-v1/;

#include <dt-bindings/pwm/pwm.h>
#include "imx53-sk-imx53-atm0700d4.dtsi"

/ {
	lvds-decoder {
		compatible = "ti,sn65lvds94", "lvds-decoder";

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

			port@0 {
				reg = <0>;

				lvds_decoder_in: endpoint {
					remote-endpoint = <&lvds0_out>;
				};
			};

			port@1 {
				reg = <1>;

				lvds_decoder_out: endpoint {
					remote-endpoint = <&panel_rgb_in>;
				};
			};
		};
	};
};

&iomuxc {
	pinctrl_lvds0: lvds0grp {
		/* LVDS pins only have pin mux configuration */
		fsl,pins = <
			MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK	0x80000000
			MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0	0x80000000
			MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1	0x80000000
			MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2	0x80000000
			MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3	0x80000000
		>;
	};

	pinctrl_spi_gpio: spigrp {
		fsl,pins = <
			MX53_PAD_EIM_A22__GPIO2_16		0x1f4
			MX53_PAD_EIM_A21__GPIO2_17		0x1f4
			MX53_PAD_EIM_A16__GPIO2_22		0x1f4
			MX53_PAD_EIM_A18__GPIO2_20		0x1f4
		>;
	};
};

&ldb {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_lvds0>;
	status = "okay";

	lvds0: lvds-channel@0 {
		reg = <0>;
		fsl,data-mapping = "spwg";
		fsl,data-width = <24>;
		status = "okay";

		port@2 {
			reg = <2>;

			lvds0_out: endpoint {
				remote-endpoint = <&lvds_decoder_in>;
			};
		};
	};
};

&panel_rgb_in {
	remote-endpoint = <&lvds_decoder_out>;
};

&spi_ts {
	pinctrl-0 = <&pinctrl_spi_gpio>;
	pinctrl-names = "default";

	sck-gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>;
	miso-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;
	mosi-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>;
	cs-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
};

&touchscreen {
	interrupts-extended = <&gpio3 22 IRQ_TYPE_EDGE_BOTH>;
	pendown-gpio = <&gpio3 22 GPIO_ACTIVE_LOW>;
};