chipone,icn8318.yaml (1335B)
1# SPDX-License-Identifier: GPL-2.0 2%YAML 1.2 3--- 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 Controller Device Tree Bindings 8 9maintainers: 10 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 11 12allOf: 13 - $ref: touchscreen.yaml# 14 15properties: 16 compatible: 17 const: chipone,icn8318 18 19 reg: 20 maxItems: 1 21 22 interrupts: 23 maxItems: 1 24 25 wake-gpios: 26 maxItems: 1 27 28unevaluatedProperties: false 29 30required: 31 - compatible 32 - reg 33 - interrupts 34 - wake-gpios 35 - touchscreen-size-x 36 - touchscreen-size-y 37 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...