Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | * Rohm BU21029 Touch Screen Controller |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible : must be "rohm,bu21029" |
| 5 | - reg : i2c device address of the chip (0x40 or 0x41) |
| 6 | - interrupt-parent : the phandle for the gpio controller |
| 7 | - interrupts : (gpio) interrupt to which the chip is connected |
| 8 | - rohm,x-plate-ohms : x-plate resistance in Ohm |
| 9 | |
| 10 | Optional properties: |
| 11 | - reset-gpios : gpio pin to reset the chip (active low) |
| 12 | - touchscreen-size-x : horizontal resolution of touchscreen (in pixels) |
| 13 | - touchscreen-size-y : vertical resolution of touchscreen (in pixels) |
| 14 | - touchscreen-max-pressure: maximum pressure value |
| 15 | - vdd-supply : power supply for the controller |
| 16 | |
| 17 | Example: |
| 18 | |
| 19 | &i2c1 { |
| 20 | /* ... */ |
| 21 | |
| 22 | bu21029: bu21029@40 { |
| 23 | compatible = "rohm,bu21029"; |
| 24 | reg = <0x40>; |
| 25 | interrupt-parent = <&gpio1>; |
| 26 | interrupts = <4 IRQ_TYPE_EDGE_FALLING>; |
| 27 | reset-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>; |
| 28 | rohm,x-plate-ohms = <600>; |
| 29 | touchscreen-size-x = <800>; |
| 30 | touchscreen-size-y = <480>; |
| 31 | touchscreen-max-pressure = <4095>; |
| 32 | }; |
| 33 | |
| 34 | /* ... */ |
| 35 | }; |