Generic Parallel-in/Serial-out Shift Register GPIO Driver

Schema identifier ($id): "http://devicetree.org/schemas/gpio/pisosr-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

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 (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "pisosr-gpio"

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

ngpios — not listed as required here #

Maximum value (maximum): 32

Default value (default): 8

load-gpios — not listed as required here #

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 — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "gpio-controller", "#gpio-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (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;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page