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