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

dt-bindings: input: max77650: convert the binding document to yaml

Convert the binding document for MAX77650 onkey module to YAML.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Bartosz Golaszewski and committed by
Rob Herring
b8fee802 b00e14c5

+35 -26
-26
Documentation/devicetree/bindings/input/max77650-onkey.txt
··· 1 - Onkey driver for MAX77650 PMIC from Maxim Integrated. 2 - 3 - This module is part of the MAX77650 MFD device. For more details 4 - see Documentation/devicetree/bindings/mfd/max77650.txt. 5 - 6 - The onkey controller is represented as a sub-node of the PMIC node on 7 - the device tree. 8 - 9 - Required properties: 10 - -------------------- 11 - - compatible: Must be "maxim,max77650-onkey". 12 - 13 - Optional properties: 14 - - linux,code: The key-code to be reported when the key is pressed. 15 - Defaults to KEY_POWER. 16 - - maxim,onkey-slide: The system's button is a slide switch, not the default 17 - push button. 18 - 19 - Example: 20 - -------- 21 - 22 - onkey { 23 - compatible = "maxim,max77650-onkey"; 24 - linux,code = <KEY_END>; 25 - maxim,onkey-slide; 26 - };
+35
Documentation/devicetree/bindings/input/max77650-onkey.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/input/max77650-onkey.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Onkey driver for MAX77650 PMIC from Maxim Integrated. 8 + 9 + maintainers: 10 + - Bartosz Golaszewski <bgolaszewski@baylibre.com> 11 + 12 + description: | 13 + This module is part of the MAX77650 MFD device. For more details 14 + see Documentation/devicetree/bindings/mfd/max77650.yaml. 15 + 16 + The onkey controller is represented as a sub-node of the PMIC node on 17 + the device tree. 18 + 19 + properties: 20 + compatible: 21 + const: maxim,max77650-onkey 22 + 23 + linux,code: 24 + $ref: /schemas/types.yaml#/definitions/uint32 25 + description: 26 + The key-code to be reported when the key is pressed. Defaults 27 + to KEY_POWER. 28 + 29 + maxim,onkey-slide: 30 + $ref: /schemas/types.yaml#/definitions/flag 31 + description: 32 + The system's button is a slide switch, not the default push button. 33 + 34 + required: 35 + - compatible