brintos

brintos / linux-shallow public Read only

0
0
Text · 1.9 KiB · be6e3b5 Raw
97 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/arm/vexpress-sysreg.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: ARM Versatile Express system registers8 9maintainers:10  - Andre Przywara <andre.przywara@arm.com>11 12description:13  This is a system control registers block, providing multiple low level14  platform functions like board detection and identification, software15  interrupt generation, MMC and NOR Flash control, etc.16 17properties:18  compatible:19    const: arm,vexpress-sysreg20 21  reg:22    maxItems: 123 24  "#address-cells":25    const: 126 27  "#size-cells":28    const: 129 30  ranges: true31 32  gpio-controller:33    deprecated: true34 35  "#gpio-cells":36    deprecated: true37    const: 238 39additionalProperties: false40 41patternProperties:42  '^gpio@[0-9a-f]+$':43    type: object44    additionalProperties: false45    description:46      GPIO children47 48    properties:49      compatible:50        enum:51          - arm,vexpress-sysreg,sys_led52          - arm,vexpress-sysreg,sys_mci53          - arm,vexpress-sysreg,sys_flash54 55      gpio-controller: true56 57      "#gpio-cells":58        const: 259        description: |60          The first cell is the function number:61          for sys_led : 0..7 = LED 0..762          for sys_mci : 0 = MMC CARDIN, 1 = MMC WPROT63          for sys_flash : 0 = NOR FLASH WPn64          The second cell can take standard GPIO flags.65 66      reg:67        maxItems: 168 69    required:70      - compatible71      - reg72      - gpio-controller73      - "#gpio-cells"74 75required:76  - compatible77  - reg78 79examples:80  - |81    sysreg@0 {82        compatible = "arm,vexpress-sysreg";83        reg = <0x00000 0x1000>;84        #address-cells = <1>;85        #size-cells = <1>;86        ranges = <0 0 0x1000>;87 88        v2m_led_gpios: gpio@8 {89            compatible = "arm,vexpress-sysreg,sys_led";90            reg = <0x008 4>;91            gpio-controller;92            #gpio-cells = <2>;93        };94    };95 96...97