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

dt-bindings: gpio: zynq: convert bindings to YAML

Convert gpio for Xilinx Zynq SoC bindings documentation to YAML.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

authored by

Nobuhiro Iwamatsu and committed by
Bartosz Golaszewski
45ca1607 c830b87a

+59 -36
-36
Documentation/devicetree/bindings/gpio/gpio-zynq.txt
··· 1 - Xilinx Zynq GPIO controller Device Tree Bindings 2 - ------------------------------------------- 3 - 4 - Required properties: 5 - - #gpio-cells : Should be two 6 - - First cell is the GPIO line number 7 - - Second cell is used to specify optional 8 - parameters (unused) 9 - - compatible : Should be "xlnx,zynq-gpio-1.0" or 10 - "xlnx,zynqmp-gpio-1.0" or "xlnx,versal-gpio-1.0 11 - or "xlnx,pmc-gpio-1.0 12 - - clocks : Clock specifier (see clock bindings for details) 13 - - gpio-controller : Marks the device node as a GPIO controller. 14 - - interrupts : Interrupt specifier (see interrupt bindings for 15 - details) 16 - - interrupt-controller : Marks the device node as an interrupt controller. 17 - - #interrupt-cells : Should be 2. The first cell is the GPIO number. 18 - The second cell bits[3:0] is used to specify trigger type and level flags: 19 - 1 = low-to-high edge triggered. 20 - 2 = high-to-low edge triggered. 21 - 4 = active high level-sensitive. 22 - 8 = active low level-sensitive. 23 - - reg : Address and length of the register set for the device 24 - 25 - Example: 26 - gpio@e000a000 { 27 - #gpio-cells = <2>; 28 - compatible = "xlnx,zynq-gpio-1.0"; 29 - clocks = <&clkc 42>; 30 - gpio-controller; 31 - interrupt-parent = <&intc>; 32 - interrupts = <0 20 4>; 33 - interrupt-controller; 34 - #interrupt-cells = <2>; 35 - reg = <0xe000a000 0x1000>; 36 - };
+59
Documentation/devicetree/bindings/gpio/gpio-zynq.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/gpio/gpio-zynq.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Xilinx Zynq GPIO controller Device Tree Bindings 8 + 9 + maintainers: 10 + - Michal Simek <michal.simek@xilinx.com> 11 + 12 + properties: 13 + compatible: 14 + const: xlnx,zynq-gpio-1.0 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + "#gpio-cells": 20 + const: 2 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + gpio-controller: true 26 + 27 + interrupt-controller: true 28 + 29 + "#interrupt-cells": 30 + const: 2 31 + 32 + clocks: 33 + maxItems: 1 34 + 35 + required: 36 + - compatible 37 + - reg 38 + - "#gpio-cells" 39 + - interrupts 40 + - gpio-controller 41 + - interrupt-controller 42 + - "#interrupt-cells" 43 + - clocks 44 + 45 + additionalProperties: false 46 + 47 + examples: 48 + - | 49 + gpio@e000a000 { 50 + #gpio-cells = <2>; 51 + compatible = "xlnx,zynq-gpio-1.0"; 52 + clocks = <&clkc 42>; 53 + gpio-controller; 54 + interrupt-parent = <&intc>; 55 + interrupts = <0 20 4>; 56 + interrupt-controller; 57 + #interrupt-cells = <2>; 58 + reg = <0xe000a000 0x1000>; 59 + };