* [PATCH 1/1] dt-bindings: gpio: convert gpio-pisosr.txt to yaml format
@ 2025-05-22 22:37 Frank Li
2025-05-27 18:08 ` Rob Herring (Arm)
2025-06-10 8:11 ` Bartosz Golaszewski
0 siblings, 2 replies; 3+ messages in thread
From: Frank Li @ 2025-05-22 22:37 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, open list:GPIO SUBSYSTEM,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
Cc: imx
Covert gpio-pisosr.txt to yaml format.
Additional changes:
- Add ref to spi-peripheral-props.yaml.
- Set ngpios max value to 32.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
.../devicetree/bindings/gpio/gpio-pisosr.txt | 34 ----------
.../devicetree/bindings/gpio/pisosr-gpio.yaml | 67 +++++++++++++++++++
2 files changed, 67 insertions(+), 34 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-pisosr.txt
create mode 100644 Documentation/devicetree/bindings/gpio/pisosr-gpio.yaml
diff --git a/Documentation/devicetree/bindings/gpio/gpio-pisosr.txt b/Documentation/devicetree/bindings/gpio/gpio-pisosr.txt
deleted file mode 100644
index fba3c61f6a5bc..0000000000000
--- a/Documentation/devicetree/bindings/gpio/gpio-pisosr.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-Generic Parallel-in/Serial-out Shift Register GPIO Driver
-
-This binding describes generic parallel-in/serial-out shift register
-devices that can be used for GPI (General Purpose Input). This includes
-SN74165 serial-out shift registers and the SN65HVS88x series of
-industrial serializers.
-
-Required properties:
- - compatible : Should be "pisosr-gpio".
- - gpio-controller : Marks the device node as a GPIO controller.
- - #gpio-cells : Should be two. For consumer use see gpio.txt.
-
-Optional properties:
- - ngpios : Number of used GPIO lines (0..n-1), default is 8.
- - load-gpios : GPIO pin specifier attached to load enable, this
- pin is pulsed before reading from the device to
- load input pin values into the device.
-
-For other required and optional properties of SPI slave
-nodes please refer to ../spi/spi-bus.txt.
-
-Example:
-
- gpio@0 {
- compatible = "ti,sn65hvs882", "pisosr-gpio";
- gpio-controller;
- #gpio-cells = <2>;
-
- load-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
-
- reg = <0>;
- spi-max-frequency = <1000000>;
- spi-cpol;
- };
diff --git a/Documentation/devicetree/bindings/gpio/pisosr-gpio.yaml b/Documentation/devicetree/bindings/gpio/pisosr-gpio.yaml
new file mode 100644
index 0000000000000..db98ba413fb6b
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/pisosr-gpio.yaml
@@ -0,0 +1,67 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/gpio/pisosr-gpio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Generic Parallel-in/Serial-out Shift Register GPIO Driver
+
+description:
+ This binding describes generic parallel-in/serial-out shift register
+ devices that can be used for GPI (General Purpose Input). This includes
+ SN74165 serial-out shift registers and the SN65HVS88x series of
+ industrial serializers.
+
+maintainers:
+ - Frank Li <Frank.Li@nxp.com>
+
+properties:
+ compatible:
+ enum:
+ - pisosr-gpio
+
+ gpio-controller: true
+
+ '#gpio-cells':
+ const: 2
+
+ ngpios:
+ maximum: 32
+ default: 8
+
+ load-gpios:
+ description:
+ GPIO pin specifier attached to load enable, this
+ pin is pulsed before reading from the device to
+ load input pin values into the device.
+
+ spi-cpol: true
+
+required:
+ - compatible
+ - gpio-controller
+ - '#gpio-cells'
+
+allOf:
+ - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ gpio@0 {
+ compatible = "pisosr-gpio";
+ reg = <0>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ load-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
+ spi-max-frequency = <1000000>;
+ spi-cpol;
+ };
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] dt-bindings: gpio: convert gpio-pisosr.txt to yaml format
2025-05-22 22:37 [PATCH 1/1] dt-bindings: gpio: convert gpio-pisosr.txt to yaml format Frank Li
@ 2025-05-27 18:08 ` Rob Herring (Arm)
2025-06-10 8:11 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2025-05-27 18:08 UTC (permalink / raw)
To: Frank Li
Cc: Conor Dooley, Linus Walleij, linux-gpio, imx, linux-kernel,
Krzysztof Kozlowski, Bartosz Golaszewski, devicetree
On Thu, 22 May 2025 18:37:41 -0400, Frank Li wrote:
> Covert gpio-pisosr.txt to yaml format.
>
> Additional changes:
> - Add ref to spi-peripheral-props.yaml.
> - Set ngpios max value to 32.
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> .../devicetree/bindings/gpio/gpio-pisosr.txt | 34 ----------
> .../devicetree/bindings/gpio/pisosr-gpio.yaml | 67 +++++++++++++++++++
> 2 files changed, 67 insertions(+), 34 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-pisosr.txt
> create mode 100644 Documentation/devicetree/bindings/gpio/pisosr-gpio.yaml
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] dt-bindings: gpio: convert gpio-pisosr.txt to yaml format
2025-05-22 22:37 [PATCH 1/1] dt-bindings: gpio: convert gpio-pisosr.txt to yaml format Frank Li
2025-05-27 18:08 ` Rob Herring (Arm)
@ 2025-06-10 8:11 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2025-06-10 8:11 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-gpio, devicetree,
linux-kernel, Frank Li
Cc: Bartosz Golaszewski, imx
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Thu, 22 May 2025 18:37:41 -0400, Frank Li wrote:
> Covert gpio-pisosr.txt to yaml format.
>
> Additional changes:
> - Add ref to spi-peripheral-props.yaml.
> - Set ngpios max value to 32.
>
>
> [...]
Applied, thanks!
[1/1] dt-bindings: gpio: convert gpio-pisosr.txt to yaml format
https://git.kernel.org/brgl/linux/c/08894232efa4b53e7cd064450a6d444b92ab24ae
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-10 8:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-22 22:37 [PATCH 1/1] dt-bindings: gpio: convert gpio-pisosr.txt to yaml format Frank Li
2025-05-27 18:08 ` Rob Herring (Arm)
2025-06-10 8:11 ` 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).