Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux/PROCESSOR-SDK-AM437X: Touchscreen doesn't work on GP EVM

$
0
0

Part Number:PROCESSOR-SDK-AM437X

Tool/software: Linux

Hi,

I download SDK ti-processor-sdk-linux-am437x-evm-05.01.00.11-Linux-x86-Install.bin and update  old SDK  tl-processor-sdk-linux-am437-evm-01.00.00.03, in my am437x-gp-evm board,  then the Touch screen cann't work. I did following:

1)modifed the dts file, added follow lines (from the old dts file)in the dts file:

    spi2_pins: spi2_pins {           /*4 wire touch screen driver chip */
        pinctrl-single,pins = <
            AM4372_IOPAD(0xa60, INPUT_EN | MUX_MODE0)  /* mcspi2_sclk mode 0*/
            AM4372_IOPAD(0xa64, INPUT_EN | MUX_MODE0)  /* 268 mcspi2_d0 mode 0*/
            AM4372_IOPAD(0xa68, INPUT_EN | MUX_MODE0)  /* 264 mcspi2_d1 mode 0*/
            AM4372_IOPAD(0xa6c, PIN_OUTPUT_PULLUP | MUX_MODE0)  /* mcspi2_cs0 mode 0*/
        >;
    };

    ads7846_pins: ads7846_pins {
        pinctrl-single,pins = <
            AM4372_IOPAD(0xa5c, PIN_INPUT_PULLUP | MUX_MODE7)  /* spi4_cs0..gpio5_7 */
        >;
    };
    edt_ft5x06_pins: edt_ft5x06_pins {
        pinctrl-single,pins = <
            AM4372_IOPAD(0xa78, PIN_INPUT_PULLUP | MUX_MODE7)  /* H20:clkreq..gpio0_24 */
        >;
    };
&spi2 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&spi2_pins>;

    ads7846@0 {
        pinctrl-names = "default";
        pinctrl-0 = <&ads7846_pins>;

        compatible = "ti,ads7846";
        vcc-supply = <&ads7846reg>;

        reg = <0>;            /* CS0 */
        spi-max-frequency = <1500000>;

        interrupt-parent = <&gpio5>;
        interrupts = <7 0>;        /* gpio5_7 */
        pendown-gpio = <&gpio5 7 0>;

        ti,x-min = /bits/ 16 <0x0>;
        ti,x-max = /bits/ 16 <0x0fff>;
        ti,y-min = /bits/ 16 <0x0>;
        ti,y-max = /bits/ 16 <0x0fff>;

        ti,x-plate-ohms = /bits/ 16 <180>;
        ti,pressure-max = /bits/ 16 <255>;

        ti,debounce-max = /bits/ 16 <10>;
        ti,debounce-tol = /bits/ 16 <30>;
        ti,debounce-rep = /bits/ 16 <1>;

        ti,settle-delay-usec = /bits/ 16 <150>;
        ti,keep-vref-on = <1>;

        linux,wakeup;
    };
};

2)configed kernel: Device Driver->Input device support->Touchscreens->    <M>ADS7846/TSC2046/AD7837 and AD(s)7843 based touchscreens

<*>EDT FocalTech FT5x06 I2C Touchscreen support 

<M> TI Touchscreen Interface

3)save the config and compile the kernel to get zImage and modules

4)put the modules to filesystem

When update the system and reboot, the Touchscreen cann't work yet. when lsmod, there is no ads7846 in the list.

I attachment my dts file here.

Bests Regards,

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 17527

Trending Articles