devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] gnss: ubx: updates to support the Renesas KingFisher board
@ 2023-08-16 17:31 Wolfram Sang
  2023-08-16 17:31 ` [PATCH v2 2/3] dt-bindings: gnss: u-blox: add "reset-gpios" binding Wolfram Sang
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2023-08-16 17:31 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Wolfram Sang, devicetree, Johan Hovold, linux-kernel

For that, we need "reset-gpio" support (patches 2+3). But first,
simplify regulator handling with a new helper (patch 1).

For changes, see the patches.

Wolfram Sang (3):
  gnss: ubx: use new helper to remove open coded regulator handling
  dt-bindings: gnss: u-blox: add "reset-gpios" binding
  gnss: ubx: add support for the reset gpio

 .../bindings/gnss/u-blox,neo-6m.yaml          |  5 +++
 drivers/gnss/ubx.c                            | 35 ++++++++-----------
 2 files changed, 20 insertions(+), 20 deletions(-)

-- 
2.35.1


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

* [PATCH v2 2/3] dt-bindings: gnss: u-blox: add "reset-gpios" binding
  2023-08-16 17:31 [PATCH v2 0/3] gnss: ubx: updates to support the Renesas KingFisher board Wolfram Sang
@ 2023-08-16 17:31 ` Wolfram Sang
  2023-08-17  8:54   ` Conor Dooley
  2023-09-19  9:56   ` Geert Uytterhoeven
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfram Sang @ 2023-08-16 17:31 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Wolfram Sang, Johan Hovold, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, devicetree, linux-kernel

Needed to enable this chip on a Renesas KingFisher board. Description
copied over from the Mediatek driver which already supports it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---

Changes since v1:
* dropped obvious description (Thanks, Geert!)
* added missing include (Thanks, Krzysztof and Rob!)

I build tested the change this time.

 Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
index 4835a280b3bf..8e97e475613f 100644
--- a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
+++ b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
@@ -41,6 +41,9 @@ properties:
     description: >
       Backup voltage regulator
 
+  reset-gpios:
+    maxItems: 1
+
 required:
   - compatible
   - vcc-supply
@@ -49,10 +52,12 @@ unevaluatedProperties: false
 
 examples:
   - |
+    #include <dt-bindings/gpio/gpio.h>
     serial {
         gnss {
             compatible = "u-blox,neo-8";
             v-bckp-supply = <&gnss_v_bckp_reg>;
             vcc-supply = <&gnss_vcc_reg>;
+            reset-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
         };
     };
-- 
2.35.1


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

* Re: [PATCH v2 2/3] dt-bindings: gnss: u-blox: add "reset-gpios" binding
  2023-08-16 17:31 ` [PATCH v2 2/3] dt-bindings: gnss: u-blox: add "reset-gpios" binding Wolfram Sang
@ 2023-08-17  8:54   ` Conor Dooley
  2023-09-19  9:56   ` Geert Uytterhoeven
  1 sibling, 0 replies; 4+ messages in thread
From: Conor Dooley @ 2023-08-17  8:54 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, Johan Hovold, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1557 bytes --]

On Wed, Aug 16, 2023 at 07:31:14PM +0200, Wolfram Sang wrote:
> Needed to enable this chip on a Renesas KingFisher board. Description
> copied over from the Mediatek driver which already supports it.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

Thanks,
Conor.

> ---
> 
> Changes since v1:
> * dropped obvious description (Thanks, Geert!)
> * added missing include (Thanks, Krzysztof and Rob!)
> 
> I build tested the change this time.
> 
>  Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
> index 4835a280b3bf..8e97e475613f 100644
> --- a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
> +++ b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
> @@ -41,6 +41,9 @@ properties:
>      description: >
>        Backup voltage regulator
>  
> +  reset-gpios:
> +    maxItems: 1
> +
>  required:
>    - compatible
>    - vcc-supply
> @@ -49,10 +52,12 @@ unevaluatedProperties: false
>  
>  examples:
>    - |
> +    #include <dt-bindings/gpio/gpio.h>
>      serial {
>          gnss {
>              compatible = "u-blox,neo-8";
>              v-bckp-supply = <&gnss_v_bckp_reg>;
>              vcc-supply = <&gnss_vcc_reg>;
> +            reset-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
>          };
>      };
> -- 
> 2.35.1
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: [PATCH v2 2/3] dt-bindings: gnss: u-blox: add "reset-gpios" binding
  2023-08-16 17:31 ` [PATCH v2 2/3] dt-bindings: gnss: u-blox: add "reset-gpios" binding Wolfram Sang
  2023-08-17  8:54   ` Conor Dooley
@ 2023-09-19  9:56   ` Geert Uytterhoeven
  1 sibling, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2023-09-19  9:56 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, Johan Hovold, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, devicetree, linux-kernel

On Wed, 16 Aug 2023, Wolfram Sang wrote:
> Needed to enable this chip on a Renesas KingFisher board. Description
> copied over from the Mediatek driver which already supports it.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
>
> Changes since v1:
> * dropped obvious description (Thanks, Geert!)
> * added missing include (Thanks, Krzysztof and Rob!)

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

 						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
 							    -- Linus Torvalds

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

end of thread, other threads:[~2023-09-19  9:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-16 17:31 [PATCH v2 0/3] gnss: ubx: updates to support the Renesas KingFisher board Wolfram Sang
2023-08-16 17:31 ` [PATCH v2 2/3] dt-bindings: gnss: u-blox: add "reset-gpios" binding Wolfram Sang
2023-08-17  8:54   ` Conor Dooley
2023-09-19  9:56   ` Geert Uytterhoeven

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).