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	reserved-memory {
20		optee_memory: optee@0xde000000 {
21			reg = <0xde000000 0x02000000>;
22			no-map;
23		};
24	};
25
26	aliases {
27		ethernet0 = &ethernet0;
28		serial0 = &uart4;
29		serial1 = &usart3;
30		serial2 = &uart7;
31		serial3 = &usart2;
32	};
33
34	chosen {
35		stdout-path = "serial0:115200n8";
36	};
37};
38
39&cryp1 {
40	status = "okay";
41};
42
43&dsi {
44	status = "okay";
45	phy-dsi-supply = <&reg18>;
46
47	ports {
48		port@0 {
49			reg = <0>;
50			dsi_in: endpoint {
51				remote-endpoint = <&ltdc_ep1_out>;
52			};
53		};
54
55		port@1 {
56			reg = <1>;
57			dsi_out: endpoint {
58				remote-endpoint = <&panel_in>;
59			};
60		};
61	};
62
63	panel@0 {
64		compatible = "orisetech,otm8009a";
65		reg = <0>;
66		reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>;
67		power-supply = <&v3v3>;
68		status = "okay";
69
70		port {
71			panel_in: endpoint {
72				remote-endpoint = <&dsi_out>;
73			};
74		};
75	};
76};
77
78&i2c1 {
79	touchscreen@38 {
80		compatible = "focaltech,ft6236";
81		reg = <0x38>;
82		interrupts = <2 2>;
83		interrupt-parent = <&gpiof>;
84		interrupt-controller;
85		touchscreen-size-x = <480>;
86		touchscreen-size-y = <800>;
87		status = "okay";
88	};
89};
90
91&ltdc {
92	status = "okay";
93
94	port {
95		ltdc_ep1_out: endpoint@1 {
96			reg = <1>;
97			remote-endpoint = <&dsi_in>;
98		};
99	};
100};
101
102&usart2 {
103	pinctrl-names = "default", "sleep", "idle";
104	pinctrl-0 = <&usart2_pins_c>;
105	pinctrl-1 = <&usart2_sleep_pins_c>;
106	pinctrl-2 = <&usart2_idle_pins_c>;
107	status = "disabled";
108};
109
110&optee {
111	status = "okay";
112};
113