forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: gpio: convert rk3328-grf-gpio.txt to YAML
Current dts files with RK3328 GRF 'gpio' nodes are manually verified. In order to automate this process rk3328-grf-gpio.txt has to be converted to YAML. Rename 'grf-gpio' nodename to 'gpio'. Signed-off-by: Johan Jonker <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
- Loading branch information
Showing
2 changed files
with
50 additions
and
32 deletions.
There are no files selected for viewing
32 changes: 0 additions & 32 deletions
32
Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.txt
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/gpio/rockchip,rk3328-grf-gpio.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Rockchip RK3328 General Register Files GPIO controller | ||
|
||
description: | ||
The Rockchip RK3328 General Register File (GRF) outputs only the | ||
GPIO_MUTE pin, originally for codec mute control, but it can also be used | ||
for general purpose. It is manipulated by the GRF_SOC_CON10 register. | ||
If needed in the future support for the HDMI pins can also be added. | ||
The GPIO node should be declared as the child of the GRF node. | ||
|
||
The GPIO_MUTE pin is referred to in the format | ||
|
||
<&grf_gpio 0 GPIO_ACTIVE_LOW> | ||
|
||
The first cell is the pin number and | ||
the second cell is used to specify the GPIO polarity | ||
0 = Active high | ||
1 = Active low | ||
|
||
maintainers: | ||
- Heiko Stuebner <[email protected]> | ||
|
||
properties: | ||
compatible: | ||
const: rockchip,rk3328-grf-gpio | ||
|
||
gpio-controller: true | ||
|
||
"#gpio-cells": | ||
const: 2 | ||
|
||
required: | ||
- compatible | ||
- gpio-controller | ||
- "#gpio-cells" | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
grf_gpio: gpio { | ||
compatible = "rockchip,rk3328-grf-gpio"; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
}; |