devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: serial: sc16is7xx: add reset-gpios
@ 2024-06-03 12:37 Hui Wang
  2024-06-03 12:37 ` [PATCH 2/2] serial: sc16is7xx: setup reset pin if it is defined in device tree Hui Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Hui Wang @ 2024-06-03 12:37 UTC (permalink / raw)
  To: linux-serial, devicetree, gregkh; +Cc: jirislaby, hvilleneuve, hui.wang

In some designs, the chip reset pin is connected to a gpio, this
gpio needs to be set correctly before probing the driver, so adding
a reset-gpios in the device tree.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
---
 Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml b/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml
index 5dec15b7e7c3..62aff6e034cb 100644
--- a/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml
+++ b/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml
@@ -28,6 +28,9 @@ properties:
   clocks:
     maxItems: 1
 
+  reset-gpios:
+    maxItems: 1
+
   clock-frequency:
     description:
       When there is no clock provider visible to the platform, this
@@ -120,6 +123,7 @@ examples:
             compatible = "nxp,sc16is752";
             reg = <0x54>;
             clocks = <&clk20m>;
+            reset-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
             interrupt-parent = <&gpio3>;
             interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
             nxp,modem-control-line-ports = <0 1>; /* Ports 0 and 1 as modem control lines */
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-06-04 10:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-03 12:37 [PATCH 1/2] dt-bindings: serial: sc16is7xx: add reset-gpios Hui Wang
2024-06-03 12:37 ` [PATCH 2/2] serial: sc16is7xx: setup reset pin if it is defined in device tree Hui Wang
2024-06-03 13:11   ` Hugo Villeneuve
2024-06-04 10:34     ` Hui Wang
2024-06-03 13:18 ` [PATCH 1/2] dt-bindings: serial: sc16is7xx: add reset-gpios Rob Herring
2024-06-04 10:35   ` Hui Wang
2024-06-04  6:54 ` Krzysztof Kozlowski
2024-06-04 10:35   ` Hui Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).