brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · e8bc9f0 Raw
69 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/gpio/fairchild,74hc595.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Generic 8-bit shift register8 9maintainers:10  - Maxime Ripard <mripard@kernel.org>11 12properties:13  compatible:14    enum:15      - fairchild,74hc59516      - nxp,74lvc59417 18  reg:19    maxItems: 120 21  gpio-controller: true22 23  '#gpio-cells':24    description:25      The second cell is only used to specify the GPIO polarity.26    const: 227 28  registers-number:29    $ref: /schemas/types.yaml#/definitions/uint3230    description: Number of daisy-chained shift registers31 32  enable-gpios:33    description: GPIO connected to the OE (Output Enable) pin.34    maxItems: 135 36patternProperties:37  "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$":38    type: object39    required:40      - gpio-hog41 42required:43  - compatible44  - reg45  - gpio-controller46  - '#gpio-cells'47  - registers-number48 49allOf:50  - $ref: /schemas/spi/spi-peripheral-props.yaml#51 52unevaluatedProperties: false53 54examples:55  - |56    spi {57            #address-cells = <1>;58            #size-cells = <0>;59 60            gpio5: gpio5@0 {61                    compatible = "fairchild,74hc595";62                    reg = <0>;63                    gpio-controller;64                    #gpio-cells = <2>;65                    registers-number = <4>;66                    spi-max-frequency = <100000>;67            };68    };69