1*4882a593Smuzhiyun* ChipOne icn8318 I2C touchscreen controller 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunRequired properties: 4*4882a593Smuzhiyun - compatible : "chipone,icn8318" 5*4882a593Smuzhiyun - reg : I2C slave address of the chip (0x40) 6*4882a593Smuzhiyun - interrupts : interrupt specification for the icn8318 interrupt 7*4882a593Smuzhiyun - wake-gpios : GPIO specification for the WAKE input 8*4882a593Smuzhiyun - touchscreen-size-x : horizontal resolution of touchscreen (in pixels) 9*4882a593Smuzhiyun - touchscreen-size-y : vertical resolution of touchscreen (in pixels) 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunOptional properties: 12*4882a593Smuzhiyun - pinctrl-names : should be "default" 13*4882a593Smuzhiyun - pinctrl-0: : a phandle pointing to the pin settings for the 14*4882a593Smuzhiyun control gpios 15*4882a593Smuzhiyun - touchscreen-fuzz-x : horizontal noise value of the absolute input 16*4882a593Smuzhiyun device (in pixels) 17*4882a593Smuzhiyun - touchscreen-fuzz-y : vertical noise value of the absolute input 18*4882a593Smuzhiyun device (in pixels) 19*4882a593Smuzhiyun - touchscreen-inverted-x : X axis is inverted (boolean) 20*4882a593Smuzhiyun - touchscreen-inverted-y : Y axis is inverted (boolean) 21*4882a593Smuzhiyun - touchscreen-swapped-x-y : X and Y axis are swapped (boolean) 22*4882a593Smuzhiyun Swapping is done after inverting the axis 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunExample: 25*4882a593Smuzhiyun 26*4882a593Smuzhiyuni2c@00000000 { 27*4882a593Smuzhiyun /* ... */ 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun chipone_icn8318@40 { 30*4882a593Smuzhiyun compatible = "chipone,icn8318"; 31*4882a593Smuzhiyun reg = <0x40>; 32*4882a593Smuzhiyun interrupt-parent = <&pio>; 33*4882a593Smuzhiyun interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* EINT9 (PG9) */ 34*4882a593Smuzhiyun pinctrl-names = "default"; 35*4882a593Smuzhiyun pinctrl-0 = <&ts_wake_pin_p66>; 36*4882a593Smuzhiyun wake-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */ 37*4882a593Smuzhiyun touchscreen-size-x = <800>; 38*4882a593Smuzhiyun touchscreen-size-y = <480>; 39*4882a593Smuzhiyun touchscreen-inverted-x; 40*4882a593Smuzhiyun touchscreen-swapped-x-y; 41*4882a593Smuzhiyun }; 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun /* ... */ 44*4882a593Smuzhiyun}; 45