forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ib-nomadik-gpio' into devel
- Loading branch information
Showing
11 changed files
with
1,104 additions
and
863 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
95 changes: 95 additions & 0 deletions
95
Documentation/devicetree/bindings/gpio/st,nomadik-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,95 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/gpio/st,nomadik-gpio.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Nomadik GPIO controller | ||
|
||
description: | ||
The Nomadik GPIO driver handles Nomadik SoC GPIO blocks. This block has also | ||
been called ST STA2X11. On the Nomadik platform, this driver is intertwined | ||
with pinctrl-nomadik. | ||
|
||
maintainers: | ||
- Linus Walleij <[email protected]> | ||
|
||
properties: | ||
$nodename: | ||
pattern: "^gpio@[0-9a-f]+$" | ||
|
||
compatible: | ||
enum: | ||
- st,nomadik-gpio | ||
- mobileye,eyeq5-gpio | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
"#gpio-cells": | ||
const: 2 | ||
|
||
gpio-controller: true | ||
|
||
interrupt-controller: true | ||
|
||
"#interrupt-cells": | ||
const: 2 | ||
|
||
gpio-bank: | ||
description: System-wide GPIO bank index. | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
|
||
st,supports-sleepmode: | ||
description: Whether the controller can sleep or not. | ||
$ref: /schemas/types.yaml#/definitions/flag | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
gpio-ranges: | ||
maxItems: 1 | ||
|
||
ngpios: | ||
minimum: 0 | ||
maximum: 32 | ||
|
||
resets: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- "#gpio-cells" | ||
- gpio-controller | ||
- interrupt-controller | ||
- gpio-bank | ||
|
||
unevaluatedProperties: false | ||
|
||
allOf: | ||
- if: | ||
properties: | ||
compatible: | ||
contains: | ||
const: mobileye,eyeq5-gpio | ||
then: | ||
properties: | ||
st,supports-sleepmode: false | ||
|
||
examples: | ||
- | | ||
gpio@8012e080 { | ||
compatible = "st,nomadik-gpio"; | ||
reg = <0x8012e080 0x80>; | ||
interrupts = <0 120 0x4>; | ||
#gpio-cells = <2>; | ||
gpio-controller; | ||
interrupt-controller; | ||
st,supports-sleepmode; | ||
gpio-bank = <1>; | ||
}; |
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
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
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
Oops, something went wrong.