MStar msg2638 touchscreen controller
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/mstar,msg2638.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vincent Knecht <vincent.knecht@mailoo.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mstar,msg2138", "mstar,msg2638"
reg — required here #
Exact value (const): 38
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Power supply regulator for the chip
vddio-supply — not listed as required here #
Power supply regulator for the I2C bus
touchscreen-size-x — required here #
true — No constraints added by this property rule.
touchscreen-size-y — required here #
true — No constraints added by this property rule.
linux,keycodes — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "reset-gpios", "touchscreen-size-x", "touchscreen-size-y"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@26 {
compatible = "mstar,msg2638";
reg = <0x26>;
interrupt-parent = <&msmgpio>;
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&ts_int_reset_default>;
vdd-supply = <&pm8916_l17>;
vddio-supply = <&pm8916_l5>;
touchscreen-size-x = <2048>;
touchscreen-size-y = <2048>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)