Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/gpio/toshiba,gpio-visconti.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Toshiba Visconti ARM SoCs GPIO controller
0008 
0009 maintainers:
0010   - Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
0011 
0012 properties:
0013   compatible:
0014     items:
0015       - const: toshiba,gpio-tmpv7708
0016 
0017   reg:
0018     maxItems: 1
0019 
0020   "#gpio-cells":
0021     const: 2
0022 
0023   gpio-ranges: true
0024 
0025   gpio-controller: true
0026 
0027   interrupt-controller: true
0028 
0029   "#interrupt-cells":
0030     const: 2
0031 
0032   interrupts:
0033     description:
0034       interrupt mapping one per GPIO.
0035     minItems: 16
0036     maxItems: 16
0037 
0038 required:
0039   - compatible
0040   - reg
0041   - "#gpio-cells"
0042   - gpio-ranges
0043   - gpio-controller
0044   - interrupt-controller
0045   - "#interrupt-cells"
0046 
0047 additionalProperties: false
0048 
0049 examples:
0050   - |
0051       #include <dt-bindings/interrupt-controller/irq.h>
0052       #include <dt-bindings/interrupt-controller/arm-gic.h>
0053 
0054       soc {
0055         #address-cells = <2>;
0056         #size-cells = <2>;
0057 
0058         gpio: gpio@28020000 {
0059           compatible = "toshiba,gpio-tmpv7708";
0060           reg = <0 0x28020000 0 0x1000>;
0061           #gpio-cells = <0x2>;
0062           gpio-ranges = <&pmux 0 0 32>;
0063           gpio-controller;
0064           interrupt-controller;
0065           #interrupt-cells = <2>;
0066           interrupt-parent = <&gic>;
0067         };
0068       };
0069 ...