Generic 8-bit shift register
Schema identifier ($id): "http://devicetree.org/schemas/gpio/fairchild,74hc595.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
NOTE: These chips nominally don't have a chip select pin. They do however have a rising-edge triggered latch clock (or storage register clock) pin, which behaves like an active-low chip select.
After the bits are shifted into the shift register, CS# is driven high, which
the 74HC595 sees as a rising edge on the latch clock that results in a
transfer of the bits from the shift register to the storage register and thus
to the output pins.
_ _ _ _
shift clock ____| |_| |_..._| |_| |_________
latch clock * trigger
___ ________
chip select# |___________________|
Maintainers (maintainers): "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fairchild,74hc595", "nxp,74lvc594"
reg — required here #
Maximum number of items (maxItems): 1
gpio-controller — required here #
true — No constraints added by this property rule.
#gpio-cells — required here #
The second cell is only used to specify the GPIO polarity.
Exact value (const): 2
registers-number — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of daisy-chained shift registers
enable-gpios — not listed as required here #
GPIO connected to the OE (Output Enable) pin.
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^(hog-[0-9]+|.+-hog(-[0-9]+)?)$ — name matches this regular expression #
Value type (type): "object"
Required in this object (required): "gpio-hog"
Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "registers-number"
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) #
spi {
#address-cells = <1>;
#size-cells = <0>;
gpio5@0 {
compatible = "fairchild,74hc595";
reg = <0>;
gpio-controller;
#gpio-cells = <2>;
registers-number = <4>;
spi-max-frequency = <100000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)