Back to home page

OSCL-LXR

 
 

    


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-tpic2810.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: TPIC2810 GPIO controller bindings
0008 
0009 maintainers:
0010   - Aswath Govindraju <a-govindraju@ti.com>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - ti,tpic2810
0016 
0017   reg:
0018     maxItems: 1
0019 
0020   gpio-controller: true
0021 
0022   "#gpio-cells":
0023     const: 2
0024 
0025   gpio-line-names:
0026     minItems: 1
0027     maxItems: 32
0028 
0029 required:
0030   - compatible
0031   - reg
0032   - gpio-controller
0033   - "#gpio-cells"
0034 
0035 additionalProperties: false
0036 
0037 examples:
0038   - |
0039     #include <dt-bindings/gpio/gpio.h>
0040 
0041     i2c {
0042         #address-cells = <1>;
0043         #size-cells = <0>;
0044         gpio@60 {
0045             compatible = "ti,tpic2810";
0046             reg = <0x60>;
0047             gpio-controller;
0048             #gpio-cells = <2>;
0049             gpio-line-names = "LED A", "LED B", "LED C";
0050         };
0051     };