]> git.ipfire.org Git - thirdparty/u-boot.git/blob - Bindings/gpio/realtek,rtd-gpio.yaml
Squashed 'dts/upstream/' changes from aaba2d45dc2a..b35b9bd1d4ee
[thirdparty/u-boot.git] / Bindings / gpio / realtek,rtd-gpio.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2023 Realtek Semiconductor Corporation
3 %YAML 1.2
4 ---
5 $id: http://devicetree.org/schemas/gpio/realtek,rtd-gpio.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
7
8 title: Realtek DHC GPIO controller
9
10 maintainers:
11 - Tzuyi Chang <tychang@realtek.com>
12
13 description:
14 The GPIO controller is designed for the Realtek DHC (Digital Home Center)
15 RTD series SoC family, which are high-definition media processor SoCs.
16
17 properties:
18 compatible:
19 enum:
20 - realtek,rtd1295-misc-gpio
21 - realtek,rtd1295-iso-gpio
22 - realtek,rtd1315e-iso-gpio
23 - realtek,rtd1319-iso-gpio
24 - realtek,rtd1319d-iso-gpio
25 - realtek,rtd1395-iso-gpio
26 - realtek,rtd1619-iso-gpio
27 - realtek,rtd1619b-iso-gpio
28
29 reg:
30 items:
31 - description: GPIO controller registers
32 - description: GPIO interrupt registers
33
34 interrupts:
35 items:
36 - description: Interrupt number of the assert GPIO interrupt, which is
37 triggered when there is a rising edge.
38 - description: Interrupt number of the deassert GPIO interrupt, which is
39 triggered when there is a falling edge.
40
41 gpio-ranges: true
42
43 gpio-controller: true
44
45 "#gpio-cells":
46 const: 2
47
48 required:
49 - compatible
50 - reg
51 - interrupts
52 - gpio-ranges
53 - gpio-controller
54 - "#gpio-cells"
55
56 additionalProperties: false
57
58 examples:
59 - |
60 gpio@100 {
61 compatible = "realtek,rtd1319d-iso-gpio";
62 reg = <0x100 0x100>,
63 <0x0 0xb0>;
64 interrupt-parent = <&iso_irq_mux>;
65 interrupts = <19>, <20>;
66 gpio-ranges = <&pinctrl 0 0 82>;
67 gpio-controller;
68 #gpio-cells = <2>;
69 };