Skip to content

Commit d7f4a65

Browse files
Piyush Mehtabrgl
authored andcommitted
dt-bindings: gpio: zynqmp: Add binding documentation for modepin
This patch adds DT binding document for zynqmp modepin GPIO controller. Modepin GPIO controller has four GPIO pins which can be configurable as input or output. Modepin driver is a bridge between the peripheral driver and GPIO pins. It has set and get APIs for accessing GPIO pins, based on the device-tree entry of reset-gpio property in the peripheral driver, every pin can be configured as input/output and trigger GPIO pin. For more information please refer zynqMp TRM link: Link: https://www.xilinx.com/support/documentation/user_guides/ug1085-zynq-ultrascale-trm.pdf Chapter 2: Signals, Interfaces, and Pins Table 2-2: Clock, Reset, and Configuration Pins - PS_MODE Signed-off-by: Piyush Mehta <[email protected]> Acked-by: Michal Simek <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 23c64d7 commit d7f4a65

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: "http://devicetree.org/schemas/gpio/xlnx,zynqmp-gpio-modepin.yaml#"
5+
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6+
7+
title: ZynqMP Mode Pin GPIO controller
8+
9+
description:
10+
PS_MODE is 4-bits boot mode pins sampled on POR deassertion. Mode Pin
11+
GPIO controller with configurable from numbers of pins (from 0 to 3 per
12+
PS_MODE). Every pin can be configured as input/output.
13+
14+
maintainers:
15+
- Piyush Mehta <[email protected]>
16+
17+
properties:
18+
compatible:
19+
const: xlnx,zynqmp-gpio-modepin
20+
21+
gpio-controller: true
22+
23+
"#gpio-cells":
24+
const: 2
25+
26+
required:
27+
- compatible
28+
- gpio-controller
29+
- "#gpio-cells"
30+
31+
additionalProperties: false
32+
33+
examples:
34+
- |
35+
zynqmp-firmware {
36+
gpio {
37+
compatible = "xlnx,zynqmp-gpio-modepin";
38+
gpio-controller;
39+
#gpio-cells = <2>;
40+
};
41+
};
42+
43+
...

0 commit comments

Comments
 (0)