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