1f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Copyright (c) STMicroelectronics 2019 - All Rights Reserved 4f126890aSEmmanuel Vadot * Copyright (c) 2020 Engicam srl 5f126890aSEmmanuel Vadot * Copyright (c) 2020 Amarula Solutions(India) 6f126890aSEmmanuel Vadot */ 7f126890aSEmmanuel Vadot 8f126890aSEmmanuel Vadot/dts-v1/; 9f126890aSEmmanuel Vadot#include "stm32mp157.dtsi" 10f126890aSEmmanuel Vadot#include "stm32mp157a-icore-stm32mp1.dtsi" 11f126890aSEmmanuel Vadot#include "stm32mp15-pinctrl.dtsi" 12f126890aSEmmanuel Vadot#include "stm32mp15xxaa-pinctrl.dtsi" 13f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 14f126890aSEmmanuel Vadot 15f126890aSEmmanuel Vadot/ { 16f126890aSEmmanuel Vadot model = "Engicam i.Core STM32MP1 EDIMM2.2 Starter Kit"; 17f126890aSEmmanuel Vadot compatible = "engicam,icore-stm32mp1-edimm2.2", 18f126890aSEmmanuel Vadot "engicam,icore-stm32mp1", "st,stm32mp157"; 19f126890aSEmmanuel Vadot 20f126890aSEmmanuel Vadot aliases { 21f126890aSEmmanuel Vadot serial0 = &uart4; 22f126890aSEmmanuel Vadot }; 23f126890aSEmmanuel Vadot 24f126890aSEmmanuel Vadot chosen { 25f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 26f126890aSEmmanuel Vadot }; 27f126890aSEmmanuel Vadot 28f126890aSEmmanuel Vadot backlight: backlight { 29f126890aSEmmanuel Vadot compatible = "gpio-backlight"; 30f126890aSEmmanuel Vadot gpios = <&gpiod 13 GPIO_ACTIVE_HIGH>; 31f126890aSEmmanuel Vadot default-on; 32f126890aSEmmanuel Vadot }; 33f126890aSEmmanuel Vadot 34f126890aSEmmanuel Vadot panel { 35f126890aSEmmanuel Vadot compatible = "yes-optoelectronics,ytc700tlag-05-201c"; 36f126890aSEmmanuel Vadot backlight = <&backlight>; 37f126890aSEmmanuel Vadot power-supply = <&v3v3>; 38f126890aSEmmanuel Vadot 39f126890aSEmmanuel Vadot port { 40f126890aSEmmanuel Vadot panel_out_bridge: endpoint { 41f126890aSEmmanuel Vadot remote-endpoint = <&bridge_out_panel>; 42f126890aSEmmanuel Vadot }; 43f126890aSEmmanuel Vadot }; 44f126890aSEmmanuel Vadot }; 45f126890aSEmmanuel Vadot}; 46f126890aSEmmanuel Vadot 47f126890aSEmmanuel Vadot&dsi { 48f126890aSEmmanuel Vadot status = "okay"; 49*aa1a8ff2SEmmanuel Vadot}; 50f126890aSEmmanuel Vadot 51*aa1a8ff2SEmmanuel Vadot&dsi_in { 52f126890aSEmmanuel Vadot remote-endpoint = <<dc_out_dsi>; 53f126890aSEmmanuel Vadot}; 54f126890aSEmmanuel Vadot 55*aa1a8ff2SEmmanuel Vadot&dsi_out { 56f126890aSEmmanuel Vadot remote-endpoint = <&bridge_in_dsi>; 57f126890aSEmmanuel Vadot}; 58f126890aSEmmanuel Vadot 59f126890aSEmmanuel Vadot&i2c6 { 60f126890aSEmmanuel Vadot i2c-scl-falling-time-ns = <20>; 61f126890aSEmmanuel Vadot i2c-scl-rising-time-ns = <185>; 62f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 63f126890aSEmmanuel Vadot pinctrl-0 = <&i2c6_pins_a>; 64f126890aSEmmanuel Vadot pinctrl-1 = <&i2c6_sleep_pins_a>; 65f126890aSEmmanuel Vadot status = "okay"; 66f126890aSEmmanuel Vadot 67f126890aSEmmanuel Vadot bridge@2c { 68f126890aSEmmanuel Vadot compatible = "ti,sn65dsi84"; 69f126890aSEmmanuel Vadot reg = <0x2c>; 70f126890aSEmmanuel Vadot enable-gpios = <&gpiof 15 GPIO_ACTIVE_HIGH>; 71f126890aSEmmanuel Vadot 72f126890aSEmmanuel Vadot ports { 73f126890aSEmmanuel Vadot #address-cells = <1>; 74f126890aSEmmanuel Vadot #size-cells = <0>; 75f126890aSEmmanuel Vadot 76f126890aSEmmanuel Vadot port@0 { 77f126890aSEmmanuel Vadot reg = <0>; 78f126890aSEmmanuel Vadot bridge_in_dsi: endpoint { 79*aa1a8ff2SEmmanuel Vadot remote-endpoint = <&dsi_out>; 80f126890aSEmmanuel Vadot data-lanes = <1 2>; 81f126890aSEmmanuel Vadot }; 82f126890aSEmmanuel Vadot }; 83f126890aSEmmanuel Vadot 84f126890aSEmmanuel Vadot port@2 { 85f126890aSEmmanuel Vadot reg = <2>; 86f126890aSEmmanuel Vadot bridge_out_panel: endpoint { 87f126890aSEmmanuel Vadot remote-endpoint = <&panel_out_bridge>; 88f126890aSEmmanuel Vadot }; 89f126890aSEmmanuel Vadot }; 90f126890aSEmmanuel Vadot }; 91f126890aSEmmanuel Vadot }; 92f126890aSEmmanuel Vadot}; 93f126890aSEmmanuel Vadot 94f126890aSEmmanuel Vadot<dc { 95f126890aSEmmanuel Vadot status = "okay"; 96f126890aSEmmanuel Vadot 97f126890aSEmmanuel Vadot port { 98f126890aSEmmanuel Vadot ltdc_out_dsi: endpoint { 99*aa1a8ff2SEmmanuel Vadot remote-endpoint = <&dsi_in>; 100f126890aSEmmanuel Vadot }; 101f126890aSEmmanuel Vadot }; 102f126890aSEmmanuel Vadot}; 103f126890aSEmmanuel Vadot 104f126890aSEmmanuel Vadot&sdmmc1 { 105f126890aSEmmanuel Vadot bus-width = <4>; 106f126890aSEmmanuel Vadot disable-wp; 107f126890aSEmmanuel Vadot pinctrl-names = "default", "opendrain", "sleep"; 108f126890aSEmmanuel Vadot pinctrl-0 = <&sdmmc1_b4_pins_a>; 109f126890aSEmmanuel Vadot pinctrl-1 = <&sdmmc1_b4_od_pins_a>; 110f126890aSEmmanuel Vadot pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; 111f126890aSEmmanuel Vadot st,neg-edge; 112f126890aSEmmanuel Vadot vmmc-supply = <&v3v3>; 113f126890aSEmmanuel Vadot status = "okay"; 114f126890aSEmmanuel Vadot}; 115f126890aSEmmanuel Vadot 116f126890aSEmmanuel Vadot&uart4 { 117f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep", "idle"; 118f126890aSEmmanuel Vadot pinctrl-0 = <&uart4_pins_a>; 119f126890aSEmmanuel Vadot pinctrl-1 = <&uart4_sleep_pins_a>; 120f126890aSEmmanuel Vadot pinctrl-2 = <&uart4_idle_pins_a>; 121f126890aSEmmanuel Vadot /delete-property/dmas; 122f126890aSEmmanuel Vadot /delete-property/dma-names; 123f126890aSEmmanuel Vadot status = "okay"; 124f126890aSEmmanuel Vadot}; 125