12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 22eb4d8dcSEmmanuel Vadot%YAML 1.2 32eb4d8dcSEmmanuel Vadot--- 42eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/gpio/fairchild,74hc595.yaml# 52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 62eb4d8dcSEmmanuel Vadot 72eb4d8dcSEmmanuel Vadottitle: Generic 8-bit shift register 82eb4d8dcSEmmanuel Vadot 92eb4d8dcSEmmanuel Vadotmaintainers: 102eb4d8dcSEmmanuel Vadot - Maxime Ripard <mripard@kernel.org> 112eb4d8dcSEmmanuel Vadot 122eb4d8dcSEmmanuel Vadotproperties: 132eb4d8dcSEmmanuel Vadot compatible: 142eb4d8dcSEmmanuel Vadot enum: 152eb4d8dcSEmmanuel Vadot - fairchild,74hc595 162eb4d8dcSEmmanuel Vadot - nxp,74lvc594 172eb4d8dcSEmmanuel Vadot 182eb4d8dcSEmmanuel Vadot reg: 192eb4d8dcSEmmanuel Vadot maxItems: 1 202eb4d8dcSEmmanuel Vadot 212eb4d8dcSEmmanuel Vadot gpio-controller: true 222eb4d8dcSEmmanuel Vadot 232eb4d8dcSEmmanuel Vadot '#gpio-cells': 242eb4d8dcSEmmanuel Vadot description: 252eb4d8dcSEmmanuel Vadot The second cell is only used to specify the GPIO polarity. 262eb4d8dcSEmmanuel Vadot const: 2 272eb4d8dcSEmmanuel Vadot 282eb4d8dcSEmmanuel Vadot registers-number: 29d5b0e70fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 302eb4d8dcSEmmanuel Vadot description: Number of daisy-chained shift registers 312eb4d8dcSEmmanuel Vadot 322eb4d8dcSEmmanuel Vadot enable-gpios: 332eb4d8dcSEmmanuel Vadot description: GPIO connected to the OE (Output Enable) pin. 342eb4d8dcSEmmanuel Vadot maxItems: 1 352eb4d8dcSEmmanuel Vadot 362eb4d8dcSEmmanuel VadotpatternProperties: 372eb4d8dcSEmmanuel Vadot "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": 382eb4d8dcSEmmanuel Vadot type: object 392eb4d8dcSEmmanuel Vadot required: 402eb4d8dcSEmmanuel Vadot - gpio-hog 412eb4d8dcSEmmanuel Vadot 422eb4d8dcSEmmanuel Vadotrequired: 432eb4d8dcSEmmanuel Vadot - compatible 442eb4d8dcSEmmanuel Vadot - reg 452eb4d8dcSEmmanuel Vadot - gpio-controller 462eb4d8dcSEmmanuel Vadot - '#gpio-cells' 472eb4d8dcSEmmanuel Vadot - registers-number 482eb4d8dcSEmmanuel Vadot 49*7ef62cebSEmmanuel VadotallOf: 50*7ef62cebSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 51*7ef62cebSEmmanuel Vadot 52*7ef62cebSEmmanuel VadotunevaluatedProperties: false 532eb4d8dcSEmmanuel Vadot 542eb4d8dcSEmmanuel Vadotexamples: 552eb4d8dcSEmmanuel Vadot - | 562eb4d8dcSEmmanuel Vadot spi { 572eb4d8dcSEmmanuel Vadot #address-cells = <1>; 582eb4d8dcSEmmanuel Vadot #size-cells = <0>; 592eb4d8dcSEmmanuel Vadot 602eb4d8dcSEmmanuel Vadot gpio5: gpio5@0 { 612eb4d8dcSEmmanuel Vadot compatible = "fairchild,74hc595"; 622eb4d8dcSEmmanuel Vadot reg = <0>; 632eb4d8dcSEmmanuel Vadot gpio-controller; 642eb4d8dcSEmmanuel Vadot #gpio-cells = <2>; 652eb4d8dcSEmmanuel Vadot registers-number = <4>; 662eb4d8dcSEmmanuel Vadot spi-max-frequency = <100000>; 672eb4d8dcSEmmanuel Vadot }; 682eb4d8dcSEmmanuel Vadot }; 69