Skip to content

Commit a9411ef

Browse files
jason77-wanggregkh
authored andcommitted
dt-bindings: serial: sc16is7xx: add reset-gpios
In some designs, the chip reset pin is connected to a GPIO, and this GPIO needs to be set correctly before probing the driver, so add a reset-gpios in the device tree. Acked-by: Conor Dooley <[email protected]> Reviewed-by: Lech Perczak <[email protected]> Tested-by: Hugo Villeneuve <[email protected]> Reviewed-by: Hugo Villeneuve <[email protected]> Signed-off-by: Hui Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 418af7e commit a9411ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ properties:
2828
clocks:
2929
maxItems: 1
3030

31+
reset-gpios:
32+
maxItems: 1
33+
3134
clock-frequency:
3235
description:
3336
When there is no clock provider visible to the platform, this
@@ -91,6 +94,7 @@ unevaluatedProperties: false
9194
examples:
9295
- |
9396
#include <dt-bindings/interrupt-controller/irq.h>
97+
#include <dt-bindings/gpio/gpio.h>
9498
i2c {
9599
#address-cells = <1>;
96100
#size-cells = <0>;
@@ -120,6 +124,7 @@ examples:
120124
compatible = "nxp,sc16is752";
121125
reg = <0x54>;
122126
clocks = <&clk20m>;
127+
reset-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
123128
interrupt-parent = <&gpio3>;
124129
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
125130
nxp,modem-control-line-ports = <0 1>; /* Ports 0 and 1 as modem control lines */

0 commit comments

Comments
 (0)