UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
376 Views
Registered: ‎06-28-2018

Fetch Interrupt from TSC2007 into linux running on MYD-C7Z020 board

Hi,

I am using MYD-C7Z020 development board with MYC-C7Z020 CPU Module for Xilinx XC7Z020-1CLG400C.
Also I have 7" resistive touchscreen display (provided by MYiR) which is also connected to the board.
I am trying to figure out how to get interrupt in linux from a TSC2007 chip which is embedded into the board.
Following is the block I was able to find out from zynq-myd.dts file, which needs to be added in devicetree,
tsc2007@49 {
compatible = "tsc2007";
reg = <0x49>;
ti,x-plate-ohms = <655>;
ti,poll-period = /bits/ 64 <30>; //in ms
gpios = <&gpio0 117 1>; // 1 means active low
};
But I am not sure if the above configuration is proper or not.

Could you provide us some pointers on what configurations/changes we need to setup, to get interrupt from TSC2007 chip to linux.
For reference, please checkout the schematics of TSC2007 connections attached with this post.

0 Kudos
1 Reply
Moderator
Moderator
312 Views
Registered: ‎06-27-2017

Re: Fetch Interrupt from TSC2007 into linux running on MYD-C7Z020 board

Hi omkar@apra.in,

You could try adding your slave details as mentioned below,

Zynq-7020 has two I2C switches where slaves are connected. you need to initalize them first then your slave.

Inside your switch you need to mention the i2c slaves like i2c@0, i2c@2.

i2c@e0004000 {
compatible = "cdns,i2c-r1p10";
status = "okay";
clocks = <0x1 0x26>;
interrupt-parent = <0x3>;
interrupts = <0x0 0x19 0x4>;
reg = <0xe0004000 0x1000>;
#address-cells = <0x1>;
#size-cells = <0x0>;
clock-frequency = <0x186a0>;

i2cswitch@74 {
compatible = "nxp,pca9548";
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x74>;

i2c@0 {
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x0>;

clock-generator@5d {
#clock-cells = <0x0>;
compatible = "silabs,si570";
temperature-stability = <0x32>;
reg = <0x5d>;
factory-fout = <0x9502f90>;
clock-frequency = <0x8d9ee20>;
};
};

i2c@2 {
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x2>;

eeprom@54 {
compatible = "at,24c08";
reg = <0x54>;
};
};

Check your design for your i2c bus where touch screen is connected. You can try adding the slave node repspectively.

 

Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos