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 = ðernet0; 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&bsec { 33 board_id: board_id@ec { 34 reg = <0xec 0x4>; 35 st,non-secure-otp; 36 }; 37}; 38 39&dsi { 40 status = "disabled"; 41 phy-dsi-supply = <®18>; 42 43 ports { 44 port@0 { 45 reg = <0>; 46 dsi_in: endpoint { 47 remote-endpoint = <<dc_ep1_out>; 48 }; 49 }; 50 51 port@1 { 52 reg = <1>; 53 dsi_out: endpoint { 54 remote-endpoint = <&panel_in>; 55 }; 56 }; 57 }; 58 59 panel@0 { 60 compatible = "orisetech,otm8009a"; 61 reg = <0>; 62 reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>; 63 power-supply = <&v3v3>; 64 status = "okay"; 65 66 port { 67 panel_in: endpoint { 68 remote-endpoint = <&dsi_out>; 69 }; 70 }; 71 }; 72}; 73 74&i2c1 { 75 touchscreen@38 { 76 compatible = "focaltech,ft6236"; 77 reg = <0x38>; 78 interrupts = <2 2>; 79 interrupt-parent = <&gpiof>; 80 interrupt-controller; 81 touchscreen-size-x = <480>; 82 touchscreen-size-y = <800>; 83 status = "okay"; 84 }; 85}; 86 87<dc { 88 status = "disabled"; 89 90 port { 91 ltdc_ep1_out: endpoint@1 { 92 reg = <1>; 93 remote-endpoint = <&dsi_in>; 94 }; 95 }; 96}; 97 98&rcc { 99 status = "okay"; 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