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