uboot/u-boot-stm32mp-2020.01/arch/arm/dts/stm32mp157d-cyf.dts

147 lines
3.1 KiB
Plaintext
Raw Permalink Normal View History

2024-01-10 06:52:34 +00:00
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/*
* Copyright (C) STMicroelectronics 2019 - All Rights Reserved
* Author: Alexandre Torgue <alexandre.torgue@st.com> for STMicroelectronics.
*/
/dts-v1/;
#include "stm32mp157.dtsi"
#include "stm32mp15xd.dtsi"
#include "stm32mp15-pinctrl.dtsi"
#include "stm32mp15xxaa-pinctrl.dtsi"
#include "stm32mp157-m4-srm.dtsi"
#include "stm32mp157-m4-srm-pinctrl.dtsi"
#include "stm32mp157d-cyf.dtsi"
/ {
model = "STMicroelectronics STM32MP157D cyf ";
compatible = "st,stm32mp157d-cyf", "st,stm32mp157";
chosen {
stdout-path = "serial0:115200n8";
};
aliases {
serial0 = &uart4;
};
reserved-memory {
gpu_reserved: gpu@f6000000 {
reg = <0xf6000000 0x8000000>;
no-map;
};
optee_memory: optee@fe000000 {
reg = <0xfe000000 0x02000000>;
no-map;
};
};
panel_backlight: panel-backlight {
compatible = "gpio-backlight";
gpios = <&gpiod 13 GPIO_ACTIVE_HIGH>;
default-on;
status = "okay";
};
atk_pinctrl_lcd {
gpior = <&gpioj 6 GPIO_ACTIVE_LOW>;
gpiog = <&gpiok 2 GPIO_ACTIVE_LOW>;
gpiob = <&gpiok 6 GPIO_ACTIVE_LOW>;
};
panel_rgb: panel-rgb {
compatible = "simple-panel";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&ltdc_pins_b>;
pinctrl-1 = <&ltdc_pins_sleep_b>;
backlight = <&panel_backlight>;
status = "okay";
port {
panel_in_rgb: endpoint {
remote-endpoint = <&ltdc_ep0_out>;
};
};
display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <51200000>;
hactive = <1024>; /* LCD X 轴像素个数 */
vactive = <600>; /* LCD Y 轴像素个数 */
hfront-porch = <160>; /* LCD hfp 参数 */
hback-porch = <140>; /* LCD hbp 参数 */
hsync-len = <20>; /* LCD hspw 参数 */
vback-porch = <20>; /* LCD vbp 参数 */
vfront-porch = <12>; /* LCD vfp 参数 */
vsync-len = <3>; /* LCD vspw 参数 */
};
};
};
};
&pinctrl {
gpio_r:gpio_r {
pins {
pinmux = <STM32_PINMUX('J', 6, GPIO)>; /* PJ6.GPIO */
bias-pull-up;
drive-push-pull;
};
};
gpio_g:gpio_g {
pins {
pinmux = <STM32_PINMUX('K', 2, GPIO)>; /* PK2.GPIO */
bias-pull-up;
drive-push-pull;
};
};
gpio_b:gpio_b {
pins {
pinmux = <STM32_PINMUX('K', 6, GPIO)>; /* PK6.GPIO */
bias-pull-up;
drive-push-pull;
};
};
gpio_beep:gpio_beep {
pins {
pinmux = <STM32_PINMUX('C', 7, GPIO)>; /* PK6.GPIO */
bias-pull-down;
drive-push-pull;
};
};
};
&cpu1{
cpu-supply = <&vddcore>;
};
&gpu {
contiguous-area = <&gpu_reserved>;
status = "okay";
};
&iwdg2 {
pinctrl-names = "default";
pinctrl-0 = <&gpio_r>,<&gpio_g>, <&gpio_b>;
};
&ltdc {
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
ltdc_ep0_out: endpoint@0 {
reg = <0>;
remote-endpoint = <&panel_in_rgb>;
};
};
};
&optee {
status = "okay";
};