The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/gpio/mrvl-gpio.yaml

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 # SPDX-License-Identifier: GPL-2.0-only
    2 %YAML 1.2
    3 ---
    4 $id: http://devicetree.org/schemas/gpio/mrvl-gpio.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: Marvell PXA GPIO controller
    8 
    9 maintainers:
   10   - Linus Walleij <linus.walleij@linaro.org>
   11   - Bartosz Golaszewski <bgolaszewski@baylibre.com>
   12   - Rob Herring <robh+dt@kernel.org>
   13 
   14 allOf:
   15   - if:
   16       properties:
   17         compatible:
   18           contains:
   19             enum:
   20               - intel,pxa25x-gpio
   21               - intel,pxa26x-gpio
   22               - intel,pxa27x-gpio
   23               - intel,pxa3xx-gpio
   24     then:
   25       properties:
   26         interrupts:
   27           minItems: 3
   28           maxItems: 3
   29         interrupt-names:
   30           items:
   31             - const: gpio0
   32             - const: gpio1
   33             - const: gpio_mux
   34   - if:
   35       properties:
   36         compatible:
   37           contains:
   38             enum:
   39               - marvell,mmp-gpio
   40               - marvell,mmp2-gpio
   41     then:
   42       properties:
   43         interrupts:
   44           maxItems: 1
   45         interrupt-names:
   46           items:
   47             - const: gpio_mux
   48 
   49 properties:
   50   $nodename:
   51     pattern: '^gpio@[0-9a-f]+$'
   52 
   53   compatible:
   54     enum:
   55       - intel,pxa25x-gpio
   56       - intel,pxa26x-gpio
   57       - intel,pxa27x-gpio
   58       - intel,pxa3xx-gpio
   59       - marvell,mmp-gpio
   60       - marvell,mmp2-gpio
   61       - marvell,pxa93x-gpio
   62 
   63   reg:
   64     maxItems: 1
   65 
   66   clocks:
   67     maxItems: 1
   68 
   69   resets:
   70     maxItems: 1
   71 
   72   ranges: true
   73 
   74   '#address-cells':
   75     const: 1
   76 
   77   '#size-cells':
   78     const: 1
   79 
   80   gpio-controller: true
   81 
   82   '#gpio-cells':
   83     const: 2
   84 
   85   gpio-ranges: true
   86 
   87   interrupts: true
   88 
   89   interrupt-names: true
   90 
   91   interrupt-controller: true
   92 
   93   '#interrupt-cells':
   94     const: 2
   95 
   96 patternProperties:
   97   '^gpio@[0-9a-f]*$':
   98     type: object
   99     properties:
  100       reg:
  101         maxItems: 1
  102 
  103     required:
  104       - reg
  105 
  106     additionalProperties: false
  107 
  108 required:
  109   - compatible
  110   - '#address-cells'
  111   - '#size-cells'
  112   - reg
  113   - gpio-controller
  114   - '#gpio-cells'
  115   - interrupts
  116   - interrupt-names
  117   - interrupt-controller
  118   - '#interrupt-cells'
  119 
  120 additionalProperties: false
  121 
  122 examples:
  123   - |
  124     #include <dt-bindings/clock/pxa-clock.h>
  125     gpio@40e00000 {
  126         compatible = "intel,pxa3xx-gpio";
  127         #address-cells = <1>;
  128         #size-cells = <1>;
  129         reg = <0x40e00000 0x10000>;
  130         gpio-controller;
  131         #gpio-cells = <2>;
  132         interrupts = <8>, <9>, <10>;
  133         interrupt-names = "gpio0", "gpio1", "gpio_mux";
  134         clocks = <&clks CLK_GPIO>;
  135         interrupt-controller;
  136         #interrupt-cells = <2>;
  137     };
  138   - |
  139     #include <dt-bindings/clock/marvell,pxa910.h>
  140     gpio@d4019000 {
  141         compatible = "marvell,mmp-gpio";
  142         #address-cells = <1>;
  143         #size-cells = <1>;
  144         reg = <0xd4019000 0x1000>;
  145         gpio-controller;
  146         #gpio-cells = <2>;
  147         interrupts = <49>;
  148         interrupt-names = "gpio_mux";
  149         clocks = <&soc_clocks PXA910_CLK_GPIO>;
  150         resets = <&soc_clocks PXA910_CLK_GPIO>;
  151         interrupt-controller;
  152         #interrupt-cells = <2>;
  153         ranges;
  154 
  155         gpio@d4019000 {
  156             reg = <0xd4019000 0x4>;
  157         };
  158 
  159         gpio@d4019004 {
  160             reg = <0xd4019004 0x4>;
  161         };
  162 
  163         gpio@d4019008 {
  164             reg = <0xd4019008 0x4>;
  165         };
  166 
  167         gpio@d4019100 {
  168             reg = <0xd4019100 0x4>;
  169         };
  170      };
  171 
  172 ...

Cache object: f277a66e74f18ef6c890e402729c1c8d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.