Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 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 | |
Patrick Delaunay | 1a4f57c | 2020-03-06 17:54:41 +0100 | [diff] [blame] | 9 | #include "stm32mp157.dtsi" |
| 10 | #include "stm32mp15xc.dtsi" |
| 11 | #include "stm32mp15-pinctrl.dtsi" |
| 12 | #include "stm32mp15xxac-pinctrl.dtsi" |
| 13 | #include "stm32mp15xx-dkx.dtsi" |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | model = "STMicroelectronics STM32MP157C-DK2 Discovery Board"; |
| 17 | compatible = "st,stm32mp157c-dk2", "st,stm32mp157"; |
Patrick Delaunay | 1a4f57c | 2020-03-06 17:54:41 +0100 | [diff] [blame] | 18 | |
| 19 | aliases { |
| 20 | ethernet0 = ðernet0; |
| 21 | serial0 = &uart4; |
Patrick Delaunay | 62f95af | 2020-09-16 10:01:32 +0200 | [diff] [blame] | 22 | serial1 = &usart3; |
| 23 | serial2 = &uart7; |
| 24 | serial3 = &usart2; |
Patrick Delaunay | 1a4f57c | 2020-03-06 17:54:41 +0100 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | chosen { |
| 28 | stdout-path = "serial0:115200n8"; |
| 29 | }; |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 30 | }; |
| 31 | |
Patrick Delaunay | f050e3f | 2021-01-11 12:33:36 +0100 | [diff] [blame] | 32 | &cryp1 { |
| 33 | status = "okay"; |
| 34 | }; |
| 35 | |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 36 | &dsi { |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 37 | status = "okay"; |
| 38 | phy-dsi-supply = <®18>; |
| 39 | |
| 40 | ports { |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 41 | port@0 { |
| 42 | reg = <0>; |
| 43 | dsi_in: endpoint { |
| 44 | remote-endpoint = <<dc_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 Delaunay | 35a54d4 | 2019-07-11 11:15:28 +0200 | [diff] [blame] | 60 | power-supply = <&v3v3>; |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 61 | status = "okay"; |
| 62 | |
| 63 | port { |
| 64 | panel_in: endpoint { |
| 65 | remote-endpoint = <&dsi_out>; |
| 66 | }; |
| 67 | }; |
| 68 | }; |
| 69 | }; |
| 70 | |
Patrick Delaunay | d35a5af | 2020-01-28 10:11:00 +0100 | [diff] [blame] | 71 | &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 Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 84 | <dc { |
| 85 | status = "okay"; |
| 86 | |
| 87 | port { |
Patrice Chotard | 2366160 | 2019-02-12 16:50:38 +0100 | [diff] [blame] | 88 | ltdc_ep1_out: endpoint@1 { |
| 89 | reg = <1>; |
| 90 | remote-endpoint = <&dsi_in>; |
| 91 | }; |
| 92 | }; |
| 93 | }; |
Patrick Delaunay | 62f95af | 2020-09-16 10:01:32 +0200 | [diff] [blame] | 94 | |
| 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 | }; |