blob: 2bc92ef3aeb9570d496f521a142326832cc379c0 [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;
21 serial0 = &uart4;
Patrick Delaunay551efca2020-09-16 10:01:32 +020022 serial1 = &usart3;
23 serial2 = &uart7;
24 serial3 = &usart2;
Patrick Delaunay48c5e902020-03-06 17:54:41 +010025 };
26
27 chosen {
28 stdout-path = "serial0:115200n8";
29 };
Patrice Chotard00442d02019-02-12 16:50:38 +010030};
31
Patrick Delaunay6d397052021-01-11 12:33:36 +010032&cryp1 {
33 status = "okay";
34};
35
Patrice Chotard00442d02019-02-12 16:50:38 +010036&dsi {
Patrice Chotard00442d02019-02-12 16:50:38 +010037 status = "okay";
38 phy-dsi-supply = <&reg18>;
39
40 ports {
Patrice Chotard00442d02019-02-12 16:50:38 +010041 port@0 {
42 reg = <0>;
43 dsi_in: endpoint {
44 remote-endpoint = <&ltdc_ep1_out>;
45 };
46 };
47
48 port@1 {
49 reg = <1>;
50 dsi_out: endpoint {
51 remote-endpoint = <&panel_in>;
52 };
53 };
54 };
55
56 panel@0 {
57 compatible = "orisetech,otm8009a";
58 reg = <0>;
59 reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>;
Patrick Delaunaya3705302019-07-11 11:15:28 +020060 power-supply = <&v3v3>;
Patrice Chotard00442d02019-02-12 16:50:38 +010061 status = "okay";
62
63 port {
64 panel_in: endpoint {
65 remote-endpoint = <&dsi_out>;
66 };
67 };
68 };
69};
70
Patrick Delaunayb9c16b72020-01-28 10:11:00 +010071&i2c1 {
72 touchscreen@38 {
73 compatible = "focaltech,ft6236";
74 reg = <0x38>;
75 interrupts = <2 2>;
76 interrupt-parent = <&gpiof>;
77 interrupt-controller;
78 touchscreen-size-x = <480>;
79 touchscreen-size-y = <800>;
80 status = "okay";
81 };
82};
83
Patrice Chotard00442d02019-02-12 16:50:38 +010084&ltdc {
85 status = "okay";
86
87 port {
Patrice Chotard00442d02019-02-12 16:50:38 +010088 ltdc_ep1_out: endpoint@1 {
89 reg = <1>;
90 remote-endpoint = <&dsi_in>;
91 };
92 };
93};
Patrick Delaunay551efca2020-09-16 10:01:32 +020094
95&usart2 {
96 pinctrl-names = "default", "sleep", "idle";
97 pinctrl-0 = <&usart2_pins_c>;
98 pinctrl-1 = <&usart2_sleep_pins_c>;
99 pinctrl-2 = <&usart2_idle_pins_c>;
100 status = "disabled";
101};