From: YİĞİTCAN KAVAKLI <[email protected]> Add devicetree binding documentation for the Novatek NT36672A SPI touchscreen controller.
The binding supports standard SPI peripheral properties, interrupt configuration, the optional 'panel' phandle for DRM panel follower synchronization, and an optional 'firmware-name' property. Signed-off-by: YİĞİTCAN KAVAKLI <[email protected]> --- .../input/touchscreen/novatek,nt36672a-spi.yaml | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/novatek,nt36672a-spi.yaml b/Documentation/devicetree/bindings/input/touchscreen/novatek,nt36672a-spi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0d89d60f2a93d26e2f7903371ecc6eb9ed683b33 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/novatek,nt36672a-spi.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/novatek,nt36672a-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Novatek NT36672A SPI Touchscreen Controller + +maintainers: + - Dmitry Torokhov <[email protected]> + +description: + The Novatek NT36672A TDDI controller is connected over SPI for touchscreen + interaction, with host-downloaded firmware into controller SRAM. It integrates + with the display panel lifecycle using the DRM panel follower API. + +allOf: + - $ref: touchscreen.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - novatek,nt36672a-spi + - novatek,nt36672a-ts + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + spi-max-frequency: true + + panel: + description: phandle of the display panel that this touchscreen follows. + $ref: /schemas/types.yaml#/definitions/phandle + + firmware-name: + description: Name of the firmware file to load into controller SRAM. + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + spi { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@0 { + compatible = "novatek,nt36672a-spi"; + reg = <0>; + spi-max-frequency = <4000000>; + interrupts = <88 IRQ_TYPE_EDGE_RISING>; + panel = <&panel>; + touchscreen-size-x = <1080>; + touchscreen-size-y = <2340>; + }; + }; +... -- 2.47.3
