0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/gpio/fairchild,74hc595.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Generic 8-bit shift register
0008
0009 maintainers:
0010 - Maxime Ripard <mripard@kernel.org>
0011
0012 properties:
0013 compatible:
0014 enum:
0015 - fairchild,74hc595
0016 - nxp,74lvc594
0017
0018 reg:
0019 maxItems: 1
0020
0021 gpio-controller: true
0022
0023 '#gpio-cells':
0024 description:
0025 The second cell is only used to specify the GPIO polarity.
0026 const: 2
0027
0028 registers-number:
0029 $ref: /schemas/types.yaml#/definitions/uint32
0030 description: Number of daisy-chained shift registers
0031
0032 enable-gpios:
0033 description: GPIO connected to the OE (Output Enable) pin.
0034 maxItems: 1
0035
0036 spi-max-frequency: true
0037
0038 patternProperties:
0039 "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$":
0040 type: object
0041
0042 properties:
0043 gpio-hog: true
0044 gpios: true
0045 output-high: true
0046 output-low: true
0047 line-name: true
0048
0049 required:
0050 - gpio-hog
0051 - gpios
0052
0053 additionalProperties: false
0054
0055 required:
0056 - compatible
0057 - reg
0058 - gpio-controller
0059 - '#gpio-cells'
0060 - registers-number
0061
0062 additionalProperties: false
0063
0064 examples:
0065 - |
0066 spi {
0067 #address-cells = <1>;
0068 #size-cells = <0>;
0069
0070 gpio5: gpio5@0 {
0071 compatible = "fairchild,74hc595";
0072 reg = <0>;
0073 gpio-controller;
0074 #gpio-cells = <2>;
0075 registers-number = <4>;
0076 spi-max-frequency = <100000>;
0077 };
0078 };