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 49 port { 50 panel_in: endpoint { 51 remote-endpoint = <&dsi_out>; 52 }; 53 }; 54 }; 55}; 56 57&dsi_in { 58 remote-endpoint = <<dc_ep1_out>; 59}; 60 61&dsi_out { 62 remote-endpoint = <&panel_in>; 63}; 64 65&hdp { 66 pinctrl-names = "default", "sleep"; 67 pinctrl-0 = <&hdp2_gpo &hdp2_pins_a>; 68 pinctrl-1 = <&hdp2_sleep_pins_a>; 69}; 70 71&i2c1 { 72 touchscreen@38 { 73 compatible = "focaltech,ft6236"; 74 reg = <0x38>; 75 interrupts = <2 IRQ_TYPE_EDGE_FALLING>; 76 interrupt-parent = <&gpiof>; 77 touchscreen-size-x = <480>; 78 touchscreen-size-y = <800>; 79 }; 80}; 81 82<dc { 83 status = "okay"; 84 85 port { 86 #address-cells = <1>; 87 #size-cells = <0>; 88 89 ltdc_ep1_out: endpoint@1 { 90 reg = <1>; 91 remote-endpoint = <&dsi_in>; 92 }; 93 }; 94}; 95 96&rtc { 97 pinctrl-names = "default"; 98 pinctrl-0 = <&rtc_rsvd_pins_a>; 99 100 rtc_lsco_pins_a: rtc-lsco-0 { 101 pins = "out2_rmp"; 102 function = "lsco"; 103 }; 104}; 105 106/* Wifi */ 107&sdmmc2 { 108 pinctrl-names = "default", "opendrain", "sleep"; 109 pinctrl-0 = <&sdmmc2_b4_pins_a>; 110 pinctrl-1 = <&sdmmc2_b4_od_pins_a>; 111 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a>; 112 non-removable; 113 cap-sdio-irq; 114 st,neg-edge; 115 bus-width = <4>; 116 vmmc-supply = <&v3v3>; 117 mmc-pwrseq = <&wifi_pwrseq>; 118 #address-cells = <1>; 119 #size-cells = <0>; 120 status = "okay"; 121 122 brcmf: wifi@1 { 123 reg = <1>; 124 compatible = "brcm,bcm4329-fmac"; 125 pinctrl-names = "default"; 126 pinctrl-0 = <&rtc_lsco_pins_a>; 127 }; 128}; 129 130/* Bluetooth */ 131&usart2 { 132 pinctrl-names = "default", "sleep", "idle"; 133 pinctrl-0 = <&usart2_pins_c>; 134 pinctrl-1 = <&usart2_sleep_pins_c>; 135 pinctrl-2 = <&usart2_idle_pins_c>; 136 uart-has-rtscts; 137 status = "okay"; 138 139 bluetooth { 140 shutdown-gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>; 141 compatible = "brcm,bcm43438-bt"; 142 max-speed = <3000000>; 143 vbat-supply = <&v3v3>; 144 vddio-supply = <&v3v3>; 145 }; 146}; 147