// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* * Copyright (C) STMicroelectronics 2019 - All Rights Reserved * Author: Alexandre Torgue 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 = <<dc_pins_b>; pinctrl-1 = <<dc_pins_sleep_b>; backlight = <&panel_backlight>; status = "okay"; port { panel_in_rgb: endpoint { remote-endpoint = <<dc_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 = ; /* PJ6.GPIO */ bias-pull-up; drive-push-pull; }; }; gpio_g:gpio_g { pins { pinmux = ; /* PK2.GPIO */ bias-pull-up; drive-push-pull; }; }; gpio_b:gpio_b { pins { pinmux = ; /* PK6.GPIO */ bias-pull-up; drive-push-pull; }; }; gpio_beep:gpio_beep { pins { pinmux = ; /* 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>; }; <dc { status = "okay"; port { #address-cells = <1>; #size-cells = <0>; ltdc_ep0_out: endpoint@0 { reg = <0>; remote-endpoint = <&panel_in_rgb>; }; }; }; &optee { status = "okay"; };