xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx53-sk-imx53-atm0700d4-lvds.dts (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1*84943d6fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2*84943d6fSEmmanuel Vadot//
3*84943d6fSEmmanuel Vadot// Copyright 2023 Linaro Ltd.
4*84943d6fSEmmanuel Vadot
5*84943d6fSEmmanuel Vadot/dts-v1/;
6*84943d6fSEmmanuel Vadot
7*84943d6fSEmmanuel Vadot#include <dt-bindings/pwm/pwm.h>
8*84943d6fSEmmanuel Vadot#include "imx53-sk-imx53-atm0700d4.dtsi"
9*84943d6fSEmmanuel Vadot
10*84943d6fSEmmanuel Vadot/ {
11*84943d6fSEmmanuel Vadot	lvds-decoder {
12*84943d6fSEmmanuel Vadot		compatible = "ti,sn65lvds94", "lvds-decoder";
13*84943d6fSEmmanuel Vadot
14*84943d6fSEmmanuel Vadot		ports {
15*84943d6fSEmmanuel Vadot			#address-cells = <1>;
16*84943d6fSEmmanuel Vadot			#size-cells = <0>;
17*84943d6fSEmmanuel Vadot
18*84943d6fSEmmanuel Vadot			port@0 {
19*84943d6fSEmmanuel Vadot				reg = <0>;
20*84943d6fSEmmanuel Vadot
21*84943d6fSEmmanuel Vadot				lvds_decoder_in: endpoint {
22*84943d6fSEmmanuel Vadot					remote-endpoint = <&lvds0_out>;
23*84943d6fSEmmanuel Vadot				};
24*84943d6fSEmmanuel Vadot			};
25*84943d6fSEmmanuel Vadot
26*84943d6fSEmmanuel Vadot			port@1 {
27*84943d6fSEmmanuel Vadot				reg = <1>;
28*84943d6fSEmmanuel Vadot
29*84943d6fSEmmanuel Vadot				lvds_decoder_out: endpoint {
30*84943d6fSEmmanuel Vadot					remote-endpoint = <&panel_rgb_in>;
31*84943d6fSEmmanuel Vadot				};
32*84943d6fSEmmanuel Vadot			};
33*84943d6fSEmmanuel Vadot		};
34*84943d6fSEmmanuel Vadot	};
35*84943d6fSEmmanuel Vadot};
36*84943d6fSEmmanuel Vadot
37*84943d6fSEmmanuel Vadot&iomuxc {
38*84943d6fSEmmanuel Vadot	pinctrl_lvds0: lvds0grp {
39*84943d6fSEmmanuel Vadot		/* LVDS pins only have pin mux configuration */
40*84943d6fSEmmanuel Vadot		fsl,pins = <
41*84943d6fSEmmanuel Vadot			MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK	0x80000000
42*84943d6fSEmmanuel Vadot			MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0	0x80000000
43*84943d6fSEmmanuel Vadot			MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1	0x80000000
44*84943d6fSEmmanuel Vadot			MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2	0x80000000
45*84943d6fSEmmanuel Vadot			MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3	0x80000000
46*84943d6fSEmmanuel Vadot		>;
47*84943d6fSEmmanuel Vadot	};
48*84943d6fSEmmanuel Vadot
49*84943d6fSEmmanuel Vadot	pinctrl_spi_gpio: spigrp {
50*84943d6fSEmmanuel Vadot		fsl,pins = <
51*84943d6fSEmmanuel Vadot			MX53_PAD_EIM_A22__GPIO2_16		0x1f4
52*84943d6fSEmmanuel Vadot			MX53_PAD_EIM_A21__GPIO2_17		0x1f4
53*84943d6fSEmmanuel Vadot			MX53_PAD_EIM_A16__GPIO2_22		0x1f4
54*84943d6fSEmmanuel Vadot			MX53_PAD_EIM_A18__GPIO2_20		0x1f4
55*84943d6fSEmmanuel Vadot		>;
56*84943d6fSEmmanuel Vadot	};
57*84943d6fSEmmanuel Vadot};
58*84943d6fSEmmanuel Vadot
59*84943d6fSEmmanuel Vadot&ldb {
60*84943d6fSEmmanuel Vadot	pinctrl-names = "default";
61*84943d6fSEmmanuel Vadot	pinctrl-0 = <&pinctrl_lvds0>;
62*84943d6fSEmmanuel Vadot	status = "okay";
63*84943d6fSEmmanuel Vadot
64*84943d6fSEmmanuel Vadot	lvds0: lvds-channel@0 {
65*84943d6fSEmmanuel Vadot		reg = <0>;
66*84943d6fSEmmanuel Vadot		fsl,data-mapping = "spwg";
67*84943d6fSEmmanuel Vadot		fsl,data-width = <24>;
68*84943d6fSEmmanuel Vadot		status = "okay";
69*84943d6fSEmmanuel Vadot
70*84943d6fSEmmanuel Vadot		port@2 {
71*84943d6fSEmmanuel Vadot			reg = <2>;
72*84943d6fSEmmanuel Vadot
73*84943d6fSEmmanuel Vadot			lvds0_out: endpoint {
74*84943d6fSEmmanuel Vadot				remote-endpoint = <&lvds_decoder_in>;
75*84943d6fSEmmanuel Vadot			};
76*84943d6fSEmmanuel Vadot		};
77*84943d6fSEmmanuel Vadot	};
78*84943d6fSEmmanuel Vadot};
79*84943d6fSEmmanuel Vadot
80*84943d6fSEmmanuel Vadot&panel_rgb_in {
81*84943d6fSEmmanuel Vadot	remote-endpoint = <&lvds_decoder_out>;
82*84943d6fSEmmanuel Vadot};
83*84943d6fSEmmanuel Vadot
84*84943d6fSEmmanuel Vadot&spi_ts {
85*84943d6fSEmmanuel Vadot	pinctrl-0 = <&pinctrl_spi_gpio>;
86*84943d6fSEmmanuel Vadot	pinctrl-names = "default";
87*84943d6fSEmmanuel Vadot
88*84943d6fSEmmanuel Vadot	sck-gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>;
89*84943d6fSEmmanuel Vadot	miso-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;
90*84943d6fSEmmanuel Vadot	mosi-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>;
91*84943d6fSEmmanuel Vadot	cs-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
92*84943d6fSEmmanuel Vadot};
93*84943d6fSEmmanuel Vadot
94*84943d6fSEmmanuel Vadot&touchscreen {
95*84943d6fSEmmanuel Vadot	interrupts-extended = <&gpio3 22 IRQ_TYPE_EDGE_BOTH>;
96*84943d6fSEmmanuel Vadot	pendown-gpio = <&gpio3 22 GPIO_ACTIVE_LOW>;
97*84943d6fSEmmanuel Vadot};
98