Giter VIP home page Giter VIP logo

goodix_gt9xx_public's Introduction

Step 1. Modify Makefile:
    Modify drivers/input/touchscreen/Makefile,add a new line into it : 
        obj-$(CONFIG_TOUCHSCREEN_GT9XX) += gt9xx/	

Step 2. Modify Kconfig
    Modify drivers/input/touchscreen/Kconfig, include our kconfig under TOUCHSCREEN
	source "drivers/input/touchscreen/gt9xx/Kconfig" 
	
Step 3. Port dtsi:
    Port kernel/arch/arm/boot/dts/goodix-gt9xx-i2c.dtsi into platform dts
	During the porting, please set right value into below fields
	    interrupt-parent = <&msm_gpio>;
	    interrupts = <13 0x2800>;
	    reset-gpios = <&msm_gpio 12 0x0>;
	    irq-gpios = <&msm_gpio 13 0x2800>;
	    touchscreen-size-x = <1080>;
	    touchscreen-size-y = <1920>;

Step 4. Implement Pinctrl
    Goodix dts declared 4 pinctrl:
	     <&ts_int_default>;	<&ts_int_output_low>;<&ts_int_output_high>;<&ts_int_input>;
    Please implement them in pinctrl dts.
	kernel/arch/arm/boot/dts/msm8916-pinctrl.dtsi is an example.

Step 5. Modify defconfig
	Please refer kernel/arch/arm/configs/msm_defconfig .
		CONFIG_TOUCHSCREEN_GT9XX=y
		CONFIG_TOUCHSCREEN_GT9XX_UPDATE=y
		CONFIG_TOUCHSCREEN_GT9XX_DEBUG=y

Step 6. The porting is done, please compile.

goodix_gt9xx_public's People

Contributors

charles-wang-goodix avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.