* [PATCH v2] dt-bindings: gnss: u-blox: use open-drain reset and safeboot in example
@ 2025-11-14 15:54 Johan Hovold
2025-11-17 19:15 ` Conor Dooley
2025-11-20 15:54 ` Johan Hovold
0 siblings, 2 replies; 3+ messages in thread
From: Johan Hovold @ 2025-11-14 15:54 UTC (permalink / raw)
To: Johan Hovold
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alejandro Enrique,
devicetree, linux-kernel
The RESET_N and SAFEBOOT_N pins should typically be left open and only
be connected to ground in rare cases where a device is misbehaving.
Specify GPIO_OPEN_DRAIN in the example as this is what should generally
be used.
Note that the current Linux driver implementation depends on these pins
being declared open-drain so that they are not driven while the main
supply is off.
Signed-off-by: Johan Hovold <johan@kernel.org>
---
Changes in v2:
- declare the pins as both active-low and open-drain (as the former is
no longer implied by the latter)
Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
index 9f14cfe7efd1..d016808f65cb 100644
--- a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
+++ b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
@@ -67,7 +67,7 @@ examples:
compatible = "u-blox,neo-8";
v-bckp-supply = <&gnss_v_bckp_reg>;
vcc-supply = <&gnss_vcc_reg>;
- reset-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
- safeboot-gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
+ reset-gpios = <&gpio 1 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
+ safeboot-gpios = <&gpio 2 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
};
};
--
2.51.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] dt-bindings: gnss: u-blox: use open-drain reset and safeboot in example
2025-11-14 15:54 [PATCH v2] dt-bindings: gnss: u-blox: use open-drain reset and safeboot in example Johan Hovold
@ 2025-11-17 19:15 ` Conor Dooley
2025-11-20 15:54 ` Johan Hovold
1 sibling, 0 replies; 3+ messages in thread
From: Conor Dooley @ 2025-11-17 19:15 UTC (permalink / raw)
To: Johan Hovold
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alejandro Enrique,
devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1689 bytes --]
On Fri, Nov 14, 2025 at 04:54:13PM +0100, Johan Hovold wrote:
> The RESET_N and SAFEBOOT_N pins should typically be left open and only
> be connected to ground in rare cases where a device is misbehaving.
>
> Specify GPIO_OPEN_DRAIN in the example as this is what should generally
> be used.
>
> Note that the current Linux driver implementation depends on these pins
> being declared open-drain so that they are not driven while the main
> supply is off.
>
> Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable
> ---
>
> Changes in v2:
> - declare the pins as both active-low and open-drain (as the former is
> no longer implied by the latter)
>
>
> Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
> index 9f14cfe7efd1..d016808f65cb 100644
> --- a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
> +++ b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
> @@ -67,7 +67,7 @@ examples:
> compatible = "u-blox,neo-8";
> v-bckp-supply = <&gnss_v_bckp_reg>;
> vcc-supply = <&gnss_vcc_reg>;
> - reset-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
> - safeboot-gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
> + reset-gpios = <&gpio 1 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
> + safeboot-gpios = <&gpio 2 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
> };
> };
> --
> 2.51.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] dt-bindings: gnss: u-blox: use open-drain reset and safeboot in example
2025-11-14 15:54 [PATCH v2] dt-bindings: gnss: u-blox: use open-drain reset and safeboot in example Johan Hovold
2025-11-17 19:15 ` Conor Dooley
@ 2025-11-20 15:54 ` Johan Hovold
1 sibling, 0 replies; 3+ messages in thread
From: Johan Hovold @ 2025-11-20 15:54 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Alejandro Enrique,
devicetree, linux-kernel
On Fri, Nov 14, 2025 at 04:54:13PM +0100, Johan Hovold wrote:
> The RESET_N and SAFEBOOT_N pins should typically be left open and only
> be connected to ground in rare cases where a device is misbehaving.
>
> Specify GPIO_OPEN_DRAIN in the example as this is what should generally
> be used.
>
> Note that the current Linux driver implementation depends on these pins
> being declared open-drain so that they are not driven while the main
> supply is off.
This statement is too strong as there would typically be a level shifter
preventing the signals from being driven so I dropped this paragraph.
> Signed-off-by: Johan Hovold <johan@kernel.org>
Johan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-11-20 15:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-14 15:54 [PATCH v2] dt-bindings: gnss: u-blox: use open-drain reset and safeboot in example Johan Hovold
2025-11-17 19:15 ` Conor Dooley
2025-11-20 15:54 ` Johan Hovold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox