From 18598fcde4d8541147084a661c553eb4cca92787 Mon Sep 17 00:00:00 2001 From: Maxim Paymushkin Date: Wed, 4 Dec 2024 20:34:43 +0100 Subject: [PATCH] patch: kernel: rk35xx-vendor-6.1: adakta-smarc: add edp display --- .../dt/rk3568-adakta-smarc-base-display.dtsi | 80 +++++++++++++++++++ .../dt/rk3568-adakta-smarc-base.dtsi | 1 + 2 files changed, 81 insertions(+) create mode 100644 patch/kernel/rk35xx-vendor-6.1/dt/rk3568-adakta-smarc-base-display.dtsi diff --git a/patch/kernel/rk35xx-vendor-6.1/dt/rk3568-adakta-smarc-base-display.dtsi b/patch/kernel/rk35xx-vendor-6.1/dt/rk3568-adakta-smarc-base-display.dtsi new file mode 100644 index 000000000000..30383ed7edb7 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/dt/rk3568-adakta-smarc-base-display.dtsi @@ -0,0 +1,80 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2024 Adakta, Ltd. + * + */ + +/ { + panel-edp { + compatible = "simple-panel"; + prepare-delay-ms = <120>; + enable-delay-ms = <120>; + unprepare-delay-ms = <120>; + disable-delay-ms = <120>; + + display-timings { + native-mode = <&edp_timing>; + + edp_timing: timing0 { + clock-frequency = <125000000>; + hactive = <1920>; + vactive = <1080>; + hback-porch = <180>; + hfront-porch = <120>; + vback-porch = <10>; + vfront-porch = <10>; + hsync-len = <20>; + vsync-len = <10>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <0>; + }; + }; + + port { + panel_in_edp: endpoint { + remote-endpoint = <&edp_out_panel>; + }; + }; + }; +}; + +&pinctrl { + edp { + edp_hpd: edp-hpd { + rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&edp { + pinctrl-names = "default"; + pinctrl-0 = <&edp_hpd>; + + hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; + status = "okay"; + + ports { + port@1 { + reg = <1>; + + edp_out_panel: endpoint { + remote-endpoint = <&panel_in_edp>; + }; + }; + }; +}; + +&edp_in_vp0 { + status = "okay"; +}; + +&edp_phy { + status = "okay"; +}; + +&route_edp { + connect = <&vp0_out_edp>; + status = "okay"; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/dt/rk3568-adakta-smarc-base.dtsi b/patch/kernel/rk35xx-vendor-6.1/dt/rk3568-adakta-smarc-base.dtsi index 1e614e13e416..ca6c56183a0a 100644 --- a/patch/kernel/rk35xx-vendor-6.1/dt/rk3568-adakta-smarc-base.dtsi +++ b/patch/kernel/rk35xx-vendor-6.1/dt/rk3568-adakta-smarc-base.dtsi @@ -16,6 +16,7 @@ #include "rk3568.dtsi" #include "rk3568-adakta-smarc-base-camera.dtsi" +#include "rk3568-adakta-smarc-base-display.dtsi" #include "rk3568-adakta-smarc-base-ethernet.dtsi" #include "rk3568-adakta-smarc-base-i2c.dtsi" #include "rk3568-adakta-smarc-base-uart.dtsi"