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