mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-08 09:39:40 +00:00
8616f7ee2c
The X-Powers AXP PMICs feature a GPIO Controller supported by Linux thanks to its device tree binding. Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema. Cc: Chen-Yu Tsai <wens@csie.org> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: linux-gpio@vger.kernel.org Signed-off-by: Maxime Ripard <maxime@cerno.tech> Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20210924071614.868307-1-maxime@cerno.tech
55 lines
1 KiB
YAML
55 lines
1 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: "http://devicetree.org/schemas/gpio/x-powers,axp209-gpio.yaml#"
|
|
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
|
|
|
|
title: X-Powers AXP209 GPIO Device Tree Bindings
|
|
|
|
maintainers:
|
|
- Chen-Yu Tsai <wens@csie.org>
|
|
|
|
properties:
|
|
"#gpio-cells":
|
|
const: 2
|
|
description: >
|
|
The first cell is the pin number and the second is the GPIO flags.
|
|
|
|
compatible:
|
|
oneOf:
|
|
- enum:
|
|
- x-powers,axp209-gpio
|
|
- x-powers,axp813-gpio
|
|
- items:
|
|
- const: x-powers,axp803-gpio
|
|
- const: x-powers,axp813-gpio
|
|
|
|
gpio-controller: true
|
|
|
|
patternProperties:
|
|
"^.*-pins?$":
|
|
$ref: /schemas/pinctrl/pinmux-node.yaml#
|
|
|
|
properties:
|
|
pins:
|
|
items:
|
|
enum:
|
|
- GPIO0
|
|
- GPIO1
|
|
- GPIO2
|
|
|
|
function:
|
|
enum:
|
|
- adc
|
|
- ldo
|
|
- gpio_in
|
|
- gpio_out
|
|
|
|
required:
|
|
- compatible
|
|
- "#gpio-cells"
|
|
- gpio-controller
|
|
|
|
additionalProperties: false
|
|
|
|
...
|