Robert Dolca | 3197704 | 2016-07-28 14:28:46 -0700 | [diff] [blame] | 1 | * GSL 1680 touchscreen controller |
| 2 | |
| 3 | Required properties: |
Javier Martinez Canillas | 96083b2 | 2017-04-03 11:57:31 -0700 | [diff] [blame] | 4 | - compatible : Must be one of the following, depending on the model: |
| 5 | "silead,gsl1680" |
| 6 | "silead,gsl1688" |
| 7 | "silead,gsl3670" |
| 8 | "silead,gsl3675" |
| 9 | "silead,gsl3692" |
Robert Dolca | 3197704 | 2016-07-28 14:28:46 -0700 | [diff] [blame] | 10 | - reg : I2C slave address of the chip (0x40) |
| 11 | - interrupt-parent : a phandle pointing to the interrupt controller |
| 12 | serving the interrupt for this chip |
| 13 | - interrupts : interrupt specification for the gsl1680 interrupt |
| 14 | - power-gpios : Specification for the pin connected to the gsl1680's |
| 15 | shutdown input. This needs to be driven high to take the |
| 16 | gsl1680 out of its low power state |
| 17 | - touchscreen-size-x : See touchscreen.txt |
| 18 | - touchscreen-size-y : See touchscreen.txt |
| 19 | |
| 20 | Optional properties: |
Hans de Goede | 43ba588 | 2016-09-07 19:25:37 -0700 | [diff] [blame] | 21 | - firmware-name : File basename (string) for board specific firmware |
Robert Dolca | 3197704 | 2016-07-28 14:28:46 -0700 | [diff] [blame] | 22 | - touchscreen-inverted-x : See touchscreen.txt |
| 23 | - touchscreen-inverted-y : See touchscreen.txt |
| 24 | - touchscreen-swapped-x-y : See touchscreen.txt |
| 25 | - silead,max-fingers : maximum number of fingers the touchscreen can detect |
Hans de Goede | eca3be9 | 2018-01-09 11:34:15 -0800 | [diff] [blame] | 26 | - silead,home-button : Boolean, set to true on devices which have a |
| 27 | capacitive home-button build into the touchscreen |
Hans de Goede | 6f6deb4 | 2016-11-16 09:37:08 -0800 | [diff] [blame] | 28 | - vddio-supply : regulator phandle for controller VDDIO |
| 29 | - avdd-supply : regulator phandle for controller AVDD |
Robert Dolca | 3197704 | 2016-07-28 14:28:46 -0700 | [diff] [blame] | 30 | |
| 31 | Example: |
| 32 | |
| 33 | i2c@00000000 { |
| 34 | gsl1680: touchscreen@40 { |
| 35 | compatible = "silead,gsl1680"; |
| 36 | reg = <0x40>; |
| 37 | interrupt-parent = <&pio>; |
| 38 | interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; |
| 39 | power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; |
| 40 | touchscreen-size-x = <480>; |
| 41 | touchscreen-size-y = <800>; |
| 42 | touchscreen-inverted-x; |
| 43 | touchscreen-swapped-x-y; |
| 44 | silead,max-fingers = <5>; |
| 45 | }; |
| 46 | }; |