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

dt-bindings: input: touchscreen: convert lpc32xx-tsc.txt to yaml format

Convert lpc32xx-tsc.txt to yaml format.

Additional changes:
- add clocks and put it into required list to match existed lpc32xx.dtsi.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250625163431.2543597-1-Frank.Li@nxp.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Frank Li and committed by
Dmitry Torokhov
36b624b9 a95ef019

+43 -16
-16
Documentation/devicetree/bindings/input/touchscreen/lpc32xx-tsc.txt
··· 1 - * NXP LPC32xx SoC Touchscreen Controller (TSC) 2 - 3 - Required properties: 4 - - compatible: must be "nxp,lpc3220-tsc" 5 - - reg: physical base address of the controller and length of memory mapped 6 - region. 7 - - interrupts: The TSC/ADC interrupt 8 - 9 - Example: 10 - 11 - tsc@40048000 { 12 - compatible = "nxp,lpc3220-tsc"; 13 - reg = <0x40048000 0x1000>; 14 - interrupt-parent = <&mic>; 15 - interrupts = <39 0>; 16 - };
+43
Documentation/devicetree/bindings/input/touchscreen/nxp,lpc3220-tsc.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/nxp,lpc3220-tsc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP LPC32xx SoC Touchscreen Controller (TSC) 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + const: nxp,lpc3220-tsc 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + clocks: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + required: 26 + - compatible 27 + - reg 28 + - clocks 29 + - interrupts 30 + 31 + additionalProperties: false 32 + 33 + examples: 34 + - | 35 + #include <dt-bindings/clock/lpc32xx-clock.h> 36 + 37 + touchscreen@40048000 { 38 + compatible = "nxp,lpc3220-tsc"; 39 + reg = <0x40048000 0x1000>; 40 + interrupt-parent = <&mic>; 41 + interrupts = <39 0>; 42 + clocks = <&clk LPC32XX_CLK_ADC>; 43 + };