How to enable the interrupt of the touch of I2C1_LVDS0 in the iMX8QM MEK B/D in android platform

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable the interrupt of the touch of I2C1_LVDS0 in the iMX8QM MEK B/D in android platform

535 Views
hyun-moyang
Contributor III

Hi all,

I'd like to enable the interruption of the touch of I2C1_LVDS0 in iMX8QM MEK B/D in the Android platform in the "imx8qm-mek.dts" file .

In imx8qm-mek.dts,

we can see the item as like,

<As is >

&i2c1_lvds0 {

           #address-cells = <1>;

           #size-cells = <0>;

           pinctrl-names = "default";

           pinctrl-0 = <&pinctrl_lvds0_lpi2c1>;

           clock-frequency = <100000>;

           status = "okay";

 

           lvds-to-hdmi-bridge@4c {

                     compatible = "ite,it6263";

                     reg = <0x4c>;

 

                     port {

                                it6263_0_in: endpoint {

                                           remote-endpoint = <&lvds0_out>;

                                };

                     };

           };

};

 But I'd like to enable the interrupt of the touch of I2C1_LVDS0, I don't need to use the LVDS_TO_HDMI bridge. So, How do I change to enable the interruption of touch?

Please help me to resolve this issue.

Regards

HM

0 Kudos
Reply
1 Reply

526 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You can refer this mipi screen code, split lvds panel and i2c node 

 

 

#include "imx8mm-evk.dts"

&adv_bridge {
	status = "disabled";
};

&mipi_dsi {
	panel@0 {
		compatible = "raydium,rm67191";
		reg = <0>;
		pinctrl-0 = <&pinctrl_mipi_dsi_en>;
		reset-gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
		dsi-lanes = <4>;
		video-mode = <2>;	/* 0: burst mode
					 * 1: non-burst mode with sync event
					 * 2: non-burst mode with sync pulse
					 */
		panel-width-mm = <68>;
		panel-height-mm = <121>;
		status = "okay";
	};
};

&i2c2 {
	synaptics_dsx_ts@20 {
		compatible = "synaptics_dsx";
		reg = <0x20>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_i2c2_synaptics_dsx_io>;
		interrupt-parent = <&gpio1>;
		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
		synaptics,diagonal-rotation;
		status = "okay";
	};
};

 

0 Kudos
Reply