63 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/input/touchscreen/chipone,icn8318.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: ChipOne ICN8318 Touchscreen Controller8 9maintainers:10 - Dmitry Torokhov <dmitry.torokhov@gmail.com>11 12allOf:13 - $ref: touchscreen.yaml#14 15properties:16 compatible:17 const: chipone,icn831818 19 reg:20 maxItems: 121 22 interrupts:23 maxItems: 124 25 wake-gpios:26 maxItems: 127 28unevaluatedProperties: false29 30required:31 - compatible32 - reg33 - interrupts34 - wake-gpios35 - touchscreen-size-x36 - touchscreen-size-y37 38examples:39 - |40 #include <dt-bindings/gpio/gpio.h>41 #include <dt-bindings/interrupt-controller/arm-gic.h>42 43 i2c {44 #address-cells = <1>;45 #size-cells = <0>;46 47 touchscreen@40 {48 compatible = "chipone,icn8318";49 reg = <0x40>;50 interrupt-parent = <&pio>;51 interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* EINT9 (PG9) */52 pinctrl-names = "default";53 pinctrl-0 = <&ts_wake_pin_p66>;54 wake-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */55 touchscreen-size-x = <800>;56 touchscreen-size-y = <480>;57 touchscreen-inverted-x;58 touchscreen-swapped-x-y;59 };60 };61 62...63