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 <conor.dooley@microchip.com> Reviewed-by: Lech Perczak <lech.perczak@camlingroup.com> Tested-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Reviewed-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Signed-off-by: Hui Wang <hui.wang@canonical.com> Link: https://lore.kernel.org/r/20240618112620.152848-1-hui.wang@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 418af7e commit a9411ef

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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)