brintos

brintos / linux-shallow public Read only

0
0
Text · 2.7 KiB · b7c5022 Raw
133 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only2%YAML 1.23---4$id: http://devicetree.org/schemas/interrupt-controller/mrvl,intc.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Marvell MMP/Orion Interrupt controller8 9maintainers:10  - Andrew Lunn <andrew@lunn.ch>11  - Gregory Clement <gregory.clement@bootlin.com>12 13allOf:14  - if:15      properties:16        compatible:17          not:18            contains:19              const: marvell,orion-intc20    then:21      required:22        - mrvl,intc-nr-irqs23  - if:24      properties:25        compatible:26          contains:27            enum:28              - mrvl,mmp-intc29              - mrvl,mmp2-intc30    then:31      properties:32        reg:33          maxItems: 134  - if:35      properties:36        compatible:37          contains:38            enum:39              - marvell,mmp3-intc40              - mrvl,mmp2-mux-intc41    then:42      properties:43        reg:44          minItems: 245  - if:46      properties:47        compatible:48          contains:49            const: mrvl,mmp2-mux-intc50    then:51      properties:52        interrupts:53          maxItems: 154        reg-names:55          items:56            - const: mux status57            - const: mux mask58      required:59        - interrupts60    else:61      properties:62        interrupts: false63 64properties:65  '#interrupt-cells':66    const: 167 68  compatible:69    enum:70      - mrvl,mmp-intc71      - mrvl,mmp2-intc72      - marvell,mmp3-intc73      - marvell,orion-intc74      - mrvl,mmp2-mux-intc75 76  reg:77    minItems: 178    maxItems: 279 80  reg-names: true81 82  interrupts: true83 84  interrupt-controller: true85 86  mrvl,intc-nr-irqs:87    description: |88      Specifies the number of interrupts in the interrupt controller.89    $ref: /schemas/types.yaml#/definitions/uint3290 91  mrvl,clr-mfp-irq:92    description: |93      Specifies the interrupt that needs to clear MFP edge detection first.94    $ref: /schemas/types.yaml#/definitions/uint3295 96required:97  - '#interrupt-cells'98  - compatible99  - reg100  - interrupt-controller101 102additionalProperties: false103 104examples:105  - |106    interrupt-controller@d4282000 {107        compatible = "mrvl,mmp2-intc";108        interrupt-controller;109        #interrupt-cells = <1>;110        reg = <0xd4282000 0x1000>;111        mrvl,intc-nr-irqs = <64>;112    };113 114    interrupt-controller@d4282150 {115        compatible = "mrvl,mmp2-mux-intc";116        interrupts = <4>;117        interrupt-controller;118        #interrupt-cells = <1>;119        reg = <0x150 0x4>, <0x168 0x4>;120        reg-names = "mux status", "mux mask";121        mrvl,intc-nr-irqs = <2>;122    };123  - |124    interrupt-controller@fed20204 {125        compatible = "marvell,orion-intc";126        interrupt-controller;127        #interrupt-cells = <1>;128        reg = <0xfed20204 0x04>,129              <0xfed20214 0x04>;130    };131 132...133