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 serial3 = &usart2; 22 }; 23 24 chosen { 25 stdout-path = "serial0:115200n8"; 26 }; 27 28 wifi_pwrseq: wifi-pwrseq { 29 compatible = "mmc-pwrseq-simple"; 30 reset-gpios = <&gpioh 4 GPIO_ACTIVE_LOW>; 31 }; 32}; 33 34&cryp1 { 35 status = "okay"; 36}; 37 38&dsi { 39 #address-cells = <1>; 40 #size-cells = <0>; 41 status = "okay"; 42 43 panel@0 { 44 compatible = "orisetech,otm8009a"; 45 reg = <0>; 46 reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>; 47 power-supply = <&v3v3>; 48 status = "okay"; 49 50 port { 51 panel_in: endpoint { 52 remote-endpoint = <&dsi_out>; 53 }; 54 }; 55 }; 56}; 57 58&dsi_in { 59 remote-endpoint = <<dc_ep1_out>; 60}; 61 62&dsi_out { 63 remote-endpoint = <&panel_in>; 64}; 65 66&i2c1 { 67 touchscreen@38 { 68 compatible = "focaltech,ft6236"; 69 reg = <0x38>; 70 interrupts = <2 2>; 71 interrupt-parent = <&gpiof>; 72 touchscreen-size-x = <480>; 73 touchscreen-size-y = <800>; 74 status = "okay"; 75 }; 76}; 77 78<dc { 79 status = "okay"; 80 81 port { 82 #address-cells = <1>; 83 #size-cells = <0>; 84 85 ltdc_ep1_out: endpoint@1 { 86 reg = <1>; 87 remote-endpoint = <&dsi_in>; 88 }; 89 }; 90}; 91 92&rtc { 93 pinctrl-names = "default"; 94 pinctrl-0 = <&rtc_rsvd_pins_a>; 95 96 rtc_lsco_pins_a: rtc-lsco-0 { 97 pins = "out2_rmp"; 98 function = "lsco"; 99 }; 100}; 101 102/* Wifi */ 103&sdmmc2 { 104 pinctrl-names = "default", "opendrain", "sleep"; 105 pinctrl-0 = <&sdmmc2_b4_pins_a>; 106 pinctrl-1 = <&sdmmc2_b4_od_pins_a>; 107 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a>; 108 non-removable; 109 cap-sdio-irq; 110 st,neg-edge; 111 bus-width = <4>; 112 vmmc-supply = <&v3v3>; 113 mmc-pwrseq = <&wifi_pwrseq>; 114 #address-cells = <1>; 115 #size-cells = <0>; 116 status = "okay"; 117 118 brcmf: bcrmf@1 { 119 reg = <1>; 120 compatible = "brcm,bcm4329-fmac"; 121 pinctrl-names = "default"; 122 pinctrl-0 = <&rtc_lsco_pins_a>; 123 }; 124}; 125 126/* Bluetooth */ 127&usart2 { 128 pinctrl-names = "default", "sleep", "idle"; 129 pinctrl-0 = <&usart2_pins_c>; 130 pinctrl-1 = <&usart2_sleep_pins_c>; 131 pinctrl-2 = <&usart2_idle_pins_c>; 132 uart-has-rtscts; 133 status = "okay"; 134 135 bluetooth { 136 shutdown-gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>; 137 compatible = "brcm,bcm43438-bt"; 138 max-speed = <3000000>; 139 vbat-supply = <&v3v3>; 140 vddio-supply = <&v3v3>; 141 }; 142}; 143