Skip to contentSkip to conversation

dt-bindings: gnss: u-blox: use open-drain reset and safeboot in example

PATCH In review Johan Hovold 2 participants 3 messages Nov 14, 2025 – Nov 20, 2025

Subsystems (2)
lore
Share & tools
lore

Johan Hovold

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: gnss: u-blox: use open-drain reset and safeboot in example

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.

---

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(-)
Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml +2 -2
index 9f14cfe7efd1..d016808f65cb 100644
@@ -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)>;
         };
     };
Signature · 1 line
2.51.0
Acked-by on v2 1/1
#1 lore raw
Quoted 11 lines · Johan Hovold

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.

pw-bot: not-applicable

Quoted 27 lines

---

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(-)
Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml +2 -2
index 9f14cfe7efd1..d016808f65cb 100644
@@ -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)>;
         };
     };
Signature · 1 line
2.51.0
author maintainer
#2 lore raw
In reply to Johan Hovold
Quoted 9 lines · Johan Hovold

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.

Quoted 1 line

Johan