156b01accSGeert Uytterhoeven# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 256b01accSGeert Uytterhoeven%YAML 1.2 356b01accSGeert Uytterhoeven--- 456b01accSGeert Uytterhoeven$id: http://devicetree.org/schemas/gpio/fairchild,74hc595.yaml# 556b01accSGeert Uytterhoeven$schema: http://devicetree.org/meta-schemas/core.yaml# 656b01accSGeert Uytterhoeven 756b01accSGeert Uytterhoeventitle: Generic 8-bit shift register 856b01accSGeert Uytterhoeven 956b01accSGeert Uytterhoevenmaintainers: 1056b01accSGeert Uytterhoeven - Maxime Ripard <mripard@kernel.org> 1156b01accSGeert Uytterhoeven 1256b01accSGeert Uytterhoevenproperties: 1356b01accSGeert Uytterhoeven compatible: 1456b01accSGeert Uytterhoeven enum: 1556b01accSGeert Uytterhoeven - fairchild,74hc595 1656b01accSGeert Uytterhoeven - nxp,74lvc594 1756b01accSGeert Uytterhoeven 1856b01accSGeert Uytterhoeven reg: 1956b01accSGeert Uytterhoeven maxItems: 1 2056b01accSGeert Uytterhoeven 2156b01accSGeert Uytterhoeven gpio-controller: true 2256b01accSGeert Uytterhoeven 2356b01accSGeert Uytterhoeven '#gpio-cells': 2456b01accSGeert Uytterhoeven description: 2556b01accSGeert Uytterhoeven The second cell is only used to specify the GPIO polarity. 2656b01accSGeert Uytterhoeven const: 2 2756b01accSGeert Uytterhoeven 2856b01accSGeert Uytterhoeven registers-number: 294e71ed98SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 3056b01accSGeert Uytterhoeven description: Number of daisy-chained shift registers 3156b01accSGeert Uytterhoeven 3256b01accSGeert Uytterhoeven enable-gpios: 3356b01accSGeert Uytterhoeven description: GPIO connected to the OE (Output Enable) pin. 3456b01accSGeert Uytterhoeven maxItems: 1 3556b01accSGeert Uytterhoeven 3656b01accSGeert UytterhoevenpatternProperties: 3756b01accSGeert Uytterhoeven "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": 3856b01accSGeert Uytterhoeven type: object 3956b01accSGeert Uytterhoeven required: 4056b01accSGeert Uytterhoeven - gpio-hog 4156b01accSGeert Uytterhoeven 4256b01accSGeert Uytterhoevenrequired: 4356b01accSGeert Uytterhoeven - compatible 4456b01accSGeert Uytterhoeven - reg 4556b01accSGeert Uytterhoeven - gpio-controller 4656b01accSGeert Uytterhoeven - '#gpio-cells' 4756b01accSGeert Uytterhoeven - registers-number 4856b01accSGeert Uytterhoeven 49*1e65d136SKrzysztof KozlowskiallOf: 50*1e65d136SKrzysztof Kozlowski - $ref: /schemas/spi/spi-peripheral-props.yaml# 51*1e65d136SKrzysztof Kozlowski 52*1e65d136SKrzysztof KozlowskiunevaluatedProperties: false 5356b01accSGeert Uytterhoeven 5456b01accSGeert Uytterhoevenexamples: 5556b01accSGeert Uytterhoeven - | 5656b01accSGeert Uytterhoeven spi { 5756b01accSGeert Uytterhoeven #address-cells = <1>; 5856b01accSGeert Uytterhoeven #size-cells = <0>; 5956b01accSGeert Uytterhoeven 6056b01accSGeert Uytterhoeven gpio5: gpio5@0 { 6156b01accSGeert Uytterhoeven compatible = "fairchild,74hc595"; 6256b01accSGeert Uytterhoeven reg = <0>; 6356b01accSGeert Uytterhoeven gpio-controller; 6456b01accSGeert Uytterhoeven #gpio-cells = <2>; 6556b01accSGeert Uytterhoeven registers-number = <4>; 6656b01accSGeert Uytterhoeven spi-max-frequency = <100000>; 6756b01accSGeert Uytterhoeven }; 6856b01accSGeert Uytterhoeven }; 69