]> Git Repo - J-linux.git/commitdiff
dt-bindings: serial: sc16is7xx: add reset-gpios
authorHui Wang <[email protected]>
Tue, 18 Jun 2024 11:26:19 +0000 (19:26 +0800)
committerGreg Kroah-Hartman <[email protected]>
Mon, 24 Jun 2024 14:10:36 +0000 (16:10 +0200)
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]>
Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml

index 5dec15b7e7c39af75604bd08ec1c1f14a19d953e..88871480018e22830e1d2edd19face6e33cd1ca5 100644 (file)
@@ -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
@@ -91,6 +94,7 @@ unevaluatedProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/gpio/gpio.h>
     i2c {
         #address-cells = <1>;
         #size-cells = <0>;
@@ -120,6 +124,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 */
This page took 0.061583 seconds and 4 git commands to generate.