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

dt-bindings: hwmon: as370: convert to dtschema

Convert existing binding to support validation.

This is a straightforward conversion with now new properties.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240322-hwmon_dtschema-v3-1-6697de2a8228@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Javier Carrasco and committed by
Guenter Roeck
e03d7350 1bad1943

+32 -11
-11
Documentation/devicetree/bindings/hwmon/as370.txt
··· 1 - Bindings for Synaptics AS370 PVT sensors 2 - 3 - Required properties: 4 - - compatible : "syna,as370-hwmon" 5 - - reg : address and length of the register set. 6 - 7 - Example: 8 - hwmon@ea0810 { 9 - compatible = "syna,as370-hwmon"; 10 - reg = <0xea0810 0xc>; 11 - };
+32
Documentation/devicetree/bindings/hwmon/syna,as370.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/hwmon/syna,as370.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Synaptics AS370 PVT sensors 8 + 9 + maintainers: 10 + - Javier Carrasco <javier.carrasco.cruz@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: syna,as370-hwmon 15 + 16 + reg: 17 + description: 18 + Address and length of the register set. 19 + maxItems: 1 20 + 21 + required: 22 + - compatible 23 + - reg 24 + 25 + additionalProperties: false 26 + 27 + examples: 28 + - | 29 + sensor@ea0810 { 30 + compatible = "syna,as370-hwmon"; 31 + reg = <0xea0810 0xc>; 32 + };