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.
Merge tag 'gpio-updates-for-v5.13-v2' of git://git.kernel.org/pub/scm…
…/linux/kernel/git/brgl/linux Pull gpio updates from Bartosz Golaszewski: - new driver for the Realtek Otto GPIO controller - ACPI support for gpio-mpc8xxx - edge event support for gpio-sch (+ Kconfig fixes) - Kconfig improvements in gpio-ich - fixes to older issues in gpio-mockup - ACPI quirk for ignoring EC wakeups on Dell Venue 10 Pro 5055 - improve the GPIO aggregator code by using more generic interfaces instead of reimplementing them in the driver - convert the DT bindings for gpio-74x164 to yaml - documentation improvements - a slew of other minor fixes and improvements to GPIO drivers * tag 'gpio-updates-for-v5.13-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: (34 commits) dt-bindings: gpio: add YAML description for rockchip,gpio-bank gpio: mxs: remove useless function dt-bindings: gpio: fairchild,74hc595: Convert to json-schema gpio: it87: remove unused code gpio: 104-dio-48e: Fix coding style issues gpio: mpc8xxx: Add ACPI support gpio: ich: Switch to be dependent on LPC_ICH gpio: sch: Drop MFD_CORE selection gpio: sch: depends on LPC_SCH gpiolib: acpi: Add quirk to ignore EC wakeups on Dell Venue 10 Pro 5055 gpio: sch: Hook into ACPI GPE handler to catch GPIO edge events gpio: sch: Add edge event support gpio: aggregator: Replace custom get_arg() with a generic next_arg() lib/cmdline: Export next_arg() for being used in modules gpio: omap: Use device_get_match_data() helper gpio: Add Realtek Otto GPIO support dt-bindings: gpio: Binding for Realtek Otto GPIO docs: kernel-parameters: Add gpio_mockup_named_lines docs: kernel-parameters: Move gpio-mockup for alphabetic order lib: bitmap: provide devm_bitmap_alloc() and devm_bitmap_zalloc() ...
- Loading branch information
Showing
33 changed files
with
1,068 additions
and
350 deletions.
There are no files selected for viewing
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
77 changes: 77 additions & 0 deletions
77
Documentation/devicetree/bindings/gpio/fairchild,74hc595.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,77 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/gpio/fairchild,74hc595.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Generic 8-bit shift register | ||
|
||
maintainers: | ||
- Maxime Ripard <[email protected]> | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- fairchild,74hc595 | ||
- nxp,74lvc594 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
gpio-controller: true | ||
|
||
'#gpio-cells': | ||
description: | ||
The second cell is only used to specify the GPIO polarity. | ||
const: 2 | ||
|
||
registers-number: | ||
description: Number of daisy-chained shift registers | ||
|
||
enable-gpios: | ||
description: GPIO connected to the OE (Output Enable) pin. | ||
maxItems: 1 | ||
|
||
spi-max-frequency: true | ||
|
||
patternProperties: | ||
"^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": | ||
type: object | ||
|
||
properties: | ||
gpio-hog: true | ||
gpios: true | ||
output-high: true | ||
output-low: true | ||
line-name: true | ||
|
||
required: | ||
- gpio-hog | ||
- gpios | ||
|
||
additionalProperties: false | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- gpio-controller | ||
- '#gpio-cells' | ||
- registers-number | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
spi { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
gpio5: gpio5@0 { | ||
compatible = "fairchild,74hc595"; | ||
reg = <0>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
registers-number = <4>; | ||
spi-max-frequency = <100000>; | ||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.
78 changes: 78 additions & 0 deletions
78
Documentation/devicetree/bindings/gpio/realtek,otto-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,78 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/gpio/realtek,otto-gpio.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Realtek Otto GPIO controller | ||
|
||
maintainers: | ||
- Sander Vanheule <[email protected]> | ||
- Bert Vermeulen <[email protected]> | ||
|
||
description: | | ||
Realtek's GPIO controller on their MIPS switch SoCs (Otto platform) consists | ||
of two banks of 32 GPIOs. These GPIOs can generate edge-triggered interrupts. | ||
Each bank's interrupts are cascased into one interrupt line on the parent | ||
interrupt controller, if provided. | ||
This binding allows defining a single bank in the devicetree. The interrupt | ||
controller is not supported on the fallback compatible name, which only | ||
allows for GPIO port use. | ||
properties: | ||
$nodename: | ||
pattern: "^gpio@[0-9a-f]+$" | ||
|
||
compatible: | ||
items: | ||
- enum: | ||
- realtek,rtl8380-gpio | ||
- realtek,rtl8390-gpio | ||
- const: realtek,otto-gpio | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
"#gpio-cells": | ||
const: 2 | ||
|
||
gpio-controller: true | ||
|
||
ngpios: | ||
minimum: 1 | ||
maximum: 32 | ||
|
||
interrupt-controller: true | ||
|
||
"#interrupt-cells": | ||
const: 2 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#gpio-cells" | ||
- gpio-controller | ||
|
||
additionalProperties: false | ||
|
||
dependencies: | ||
interrupt-controller: [ interrupts ] | ||
|
||
examples: | ||
- | | ||
gpio@3500 { | ||
compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio"; | ||
reg = <0x3500 0x1c>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
ngpios = <24>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
interrupt-parent = <&rtlintc>; | ||
interrupts = <23>; | ||
}; | ||
... |
82 changes: 82 additions & 0 deletions
82
Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.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,82 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/gpio/rockchip,gpio-bank.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Rockchip GPIO bank | ||
|
||
maintainers: | ||
- Heiko Stuebner <[email protected]> | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- rockchip,gpio-bank | ||
- rockchip,rk3188-gpio-bank0 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
gpio-controller: true | ||
|
||
"#gpio-cells": | ||
const: 2 | ||
|
||
interrupt-controller: true | ||
|
||
"#interrupt-cells": | ||
const: 2 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- clocks | ||
- gpio-controller | ||
- "#gpio-cells" | ||
- interrupt-controller | ||
- "#interrupt-cells" | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
pinctrl: pinctrl { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges; | ||
gpio0: gpio@2000a000 { | ||
compatible = "rockchip,rk3188-gpio-bank0"; | ||
reg = <0x2000a000 0x100>; | ||
interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clk_gates8 9>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
gpio1: gpio@2003c000 { | ||
compatible = "rockchip,gpio-bank"; | ||
reg = <0x2003c000 0x100>; | ||
interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clk_gates8 10>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
}; |
Oops, something went wrong.