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

dt-bindings: input: samsung,s6sy761: convert to DT schema

Convert Samsung S6SY761 touchscreen controller bindings to DT schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231111143221.55452-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Krzysztof Kozlowski and committed by
Dmitry Torokhov
ccb9e9dd 28d3fe32

+54 -32
-32
Documentation/devicetree/bindings/input/touchscreen/samsung,s6sy761.txt
··· 1 - * Samsung S6SY761 touchscreen controller 2 - 3 - Required properties: 4 - - compatible : must be "samsung,s6sy761" 5 - - reg : I2C slave address, (e.g. 0x48) 6 - - interrupts : interrupt specification 7 - - avdd-supply : analogic power supply 8 - - vdd-supply : power supply 9 - 10 - Optional properties: 11 - - touchscreen-size-x : see touchscreen.txt. This property is embedded in the 12 - device. If defined it forces a different x resolution. 13 - - touchscreen-size-y : see touchscreen.txt. This property is embedded in the 14 - device. If defined it forces a different y resolution. 15 - 16 - Example: 17 - 18 - i2c@00000000 { 19 - 20 - /* ... */ 21 - 22 - touchscreen@48 { 23 - compatible = "samsung,s6sy761"; 24 - reg = <0x48>; 25 - interrupt-parent = <&gpa1>; 26 - interrupts = <1 IRQ_TYPE_NONE>; 27 - avdd-supply = <&ldo30_reg>; 28 - vdd-supply = <&ldo31_reg>; 29 - touchscreen-size-x = <4096>; 30 - touchscreen-size-y = <4096>; 31 - }; 32 - };
+54
Documentation/devicetree/bindings/input/touchscreen/samsung,s6sy761.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/samsung,s6sy761.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Samsung S6SY761 touchscreen controller 8 + 9 + maintainers: 10 + - Andi Shyti <andi.shyti@kernel.org> 11 + 12 + allOf: 13 + - $ref: touchscreen.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: samsung,s6sy761 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + avdd-supply: true 26 + vdd-supply: true 27 + 28 + unevaluatedProperties: false 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - interrupts 34 + - avdd-supply 35 + - vdd-supply 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/interrupt-controller/irq.h> 40 + i2c { 41 + #address-cells = <1>; 42 + #size-cells = <0>; 43 + 44 + touchscreen@48 { 45 + compatible = "samsung,s6sy761"; 46 + reg = <0x48>; 47 + interrupt-parent = <&gpa1>; 48 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; 49 + avdd-supply = <&ldo30_reg>; 50 + vdd-supply = <&ldo31_reg>; 51 + touchscreen-size-x = <4096>; 52 + touchscreen-size-y = <4096>; 53 + }; 54 + };