From aa8c0f0f7365a1777dbf2bc1868552eedbc725ac Mon Sep 17 00:00:00 2001 From: Jason Yu Date: Thu, 18 Apr 2024 10:27:01 +0800 Subject: [PATCH] mcxn947: touch: Enable touch panel on frdm_mcxn947 - Enable the touch panel of lcd_par_s035 Signed-off-by: Jason Yu --- boards/nxp/frdm_mcxn947/frdm_mcxn947.dtsi | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/boards/nxp/frdm_mcxn947/frdm_mcxn947.dtsi b/boards/nxp/frdm_mcxn947/frdm_mcxn947.dtsi index 77708792e49..7e95ec16144 100644 --- a/boards/nxp/frdm_mcxn947/frdm_mcxn947.dtsi +++ b/boards/nxp/frdm_mcxn947/frdm_mcxn947.dtsi @@ -52,6 +52,19 @@ status = "disabled"; }; }; + + /* + * This node describes the GPIO pins of the LCD-PAR-S035 panel 8080 interface. + */ + nxp_lcd_8080_connector: lcd-8080-connector { + compatible = "nxp,lcd-8080"; + #gpio-cells = <2>; + gpio-map-mask = <0xffffffff 0xffffffc0>; + gpio-map-pass-thru = <0 0x3f>; + gpio-map = <9 0 &gpio4 6 0>, /* Pin 9, LCD touch INT */ + <10 0 &gpio4 5 0>, /* Pin 10, LCD backlight control */ + <11 0 &gpio4 7 0>; /* Pin 11, LCD and touch reset */ + }; }; &flexcomm1_lpspi1 { @@ -59,7 +72,7 @@ pinctrl-names = "default"; }; -&flexcomm2_lpi2c2 { +nxp_8080_touch_panel_i2c: &flexcomm2_lpi2c2 { pinctrl-0 = <&pinmux_flexcomm2_lpi2c>; pinctrl-names = "default"; clock-frequency = ;