Skip to content

Commit 4dc5794

Browse files
mans0nlinusw
authored andcommitted
gpio: pca9570: Add DT bindings for NXP PCA9570
This patch adds device tree bindings for the NXP PCA9570, a 4-bit I2C GPO expander. Signed-off-by: Sungbo Eo <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 16d44b6 commit 4dc5794

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/gpio/gpio-pca9570.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: PCA9570 I2C GPO expander
8+
9+
maintainers:
10+
- Sungbo Eo <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- nxp,pca9570
16+
17+
reg:
18+
maxItems: 1
19+
20+
gpio-controller: true
21+
22+
'#gpio-cells':
23+
const: 2
24+
25+
required:
26+
- compatible
27+
- reg
28+
- gpio-controller
29+
- "#gpio-cells"
30+
31+
additionalProperties: false
32+
33+
examples:
34+
- |
35+
i2c0 {
36+
#address-cells = <1>;
37+
#size-cells = <0>;
38+
39+
gpio@24 {
40+
compatible = "nxp,pca9570";
41+
reg = <0x24>;
42+
gpio-controller;
43+
#gpio-cells = <2>;
44+
};
45+
};
46+
47+
...

0 commit comments

Comments
 (0)