Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
0002 /*
0003  * Copyright (C) STMicroelectronics 2019 - All Rights Reserved
0004  * Author: Alexandre Torgue <alexandre.torgue@st.com> for STMicroelectronics.
0005  */
0006 
0007 /dts-v1/;
0008 
0009 #include "stm32mp157.dtsi"
0010 #include "stm32mp15xc.dtsi"
0011 #include "stm32mp15-pinctrl.dtsi"
0012 #include "stm32mp15xxac-pinctrl.dtsi"
0013 #include "stm32mp15xx-dkx.dtsi"
0014 
0015 / {
0016         model = "STMicroelectronics STM32MP157C-DK2 Discovery Board";
0017         compatible = "st,stm32mp157c-dk2", "st,stm32mp157";
0018 
0019         aliases {
0020                 ethernet0 = &ethernet0;
0021                 serial0 = &uart4;
0022                 serial1 = &usart3;
0023                 serial2 = &uart7;
0024                 serial3 = &usart2;
0025         };
0026 
0027         chosen {
0028                 stdout-path = "serial0:115200n8";
0029         };
0030 };
0031 
0032 &cryp1 {
0033         status = "okay";
0034 };
0035 
0036 &dsi {
0037         status = "okay";
0038         phy-dsi-supply = <&reg18>;
0039 
0040         ports {
0041                 port@0 {
0042                         reg = <0>;
0043                         dsi_in: endpoint {
0044                                 remote-endpoint = <&ltdc_ep1_out>;
0045                         };
0046                 };
0047 
0048                 port@1 {
0049                         reg = <1>;
0050                         dsi_out: endpoint {
0051                                 remote-endpoint = <&panel_in>;
0052                         };
0053                 };
0054         };
0055 
0056         panel@0 {
0057                 compatible = "orisetech,otm8009a";
0058                 reg = <0>;
0059                 reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>;
0060                 power-supply = <&v3v3>;
0061                 status = "okay";
0062 
0063                 port {
0064                         panel_in: endpoint {
0065                                 remote-endpoint = <&dsi_out>;
0066                         };
0067                 };
0068         };
0069 };
0070 
0071 &i2c1 {
0072         touchscreen@38 {
0073                 compatible = "focaltech,ft6236";
0074                 reg = <0x38>;
0075                 interrupts = <2 2>;
0076                 interrupt-parent = <&gpiof>;
0077                 interrupt-controller;
0078                 touchscreen-size-x = <480>;
0079                 touchscreen-size-y = <800>;
0080                 status = "okay";
0081         };
0082 };
0083 
0084 &ltdc {
0085         status = "okay";
0086 
0087         port {
0088                 ltdc_ep1_out: endpoint@1 {
0089                         reg = <1>;
0090                         remote-endpoint = <&dsi_in>;
0091                 };
0092         };
0093 };
0094 
0095 &usart2 {
0096         pinctrl-names = "default", "sleep", "idle";
0097         pinctrl-0 = <&usart2_pins_c>;
0098         pinctrl-1 = <&usart2_sleep_pins_c>;
0099         pinctrl-2 = <&usart2_idle_pins_c>;
0100         status = "disabled";
0101 };