From 6f97fb3c1c98e5bdb85414929171ec3d2803e3d5 Mon Sep 17 00:00:00 2001 From: Chirag Parmar Date: Wed, 21 Jan 2026 15:00:34 +0530 Subject: [PATCH 1/2] board: mecha: add hdmi and extension detection gpio developed-by: Pratham Malaviya Signed-off-by: Chirag Parmar --- .../boot/dts/freescale/imx8mp-mecha-comet.dts | 65 ++++++++++++++++++- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-mecha-comet.dts b/arch/arm64/boot/dts/freescale/imx8mp-mecha-comet.dts index 1e29eb202242..b0011df7a296 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-mecha-comet.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-mecha-comet.dts @@ -6,8 +6,8 @@ /dts-v1/; //#include -//#include -//#include +#include +#include #include "imx8mp.dtsi" / { @@ -110,6 +110,13 @@ }; }; + sound-hdmi { + compatible = "fsl,imx-audio-hdmi"; + model = "audio-hdmi"; + audio-cpu = <&aud2htx>; + hdmi-out; + }; + usb0_ss_mux: ptn36043 { compatible = "nxp,ptn36043"; pinctrl-names = "default"; @@ -168,6 +175,17 @@ }; }; + Comet-Extension { + compatible = "gpio-keys"; + + keypad-slide { + label = "Comet Extension Keypad Slide"; + linux,input-type = ; + linux,code = ; + gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>; + }; + }; + }; &A53_0 { @@ -214,6 +232,30 @@ dr_mode = "host"; }; +&irqsteer_hdmi { + status = "okay"; +}; + +&hdmi_blk_ctrl { + status = "okay"; +}; + +&hdmi_pavi { + status = "okay"; +}; + +&hdmi { + status = "okay"; +}; + +&hdmiphy { + status = "okay"; +}; + +&aud2htx { + status = "okay"; +}; + &wdog1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_wdog>; @@ -660,6 +702,17 @@ status = "okay"; }; +&lcdif2 { + status = "disabled"; +}; + +&lcdif3 { + status = "okay"; + + thres-low = <1 2>; /* (FIFO * 1 / 2) */ + thres-high = <3 4>; /* (FIFO * 3 / 4) */ +}; + &mipi_dsi { samsung,esc-clock-frequency = <16000000>; status = "okay"; @@ -1052,4 +1105,12 @@ >; }; + pinctrl_hog: hoggrp { + fsl,pins = < + MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL 0x400001c2 + MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA 0x400001c2 + MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD 0x40000010 + MX8MP_IOMUXC_HDMI_CEC__HDMIMIX_HDMI_CEC 0x40000010 + >; + }; }; From 34b852b8c41f1594e190704fd51c10659ba84b63 Mon Sep 17 00:00:00 2001 From: Chirag Parmar Date: Thu, 22 Jan 2026 18:35:56 +0530 Subject: [PATCH 2/2] board: mecha: update linux input key code for Comet-Extension Signed-off-by: Chirag Parmar --- arch/arm64/boot/dts/freescale/imx8mp-mecha-comet.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-mecha-comet.dts b/arch/arm64/boot/dts/freescale/imx8mp-mecha-comet.dts index b0011df7a296..88f8b61ba66a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-mecha-comet.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-mecha-comet.dts @@ -180,8 +180,8 @@ keypad-slide { label = "Comet Extension Keypad Slide"; - linux,input-type = ; - linux,code = ; + linux,input-type = ; + linux,code = ; gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>; }; };