1// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
4 * Author: Alexandre Torgue <alexandre.torgue@st.com> for STMicroelectronics.
5 */
6
7/dts-v1/;
8
9#include "stm32mp157.dtsi"
10#include "stm32mp15xc.dtsi"
11#include "stm32mp15-pinctrl.dtsi"
12#include "stm32mp15xxac-pinctrl.dtsi"
13#include "stm32mp15xx-dkx.dtsi"
14
15/ {
16	model = "STMicroelectronics STM32MP157C-DK2 Discovery Board";
17	compatible = "st,stm32mp157c-dk2", "st,stm32mp157";
18
19	aliases {
20		ethernet0 = &ethernet0;
21		serial0 = &uart4;
22		serial1 = &usart3;
23		serial2 = &uart7;
24		serial3 = &usart2;
25	};
26
27	chosen {
28		stdout-path = "serial0:115200n8";
29	};
30};
31
32&dsi {
33	status = "okay";
34	phy-dsi-supply = <&reg18>;
35
36	ports {
37		port@0 {
38			reg = <0>;
39			dsi_in: endpoint {
40				remote-endpoint = <&ltdc_ep1_out>;
41			};
42		};
43
44		port@1 {
45			reg = <1>;
46			dsi_out: endpoint {
47				remote-endpoint = <&panel_in>;
48			};
49		};
50	};
51
52	panel@0 {
53		compatible = "orisetech,otm8009a";
54		reg = <0>;
55		reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>;
56		power-supply = <&v3v3>;
57		status = "okay";
58
59		port {
60			panel_in: endpoint {
61				remote-endpoint = <&dsi_out>;
62			};
63		};
64	};
65};
66
67&i2c1 {
68	touchscreen@38 {
69		compatible = "focaltech,ft6236";
70		reg = <0x38>;
71		interrupts = <2 2>;
72		interrupt-parent = <&gpiof>;
73		interrupt-controller;
74		touchscreen-size-x = <480>;
75		touchscreen-size-y = <800>;
76		status = "okay";
77	};
78};
79
80&ltdc {
81	status = "okay";
82
83	port {
84		ltdc_ep1_out: endpoint@1 {
85			reg = <1>;
86			remote-endpoint = <&dsi_in>;
87		};
88	};
89};
90
91&usart2 {
92	pinctrl-names = "default", "sleep", "idle";
93	pinctrl-0 = <&usart2_pins_c>;
94	pinctrl-1 = <&usart2_sleep_pins_c>;
95	pinctrl-2 = <&usart2_idle_pins_c>;
96	status = "disabled";
97};
98