Untitled diff

Created Diff never expires
122 removals
Words removed259
Total words349
Words removed (%)74.21
158 lines
95 additions
Words added159
Total words249
Words added (%)63.86
130 lines
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/*
/*
* Copyright (C) STMicroelectronics 2019 - All Rights Reserved
* Copyright (C) STMicroelectronics 2017 - All Rights Reserved
* Author: Alexandre Torgue <alexandre.torgue@st.com> for STMicroelectronics.
* Author: Alexandre Torgue <alexandre.torgue@st.com> for STMicroelectronics.
*/
*/


/dts-v1/;
/dts-v1/;


#include "stm32mp157.dtsi"
#include "stm32mp157c-dk2.dts"
#include "stm32mp15xc.dtsi"
#include "stm32mp15-pinctrl.dtsi"
#include "stm32mp15xxac-pinctrl.dtsi"
#include "stm32mp15xx-dkx.dtsi"
#include <dt-bindings/rtc/rtc-stm32.h>


/ {
/ {
model = "STMicroelectronics STM32MP157C-DK2 Discovery Board";
model = "STMicroelectronics STM32MP157C-DK2 configured to run M4 examples";
compatible = "st,stm32mp157c-dk2", "st,stm32mp157";
compatible = "st,stm32mp157c-dk2-m4-examples", "st,stm32mp157c-dk2", "st,stm32mp157";
};


aliases {
&adc {
serial0 = &uart4;
status = "disabled";
serial1 = &usart3;
};
serial2 = &uart7;
serial3 = &usart2;
};


chosen {
&dac {
stdout-path = "serial0:115200n8";
status = "disabled";
};
};


wifi_pwrseq: wifi-pwrseq {
&dma2 {
compatible = "mmc-pwrseq-simple";
status = "disabled";
reset-gpios = <&gpioh 4 GPIO_ACTIVE_LOW>;
};
};
};


&cryp1 {
&dmamux1 {
dma-masters = <&dma1>;
dma-channels = <8>;
};

&m4_adc {
vref-supply = <&vrefbuf>;
status = "okay";
status = "okay";
};
};


&dsi {
&m4_dac {
vref-supply = <&vrefbuf>;
status = "okay";
status = "okay";
};


ports {
&m4_dma2 {
port@0 {
status = "okay";
reg = <0>;
};
dsi_in: endpoint {
remote-endpoint = <&ltdc_ep1_out>;
};
};


port@1 {
&m4_crc2 {
reg = <1>;
status = "okay";
dsi_out: endpoint {
};
remote-endpoint = <&panel_in>;
};
};
};


panel_otm8009a: panel-otm8009a@0 {
&m4_cryp2 {
compatible = "orisetech,otm8009a";
status = "okay";
reg = <0>;
};
reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>;
power-supply = <&v3v3>;
status = "okay";


port {
&m4_hash2 {
panel_in: endpoint {
status = "okay";
remote-endpoint = <&dsi_out>;
};
};
};
};
};


&i2c1 {
&m4_i2c5 {
touchscreen@2a {
pinctrl-names = "default";
compatible = "focaltech,ft6236";
pinctrl-0 = <&m4_i2c5_pins_a>;
reg = <0x2a>;
status = "okay";
interrupts = <2 2>;
interrupt-parent = <&gpiof>;
interrupt-controller;
touchscreen-size-x = <480>;
touchscreen-size-y = <800>;
panel = <&panel_otm8009a>;
vcc-supply = <&v3v3>;
status = "okay";
};
touchscreen@38 {
compatible = "focaltech,ft6236";
reg = <0x38>;
interrupts = <2 2>;
interrupt-parent = <&gpiof>;
interrupt-controller;
touchscreen-size-x = <480>;
touchscreen-size-y = <800>;
panel = <&panel_otm8009a>;
vcc-supply = <&v3v3>;
status = "okay";
};
};
};


&ltdc {
&m4_rng2 {
status = "okay";
status = "okay";
};


port {
&m4_rproc {
ltdc_ep1_out: endpoint@1 {
m4_system_resources {
reg = <1>;
status = "okay";
remote-endpoint = <&dsi_in>;

button {
compatible = "rproc-srm-dev";
interrupt-parent = <&gpioa>;
interrupts = <14 2>;
interrupt-names = "irq";
status = "okay";
};

m4_led: m4_led {
compatible = "rproc-srm-dev";
pinctrl-names = "default";
pinctrl-0 = <&m4_leds_orange_pins>;
status = "okay";
};
};
};
};
};
};


&rtc {
&m4_spi4 {
st,lsco = <RTC_OUT2_RMP>;
pinctrl-0 = <&rtc_out2_rmp_pins_a>;
pinctrl-names = "default";
pinctrl-names = "default";
pinctrl-0 = <&m4_spi4_pins_a>;
status = "okay";
};
};


/* Wifi */

&sdmmc2 {
&m4_timers2 {
arm,primecell-periphid = <0x10153180>;
pinctrl-names = "default", "opendrain", "sleep";
pinctrl-0 = <&sdmmc2_b4_pins_a>;
pinctrl-1 = <&sdmmc2_b4_od_pins_a>;
pinctrl-2 = <&sdmmc2_b4_sleep_pins_a>;
non-removable;
st,neg-edge;
bus-width = <4>;
vmmc-supply = <&v3v3>;
mmc-pwrseq = <&wifi_pwrseq>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
status = "okay";
};


brcmf: bcrmf@1 {
&m4_timers1 {
reg = <1>;
pinctrl-names = "default";
compatible = "brcm,bcm4329-fmac";
pinctrl-0 = <&m4_pwm1_pins_a_ch1>;
};
status = "okay";
};
};


/* Bluetooth */
&m4_uart7 {
&usart2 {
pinctrl-names = "default";
pinctrl-names = "default", "sleep", "idle";
pinctrl-0 = <&m4_uart7_pins_a>;
pinctrl-0 = <&usart2_pins_c>;
pinctrl-1 = <&usart2_sleep_pins_c>;
pinctrl-2 = <&usart2_idle_pins_c>;
uart-has-rtscts;
status = "okay";
status = "okay";
};


bluetooth {
&pinctrl {
shutdown-gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>;
m4_leds_orange_pins: m4-leds-orange-0 {
compatible = "brcm,bcm43438-bt";
pins {
max-speed = <3000000>;
pinmux = <STM32_PINMUX('H', 7, RSVD)>;
vbat-supply = <&v3v3>;
};
vddio-supply = <&v3v3>;
};

m4_pwm1_pins_a_ch1: m4-pwm1-0-ch1 {
pins {
pinmux = <STM32_PINMUX('E', 9, RSVD)>;
};
};
};
};
};


&timers1 {
status = "disabled";
};