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/arm/vexpress-sysreg.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: ARM Versatile Express system registers bindings
0008 
0009 maintainers:
0010   - Andre Przywara <andre.przywara@arm.com>
0011 
0012 description:
0013   This is a system control registers block, providing multiple low level
0014   platform functions like board detection and identification, software
0015   interrupt generation, MMC and NOR Flash control, etc.
0016 
0017 properties:
0018   compatible:
0019     const: arm,vexpress-sysreg
0020 
0021   reg:
0022     maxItems: 1
0023 
0024   "#address-cells":
0025     const: 1
0026 
0027   "#size-cells":
0028     const: 1
0029 
0030   ranges: true
0031 
0032   gpio-controller:
0033     deprecated: true
0034 
0035   "#gpio-cells":
0036     deprecated: true
0037     const: 2
0038 
0039 additionalProperties: false
0040 
0041 patternProperties:
0042   '^gpio@[0-9a-f]+$':
0043     type: object
0044     additionalProperties: false
0045     description:
0046       GPIO children
0047 
0048     properties:
0049       compatible:
0050         enum:
0051           - arm,vexpress-sysreg,sys_led
0052           - arm,vexpress-sysreg,sys_mci
0053           - arm,vexpress-sysreg,sys_flash
0054 
0055       gpio-controller: true
0056 
0057       "#gpio-cells":
0058         const: 2
0059         description: |
0060           The first cell is the function number:
0061           for sys_led : 0..7 = LED 0..7
0062           for sys_mci : 0 = MMC CARDIN, 1 = MMC WPROT
0063           for sys_flash : 0 = NOR FLASH WPn
0064           The second cell can take standard GPIO flags.
0065 
0066       reg:
0067         maxItems: 1
0068 
0069     required:
0070       - compatible
0071       - reg
0072       - gpio-controller
0073       - "#gpio-cells"
0074 
0075 required:
0076   - compatible
0077   - reg
0078 
0079 examples:
0080   - |
0081     sysreg@0 {
0082         compatible = "arm,vexpress-sysreg";
0083         reg = <0x00000 0x1000>;
0084         #address-cells = <1>;
0085         #size-cells = <1>;
0086         ranges = <0 0 0x1000>;
0087 
0088         v2m_led_gpios: gpio@8 {
0089             compatible = "arm,vexpress-sysreg,sys_led";
0090             reg = <0x008 4>;
0091             gpio-controller;
0092             #gpio-cells = <2>;
0093         };
0094     };
0095 
0096 ...