mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
Remove legacy binding egalax-ts.txt file. And add compatible string eeti,egalax_ts and wakeup-gpios to eeti,exc3000.yaml. "eeti,egalax_ts" is general compatible string, which is not preferred. But it is compatible with old devices (older than 10 years) and existing driver in drivers/input/touchscreen/egalax_ts.c. Allow address 0x4 for eeti,egalax_ts. Don't require touchscreen-size-x(y) for eeti,egalax_ts. Keep the same restriction for existing compatible string. Fix below DTB_CHECKS warnings: arch/arm/boot/dts/nxp/imx/imx6dl-gw52xx.dtb: /soc/bus@2100000/i2c@21a8000/egalax_ts@4: failed to match any schema with compatible: ['eeti,egalax_ts'] Signed-off-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250904171543.517650-1-Frank.Li@nxp.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
83 lines
1.8 KiB
YAML
83 lines
1.8 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/input/touchscreen/eeti,exc3000.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: EETI EXC3000 series touchscreen controller
|
|
|
|
maintainers:
|
|
- Dmitry Torokhov <dmitry.torokhov@gmail.com>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: eeti,exc3000
|
|
- const: eeti,exc80h60
|
|
- const: eeti,exc80h84
|
|
- const: eeti,egalax_ts # Do NOT use for new binding
|
|
- items:
|
|
- enum:
|
|
- eeti,exc81w32
|
|
- const: eeti,exc80h84
|
|
reg:
|
|
enum: [0x4, 0x2a]
|
|
interrupts:
|
|
maxItems: 1
|
|
reset-gpios:
|
|
maxItems: 1
|
|
wakeup-gpios:
|
|
maxItems: 1
|
|
vdd-supply:
|
|
description: Power supply regulator for the chip
|
|
touchscreen-size-x: true
|
|
touchscreen-size-y: true
|
|
touchscreen-inverted-x: true
|
|
touchscreen-inverted-y: true
|
|
touchscreen-swapped-x-y: true
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
|
|
additionalProperties: false
|
|
|
|
allOf:
|
|
- $ref: touchscreen.yaml#
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
not:
|
|
contains:
|
|
const: eeti,egalax_ts
|
|
then:
|
|
properties:
|
|
reg:
|
|
const: 0x2a
|
|
|
|
wakeup-gpios: false
|
|
|
|
required:
|
|
- touchscreen-size-x
|
|
- touchscreen-size-y
|
|
|
|
examples:
|
|
- |
|
|
#include "dt-bindings/interrupt-controller/irq.h"
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
touchscreen@2a {
|
|
compatible = "eeti,exc3000";
|
|
reg = <0x2a>;
|
|
interrupt-parent = <&gpio1>;
|
|
interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
|
|
touchscreen-size-x = <4096>;
|
|
touchscreen-size-y = <4096>;
|
|
touchscreen-inverted-x;
|
|
touchscreen-swapped-x-y;
|
|
};
|
|
};
|