0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/gpio/gpio-pca9570.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: PCA9570 I2C GPO expander
0008
0009 maintainers:
0010 - Sungbo Eo <mans0n@gorani.run>
0011
0012 properties:
0013 compatible:
0014 enum:
0015 - nxp,pca9570
0016 - nxp,pca9571
0017
0018 reg:
0019 maxItems: 1
0020
0021 gpio-controller: true
0022
0023 '#gpio-cells':
0024 const: 2
0025
0026 required:
0027 - compatible
0028 - reg
0029 - gpio-controller
0030 - "#gpio-cells"
0031
0032 additionalProperties: false
0033
0034 examples:
0035 - |
0036 i2c0 {
0037 #address-cells = <1>;
0038 #size-cells = <0>;
0039
0040 gpio@24 {
0041 compatible = "nxp,pca9570";
0042 reg = <0x24>;
0043 gpio-controller;
0044 #gpio-cells = <2>;
0045 };
0046 };
0047
0048 ...