linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] dt-bindings: gpio: gpio-davinci: Add the gpio-reserved-ranges property
@ 2024-08-09 15:46 Jared McArthur
  2024-08-09 15:46 ` [PATCH 1/1] " Jared McArthur
  2024-08-10 19:33 ` [PATCH 0/1] " Bartosz Golaszewski
  0 siblings, 2 replies; 4+ messages in thread
From: Jared McArthur @ 2024-08-09 15:46 UTC (permalink / raw)
  To: Conor Dooley, Krzysztof Kozlowski, Rob Herring,
	Bartosz Golaszewski, Linus Walleij, Keerthy
  Cc: linux-kernel, devicetree, linux-gpio, linux-arm-kernel,
	Jared McArthur

Hi,

This patch adds the gpio-reserved-ranges property to
gpio-davinci.yaml. This allows davinci gpio controllers (compatible
fields: "ti,keystone-gpio", "ti,am654-gpio", and "ti,dm6441-gpio") to
use the gpio-reserved-ranges property.

This property will prevent users from trying to access gpios that
don't exist.

Best,
Jared

Jared McArthur (1):
  dt-bindings: gpio: gpio-davinci: Add the gpio-reserved-ranges property

 Documentation/devicetree/bindings/gpio/gpio-davinci.yaml | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.34.1


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

* [PATCH 1/1] dt-bindings: gpio: gpio-davinci: Add the gpio-reserved-ranges property
  2024-08-09 15:46 [PATCH 0/1] dt-bindings: gpio: gpio-davinci: Add the gpio-reserved-ranges property Jared McArthur
@ 2024-08-09 15:46 ` Jared McArthur
  2024-08-10 12:34   ` Krzysztof Kozlowski
  2024-08-10 19:33 ` [PATCH 0/1] " Bartosz Golaszewski
  1 sibling, 1 reply; 4+ messages in thread
From: Jared McArthur @ 2024-08-09 15:46 UTC (permalink / raw)
  To: Conor Dooley, Krzysztof Kozlowski, Rob Herring,
	Bartosz Golaszewski, Linus Walleij, Keerthy
  Cc: linux-kernel, devicetree, linux-gpio, linux-arm-kernel,
	Jared McArthur

Current definition of the davinci gpio controller doesn't include the
gpio-reserved-ranges property. Add the gpio-reserved-ranges property
so it can be used within device tree files.

Will prevent users from trying to access gpios that don't exist.

Signed-off-by: Jared McArthur <j-mcarthur@ti.com>
---
 Documentation/devicetree/bindings/gpio/gpio-davinci.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/gpio-davinci.yaml b/Documentation/devicetree/bindings/gpio/gpio-davinci.yaml
index 10e56cf306db..1434d08f8b74 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-davinci.yaml
+++ b/Documentation/devicetree/bindings/gpio/gpio-davinci.yaml
@@ -32,6 +32,8 @@ properties:
 
   gpio-ranges: true
 
+  gpio-reserved-ranges: true
+
   gpio-line-names:
     description: strings describing the names of each gpio line.
     minItems: 1
-- 
2.34.1


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

* Re: [PATCH 1/1] dt-bindings: gpio: gpio-davinci: Add the gpio-reserved-ranges property
  2024-08-09 15:46 ` [PATCH 1/1] " Jared McArthur
@ 2024-08-10 12:34   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-10 12:34 UTC (permalink / raw)
  To: Jared McArthur, Conor Dooley, Krzysztof Kozlowski, Rob Herring,
	Bartosz Golaszewski, Linus Walleij, Keerthy
  Cc: linux-kernel, devicetree, linux-gpio, linux-arm-kernel

On 09/08/2024 17:46, Jared McArthur wrote:
> Current definition of the davinci gpio controller doesn't include the
> gpio-reserved-ranges property. Add the gpio-reserved-ranges property
> so it can be used within device tree files.
> 
> Will prevent users from trying to access gpios that don't exist.
> 
> Signed-off-by: Jared McArthur <j-mcarthur@ti.com>

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH 0/1] dt-bindings: gpio: gpio-davinci: Add the gpio-reserved-ranges property
  2024-08-09 15:46 [PATCH 0/1] dt-bindings: gpio: gpio-davinci: Add the gpio-reserved-ranges property Jared McArthur
  2024-08-09 15:46 ` [PATCH 1/1] " Jared McArthur
@ 2024-08-10 19:33 ` Bartosz Golaszewski
  1 sibling, 0 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2024-08-10 19:33 UTC (permalink / raw)
  To: Conor Dooley, Krzysztof Kozlowski, Rob Herring,
	Bartosz Golaszewski, Linus Walleij, Keerthy, Jared McArthur
  Cc: Bartosz Golaszewski, linux-kernel, devicetree, linux-gpio,
	linux-arm-kernel

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


On Fri, 09 Aug 2024 10:46:37 -0500, Jared McArthur wrote:
> This patch adds the gpio-reserved-ranges property to
> gpio-davinci.yaml. This allows davinci gpio controllers (compatible
> fields: "ti,keystone-gpio", "ti,am654-gpio", and "ti,dm6441-gpio") to
> use the gpio-reserved-ranges property.
> 
> This property will prevent users from trying to access gpios that
> don't exist.
> 
> [...]

Applied, thanks!

[1/1] dt-bindings: gpio: gpio-davinci: Add the gpio-reserved-ranges property
      commit: 789ce0f6028f9e68fc27f6748acefbd2e23f4716

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

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

end of thread, other threads:[~2024-08-10 19:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-09 15:46 [PATCH 0/1] dt-bindings: gpio: gpio-davinci: Add the gpio-reserved-ranges property Jared McArthur
2024-08-09 15:46 ` [PATCH 1/1] " Jared McArthur
2024-08-10 12:34   ` Krzysztof Kozlowski
2024-08-10 19:33 ` [PATCH 0/1] " Bartosz Golaszewski

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