blob: ab13e340f4ef58fa837bf6b4971dee2ca0b8e157 [file] [log] [blame]
Patrice Chotard00442d02019-02-12 16:50:38 +01001// 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
Patrick Delaunay48c5e902020-03-06 17:54:41 +01009#include "stm32mp157.dtsi"
10#include "stm32mp15xc.dtsi"
11#include "stm32mp15-pinctrl.dtsi"
12#include "stm32mp15xxac-pinctrl.dtsi"
13#include "stm32mp15xx-dkx.dtsi"
Patrice Chotard00442d02019-02-12 16:50:38 +010014
15/ {
16 model = "STMicroelectronics STM32MP157C-DK2 Discovery Board";
17 compatible = "st,stm32mp157c-dk2", "st,stm32mp157";
Patrick Delaunay48c5e902020-03-06 17:54:41 +010018
19 aliases {
20 ethernet0 = &ethernet0;
Patrick Delaunay551efca2020-09-16 10:01:32 +020021 serial3 = &usart2;
Patrick Delaunay48c5e902020-03-06 17:54:41 +010022 };
23
24 chosen {
25 stdout-path = "serial0:115200n8";
26 };
Patrice Chotard00442d02019-02-12 16:50:38 +010027};
28
Patrick Delaunay6d397052021-01-11 12:33:36 +010029&cryp1 {
30 status = "okay";
31};
32
Patrice Chotard00442d02019-02-12 16:50:38 +010033&dsi {
Patrice Chotard00442d02019-02-12 16:50:38 +010034 status = "okay";
35 phy-dsi-supply = <&reg18>;
36
37 ports {
Patrice Chotard00442d02019-02-12 16:50:38 +010038 port@0 {
39 reg = <0>;
40 dsi_in: endpoint {
41 remote-endpoint = <&ltdc_ep1_out>;
42 };
43 };
44
45 port@1 {
46 reg = <1>;
47 dsi_out: endpoint {
48 remote-endpoint = <&panel_in>;
49 };
50 };
51 };
52
53 panel@0 {
54 compatible = "orisetech,otm8009a";
55 reg = <0>;
56 reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>;
Patrick Delaunaya3705302019-07-11 11:15:28 +020057 power-supply = <&v3v3>;
Patrice Chotard00442d02019-02-12 16:50:38 +010058 status = "okay";
59
60 port {
61 panel_in: endpoint {
62 remote-endpoint = <&dsi_out>;
63 };
64 };
65 };
66};
67
Patrick Delaunayb9c16b72020-01-28 10:11:00 +010068&i2c1 {
69 touchscreen@38 {
70 compatible = "focaltech,ft6236";
71 reg = <0x38>;
72 interrupts = <2 2>;
73 interrupt-parent = <&gpiof>;
74 interrupt-controller;
75 touchscreen-size-x = <480>;
76 touchscreen-size-y = <800>;
77 status = "okay";
78 };
79};
80
Patrice Chotard00442d02019-02-12 16:50:38 +010081&ltdc {
82 status = "okay";
83
84 port {
Patrice Chotard00442d02019-02-12 16:50:38 +010085 ltdc_ep1_out: endpoint@1 {
86 reg = <1>;
87 remote-endpoint = <&dsi_in>;
88 };
89 };
90};
Patrick Delaunay551efca2020-09-16 10:01:32 +020091
92&usart2 {
93 pinctrl-names = "default", "sleep", "idle";
94 pinctrl-0 = <&usart2_pins_c>;
95 pinctrl-1 = <&usart2_sleep_pins_c>;
96 pinctrl-2 = <&usart2_idle_pins_c>;
97 status = "disabled";
98};