Path: blob/main/sys/contrib/device-tree/Bindings/gpio/fairchild,74hc595.yaml
48376 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/gpio/fairchild,74hc595.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Generic 8-bit shift register78maintainers:9- Maxime Ripard <mripard@kernel.org>1011properties:12compatible:13enum:14- fairchild,74hc59515- nxp,74lvc5941617reg:18maxItems: 11920gpio-controller: true2122'#gpio-cells':23description:24The second cell is only used to specify the GPIO polarity.25const: 22627registers-number:28$ref: /schemas/types.yaml#/definitions/uint3229description: Number of daisy-chained shift registers3031enable-gpios:32description: GPIO connected to the OE (Output Enable) pin.33maxItems: 13435patternProperties:36"^(hog-[0-9]+|.+-hog(-[0-9]+)?)$":37type: object38required:39- gpio-hog4041required:42- compatible43- reg44- gpio-controller45- '#gpio-cells'46- registers-number4748allOf:49- $ref: /schemas/spi/spi-peripheral-props.yaml#5051unevaluatedProperties: false5253examples:54- |55spi {56#address-cells = <1>;57#size-cells = <0>;5859gpio5: gpio5@0 {60compatible = "fairchild,74hc595";61reg = <0>;62gpio-controller;63#gpio-cells = <2>;64registers-number = <4>;65spi-max-frequency = <100000>;66};67};686970