Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/gpio/exar,xra1403.yaml
26308 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/exar,xra1403.yaml#
5
$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7
title: XRA1403 16-bit GPIO Expander with Reset Input
8
9
maintainers:
10
- Nandor Han <nandor.han@ge.com>
11
12
description: >
13
The XRA1403 is an 16-bit GPIO expander with an SPI interface. Features
14
available:
15
16
- Individually programmable inputs:
17
- Internal pull-up resistors
18
- Polarity inversion
19
- Individual interrupt enable
20
- Rising edge and/or Falling edge interrupt
21
- Input filter
22
- Individually programmable outputs:
23
- Output Level Control
24
- Output Three-State Control
25
26
properties:
27
compatible:
28
const: exar,xra1403
29
30
reg:
31
maxItems: 1
32
33
gpio-controller: true
34
35
'#gpio-cells':
36
const: 2
37
38
interrupt-controller: true
39
40
'#interrupt-cells':
41
const: 2
42
43
reset-gpios:
44
description: Control line for the device reset.
45
46
required:
47
- compatible
48
- reg
49
- gpio-controller
50
- '#gpio-cells'
51
52
allOf:
53
- $ref: /schemas/spi/spi-peripheral-props.yaml#
54
55
unevaluatedProperties: false
56
57
examples:
58
- |
59
#include <dt-bindings/gpio/gpio.h>
60
61
spi {
62
#address-cells = <1>;
63
#size-cells = <0>;
64
65
gpio@2 {
66
compatible = "exar,xra1403";
67
reg = <2>;
68
spi-max-frequency = <1000000>;
69
gpio-controller;
70
#gpio-cells = <2>;
71
interrupt-controller;
72
#interrupt-cells = <2>;
73
reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
74
};
75
};
76
77