Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/sys/contrib/device-tree/Bindings/gpio/fairchild,74hc595.yaml
48376 views
1
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2
%YAML 1.2
3
---
4
$id: http://devicetree.org/schemas/gpio/fairchild,74hc595.yaml#
5
$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7
title: Generic 8-bit shift register
8
9
maintainers:
10
- Maxime Ripard <mripard@kernel.org>
11
12
properties:
13
compatible:
14
enum:
15
- fairchild,74hc595
16
- nxp,74lvc594
17
18
reg:
19
maxItems: 1
20
21
gpio-controller: true
22
23
'#gpio-cells':
24
description:
25
The second cell is only used to specify the GPIO polarity.
26
const: 2
27
28
registers-number:
29
$ref: /schemas/types.yaml#/definitions/uint32
30
description: Number of daisy-chained shift registers
31
32
enable-gpios:
33
description: GPIO connected to the OE (Output Enable) pin.
34
maxItems: 1
35
36
patternProperties:
37
"^(hog-[0-9]+|.+-hog(-[0-9]+)?)$":
38
type: object
39
required:
40
- gpio-hog
41
42
required:
43
- compatible
44
- reg
45
- gpio-controller
46
- '#gpio-cells'
47
- registers-number
48
49
allOf:
50
- $ref: /schemas/spi/spi-peripheral-props.yaml#
51
52
unevaluatedProperties: false
53
54
examples:
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
70