Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: input/touchscreen: add bindings for msg2638

This adds dts bindings for the mstar msg2638 touchscreen.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210305153815.126937-1-vincent.knecht@mailoo.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Vincent Knecht and committed by
Dmitry Torokhov
2911ce35 e4791877

+69
+69
Documentation/devicetree/bindings/input/touchscreen/mstar,msg2638.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/input/touchscreen/mstar,msg2638.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MStar msg2638 touchscreen controller Bindings 8 + 9 + maintainers: 10 + - Vincent Knecht <vincent.knecht@mailoo.org> 11 + 12 + allOf: 13 + - $ref: touchscreen.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: mstar,msg2638 18 + 19 + reg: 20 + const: 0x26 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + reset-gpios: 26 + maxItems: 1 27 + 28 + vdd-supply: 29 + description: Power supply regulator for the chip 30 + 31 + vddio-supply: 32 + description: Power supply regulator for the I2C bus 33 + 34 + touchscreen-size-x: true 35 + touchscreen-size-y: true 36 + 37 + additionalProperties: false 38 + 39 + required: 40 + - compatible 41 + - reg 42 + - interrupts 43 + - reset-gpios 44 + - touchscreen-size-x 45 + - touchscreen-size-y 46 + 47 + examples: 48 + - | 49 + #include <dt-bindings/gpio/gpio.h> 50 + #include <dt-bindings/interrupt-controller/irq.h> 51 + i2c { 52 + #address-cells = <1>; 53 + #size-cells = <0>; 54 + touchscreen@26 { 55 + compatible = "mstar,msg2638"; 56 + reg = <0x26>; 57 + interrupt-parent = <&msmgpio>; 58 + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 59 + reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>; 60 + pinctrl-names = "default"; 61 + pinctrl-0 = <&ts_int_reset_default>; 62 + vdd-supply = <&pm8916_l17>; 63 + vddio-supply = <&pm8916_l5>; 64 + touchscreen-size-x = <2048>; 65 + touchscreen-size-y = <2048>; 66 + }; 67 + }; 68 + 69 + ...