162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci%YAML 1.2
362306a36Sopenharmony_ci---
462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/gpio/rockchip,rk3328-grf-gpio.yaml#
562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
662306a36Sopenharmony_ci
762306a36Sopenharmony_cititle: Rockchip RK3328 General Register Files GPIO controller
862306a36Sopenharmony_ci
962306a36Sopenharmony_cidescription:
1062306a36Sopenharmony_ci  The Rockchip RK3328 General Register File (GRF) outputs only the
1162306a36Sopenharmony_ci  GPIO_MUTE pin, originally for codec mute control, but it can also be used
1262306a36Sopenharmony_ci  for general purpose. It is manipulated by the GRF_SOC_CON10 register.
1362306a36Sopenharmony_ci  If needed in the future support for the HDMI pins can also be added.
1462306a36Sopenharmony_ci  The GPIO node should be declared as the child of the GRF node.
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci  The GPIO_MUTE pin is referred to in the format
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci  <&grf_gpio 0 GPIO_ACTIVE_LOW>
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci  The first cell is the pin number and
2162306a36Sopenharmony_ci  the second cell is used to specify the GPIO polarity
2262306a36Sopenharmony_ci    0 = Active high
2362306a36Sopenharmony_ci    1 = Active low
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_cimaintainers:
2662306a36Sopenharmony_ci  - Heiko Stuebner <heiko@sntech.de>
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciproperties:
2962306a36Sopenharmony_ci  compatible:
3062306a36Sopenharmony_ci    const: rockchip,rk3328-grf-gpio
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci  gpio-controller: true
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci  "#gpio-cells":
3562306a36Sopenharmony_ci    const: 2
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_cirequired:
3862306a36Sopenharmony_ci  - compatible
3962306a36Sopenharmony_ci  - gpio-controller
4062306a36Sopenharmony_ci  - "#gpio-cells"
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ciadditionalProperties: false
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ciexamples:
4562306a36Sopenharmony_ci  - |
4662306a36Sopenharmony_ci    grf_gpio: gpio {
4762306a36Sopenharmony_ci      compatible = "rockchip,rk3328-grf-gpio";
4862306a36Sopenharmony_ci      gpio-controller;
4962306a36Sopenharmony_ci      #gpio-cells = <2>;
5062306a36Sopenharmony_ci    };
51