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/ti,omap-gpio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: OMAP GPIO controller bindings
0008 
0009 maintainers:
0010   - Grygorii Strashko <grygorii.strashko@ti.com>
0011 
0012 description: |
0013   The general-purpose interface combines general-purpose input/output (GPIO) banks.
0014   Each GPIO banks provides up to 32 dedicated general-purpose pins with input
0015   and output capabilities; interrupt generation in active mode and wake-up
0016   request generation in idle mode upon the detection of external events.
0017 
0018 properties:
0019   compatible:
0020     oneOf:
0021       - enum:
0022           - ti,omap2-gpio
0023           - ti,omap3-gpio
0024           - ti,omap4-gpio
0025       - items:
0026           - const: ti,am4372-gpio
0027           - const: ti,omap4-gpio
0028 
0029   reg:
0030     maxItems: 1
0031 
0032   gpio-controller: true
0033 
0034   '#gpio-cells':
0035     const: 2
0036 
0037   interrupt-controller: true
0038 
0039   '#interrupt-cells':
0040     const: 2
0041 
0042   interrupts:
0043     maxItems: 1
0044 
0045   gpio-ranges: true
0046 
0047   gpio-line-names:
0048     minItems: 1
0049     maxItems: 32
0050 
0051   ti,gpio-always-on:
0052     $ref: /schemas/types.yaml#/definitions/flag
0053     description:
0054       Indicates if a GPIO bank is always powered and will never lose its logic state.
0055 
0056   ti,hwmods:
0057     $ref: /schemas/types.yaml#/definitions/string
0058     deprecated: true
0059     description:
0060       Name of the hwmod associated with the GPIO. Needed on some legacy OMAP
0061       SoCs which have not been converted to the ti,sysc interconnect hierarachy.
0062 
0063   ti,no-reset-on-init:
0064     $ref: /schemas/types.yaml#/definitions/flag
0065     deprecated: true
0066     description:
0067       Do not reset on init. Used with ti,hwmods on some legacy OMAP SoCs which
0068       have not been converted to the ti,sysc interconnect hierarachy.
0069 
0070 patternProperties:
0071   "^(.+-hog(-[0-9]+)?)$":
0072     type: object
0073 
0074     required:
0075       - gpio-hog
0076 
0077 required:
0078   - compatible
0079   - reg
0080   - gpio-controller
0081   - "#gpio-cells"
0082   - interrupt-controller
0083   - "#interrupt-cells"
0084   - interrupts
0085 
0086 additionalProperties: false
0087 
0088 examples:
0089   - |
0090     #include <dt-bindings/gpio/gpio.h>
0091 
0092     gpio0: gpio@0 {
0093         compatible = "ti,omap4-gpio";
0094         reg = <0x0 0x1000>;
0095         gpio-controller;
0096         #gpio-cells = <2>;
0097         interrupt-controller;
0098         #interrupt-cells = <2>;
0099         interrupts = <96>;
0100         ti,gpio-always-on;
0101 
0102         ls-buf-en-hog {
0103             gpio-hog;
0104             gpios = <10 GPIO_ACTIVE_HIGH>;
0105             output-high;
0106             line-name = "LS_BUF_EN";
0107         };
0108     };