Commit 5076372d authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Chanwoo Choi

dt-bindings: extcon: ptn5150: Use generic "interrupts" property

Interrupts do not have to be always GPIO based so instead of expecting
"int-gpios" property and converting the GPIO to an interrupt, just
accept any interrupt via generic "interrupts" property.

Mark the old "int-gpios" as deprecated.
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: default avatarVijai Kumar K <vijaikumar.kanagarajan@gmail.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent c7eb1131
......@@ -19,8 +19,13 @@ properties:
const: nxp,ptn5150
int-gpios:
deprecated: true
description:
GPIO pin (input) connected to the PTN5150's INTB pin.
Use "interrupts" instead.
interrupts:
maxItems: 1
reg:
maxItems: 1
......@@ -31,7 +36,7 @@ properties:
required:
- compatible
- int-gpios
- interrupts
- reg
- vbus-gpios
......@@ -40,6 +45,7 @@ additionalProperties: false
examples:
- |
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
......@@ -47,7 +53,8 @@ examples:
ptn5150@1d {
compatible = "nxp,ptn5150";
reg = <0x1d>;
int-gpios = <&msmgpio 78 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&msmgpio>;
interrupts = <78 IRQ_TYPE_LEVEL_HIGH>;
vbus-gpios = <&msmgpio 148 GPIO_ACTIVE_HIGH>;
};
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment