Skip to contentSkip to conversation

dt-bindings: gpio: convert gpio-pisosr.txt to yaml format

PATCH Applied Frank Li 3 participants 3 messages May 22, 2025 – Jun 10, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: gpio: convert gpio-pisosr.txt to yaml format

Covert gpio-pisosr.txt to yaml format.

Additional changes:
- Add ref to spi-peripheral-props.yaml.
- Set ngpios max value to 32.

---
 .../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
Documentation/devicetree/bindings/gpio/gpio-pisosr.txt deleted +0 -34
deleted file mode 100644
index fba3c61f6a5bc..0000000000000
@@ -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;
-	};
Documentation/devicetree/bindings/gpio/pisosr-gpio.yaml new file +67 -0

67 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Frank Li

Covert gpio-pisosr.txt to yaml format.

Additional changes:
- Add ref to spi-peripheral-props.yaml.
- Set ngpios max value to 32.

Quoted 8 lines
---
 .../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
#2 lore raw
In reply to Frank Li

From: Bartosz Golaszewski <[email protected]>

Quoted 8 lines · Frank Li

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,

Signature · 1 line
Bartosz Golaszewski <[email protected]>