1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gpio/rockchip,rk3328-grf-gpio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Rockchip RK3328 General Register Files GPIO controller
8
9description:
10  The Rockchip RK3328 General Register File (GRF) outputs only the
11  GPIO_MUTE pin, originally for codec mute control, but it can also be used
12  for general purpose. It is manipulated by the GRF_SOC_CON10 register.
13  If needed in the future support for the HDMI pins can also be added.
14  The GPIO node should be declared as the child of the GRF node.
15
16  The GPIO_MUTE pin is referred to in the format
17
18  <&grf_gpio 0 GPIO_ACTIVE_LOW>
19
20  The first cell is the pin number and
21  the second cell is used to specify the GPIO polarity
22    0 = Active high
23    1 = Active low
24
25maintainers:
26  - Heiko Stuebner <heiko@sntech.de>
27
28properties:
29  compatible:
30    const: rockchip,rk3328-grf-gpio
31
32  gpio-controller: true
33
34  "#gpio-cells":
35    const: 2
36
37required:
38  - compatible
39  - gpio-controller
40  - "#gpio-cells"
41
42additionalProperties: false
43
44examples:
45  - |
46    grf_gpio: gpio {
47      compatible = "rockchip,rk3328-grf-gpio";
48      gpio-controller;
49      #gpio-cells = <2>;
50    };
51