Part Number: AM3352
I am facing a replacement of a touchscreen panel to a deliverable product. We currently use the following fragments in our .dts file:
panel {
compatible = "ti,tilcdc,panel";
pinctrl-names = "default";
pinctrl-0 = <&lcd_pins_default>;
status = "okay";
panel-info {
ac-bias = <255>;
ac-bias-intrpt = <0>;
dma-burst-sz = <16>;
bpp = <16>;
fdd = <0x80>;
sync-edge = <0>;
sync-ctrl = <1>;
raster-order = <0>;
fifo-th = <0>;
};
display-timings {
native-mode = <&timing0>;
timing0: 320x240 {
hactive = <320>;
vactive = <240>;
hback-porch = <70>;
hfront-porch = <18>;
hsync-len = <2>;
vback-porch = <13>;
vfront-porch = <10>;
vsync-len = <2>;
clock-frequency = <6400000>;
hsync-active = <0>;
vsync-active = <0>;
};
};
};
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
status = "okay";
clock-frequency = <400000>;
edt-ft5406@38 {
status = "okay";
compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
pinctrl-names = "default";
pinctrl-0 = <&edt_ft5406_ts_pins>;
reg = <0x38>;
interrupt-parent = <&gpio3>;
interrupts = <21 0>;
touchscreen-size-x = <320>;
touchscreen-size-y = <240>;
};
};
We would like to also support a similar drop-in, goodix gt9xxx, part and have a single .dts file that will work for either configuration by adding the new information to the existing ic21 fragment as per the example below:
gt9xx@14 {
compatible = "goodix,gt9xx";
reg = <0x14>;
interrupt-parent = <&gpio>;
interrupts = <0 0>;
};
Is this a possibility?