提交 01a9350b 编写于 作者: L Lars Povlsen 提交者: Linus Walleij

dt-bindings: pinctrl: pinctrl-microchip-sgpio: Add irq support

This describe the new bindings for the added IRQ support in the
pinctrl-microchip-sgpio driver.
Signed-off-by: NLars Povlsen <lars.povlsen@microchip.com>
Reviewed-by: NRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201209142753.683208-3-lars.povlsen@microchip.comSigned-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 be2dc859
...@@ -91,6 +91,18 @@ patternProperties: ...@@ -91,6 +91,18 @@ patternProperties:
controlled indirectly by the "ngpios" property: (ngpios/32). controlled indirectly by the "ngpios" property: (ngpios/32).
const: 3 const: 3
interrupts:
description: Specifies the sgpio IRQ (in parent controller)
maxItems: 1
interrupt-controller: true
'#interrupt-cells':
description:
Specifies the pin (port and bit) and flags, as defined in
defined in include/dt-bindings/interrupt-controller/irq.h
const: 3
ngpios: ngpios:
description: The numbers of GPIO's exposed. This must be a description: The numbers of GPIO's exposed. This must be a
multiple of 32. multiple of 32.
...@@ -118,6 +130,7 @@ required: ...@@ -118,6 +130,7 @@ required:
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h>
sgpio2: gpio@1101059c { sgpio2: gpio@1101059c {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -134,6 +147,9 @@ examples: ...@@ -134,6 +147,9 @@ examples:
gpio-controller; gpio-controller;
#gpio-cells = <3>; #gpio-cells = <3>;
ngpios = <96>; ngpios = <96>;
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
#interrupt-cells = <3>;
}; };
sgpio_out2: gpio@1 { sgpio_out2: gpio@1 {
compatible = "microchip,sparx5-sgpio-bank"; compatible = "microchip,sparx5-sgpio-bank";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册