~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/interrupt-controller/loongson,liointc.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/interrupt-controller/loongson,liointc.yaml (Architecture i386) and /Documentation/devicetree/bindings/interrupt-controller/loongson,liointc.yaml (Architecture sparc)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/interrupt-c      4 $id: http://devicetree.org/schemas/interrupt-controller/loongson,liointc.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Loongson Local I/O Interrupt Controller      7 title: Loongson Local I/O Interrupt Controller
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Jiaxun Yang <jiaxun.yang@flygoat.com>           10   - Jiaxun Yang <jiaxun.yang@flygoat.com>
 11                                                    11 
 12 description: |                                     12 description: |
 13   This interrupt controller is found in the Lo     13   This interrupt controller is found in the Loongson-3 family of chips and
 14   Loongson-2K series chips, as the primary pac     14   Loongson-2K series chips, as the primary package interrupt controller which
 15   can route local I/O interrupt to interrupt l     15   can route local I/O interrupt to interrupt lines of cores.
 16   Be aware of the following points.                16   Be aware of the following points.
 17   1.The Loongson-2K0500 is a single core CPU;      17   1.The Loongson-2K0500 is a single core CPU;
 18   2.The Loongson-2K0500/2K1000 has 64 device i     18   2.The Loongson-2K0500/2K1000 has 64 device interrupt sources as inputs, so we
 19     need to define two nodes in dts{i} to desc     19     need to define two nodes in dts{i} to describe the "0-31" and "32-61" interrupt
 20     sources respectively.                          20     sources respectively.
 21                                                    21 
 22 allOf:                                             22 allOf:
 23   - $ref: /schemas/interrupt-controller.yaml#      23   - $ref: /schemas/interrupt-controller.yaml#
 24                                                    24 
 25 properties:                                        25 properties:
 26   compatible:                                      26   compatible:
 27     enum:                                          27     enum:
 28       - loongson,liointc-1.0                       28       - loongson,liointc-1.0
 29       - loongson,liointc-1.0a                      29       - loongson,liointc-1.0a
 30       - loongson,liointc-2.0                       30       - loongson,liointc-2.0
 31                                                    31 
 32   reg:                                             32   reg:
 33     minItems: 1                                    33     minItems: 1
 34     maxItems: 3                                    34     maxItems: 3
 35                                                    35 
 36   reg-names:                                       36   reg-names:
 37     items:                                         37     items:
 38       - const: main                                38       - const: main
 39       - const: isr0                                39       - const: isr0
 40       - const: isr1                                40       - const: isr1
 41     minItems: 2                                    41     minItems: 2
 42                                                    42 
 43   interrupt-controller: true                       43   interrupt-controller: true
 44                                                    44 
 45   interrupts:                                      45   interrupts:
 46     description:                                   46     description:
 47       Interrupt source of the CPU interrupts.      47       Interrupt source of the CPU interrupts.
 48     minItems: 1                                    48     minItems: 1
 49     maxItems: 4                                    49     maxItems: 4
 50                                                    50 
 51   interrupt-names:                                 51   interrupt-names:
 52     description: List of names for the parent      52     description: List of names for the parent interrupts.
 53     items:                                         53     items:
 54       pattern: int[0-3]                            54       pattern: int[0-3]
 55     minItems: 1                                    55     minItems: 1
 56     maxItems: 4                                    56     maxItems: 4
 57                                                    57 
 58   '#interrupt-cells':                              58   '#interrupt-cells':
 59     const: 2                                       59     const: 2
 60                                                    60 
 61   loongson,parent_int_map:                         61   loongson,parent_int_map:
 62     description: |                                 62     description: |
 63       This property points how the children in     63       This property points how the children interrupts will be mapped into CPU
 64       interrupt lines. Each cell refers to a p     64       interrupt lines. Each cell refers to a parent interrupt line from 0 to 3
 65       and each bit in the cell refers to a chi     65       and each bit in the cell refers to a child interrupt from 0 to 31.
 66       If a CPU interrupt line didn't connect w     66       If a CPU interrupt line didn't connect with liointc, then keep its
 67       cell with zero.                              67       cell with zero.
 68     $ref: /schemas/types.yaml#/definitions/uin     68     $ref: /schemas/types.yaml#/definitions/uint32-array
 69     minItems: 4                                    69     minItems: 4
 70     maxItems: 4                                    70     maxItems: 4
 71                                                    71 
 72 required:                                          72 required:
 73   - compatible                                     73   - compatible
 74   - reg                                            74   - reg
 75   - interrupts                                     75   - interrupts
 76   - interrupt-names                                76   - interrupt-names
 77   - interrupt-controller                           77   - interrupt-controller
 78   - '#interrupt-cells'                             78   - '#interrupt-cells'
 79   - loongson,parent_int_map                        79   - loongson,parent_int_map
 80                                                    80 
 81                                                    81 
 82 unevaluatedProperties: false                       82 unevaluatedProperties: false
 83                                                    83 
 84 if:                                                84 if:
 85   properties:                                      85   properties:
 86     compatible:                                    86     compatible:
 87       contains:                                    87       contains:
 88         enum:                                      88         enum:
 89           - loongson,liointc-2.0                   89           - loongson,liointc-2.0
 90                                                    90 
 91 then:                                              91 then:
 92   properties:                                      92   properties:
 93     reg:                                           93     reg:
 94       minItems: 2                                  94       minItems: 2
 95       maxItems: 3                                  95       maxItems: 3
 96                                                    96 
 97   required:                                        97   required:
 98     - reg-names                                    98     - reg-names
 99                                                    99 
100 else:                                             100 else:
101   properties:                                     101   properties:
102     reg:                                          102     reg:
103       maxItems: 1                                 103       maxItems: 1
104                                                   104 
105 examples:                                         105 examples:
106   - |                                             106   - |
107     iointc: interrupt-controller@3ff01400 {       107     iointc: interrupt-controller@3ff01400 {
108       compatible = "loongson,liointc-1.0";        108       compatible = "loongson,liointc-1.0";
109       reg = <0x3ff01400 0x64>;                    109       reg = <0x3ff01400 0x64>;
110                                                   110 
111       interrupt-controller;                       111       interrupt-controller;
112       #interrupt-cells = <2>;                     112       #interrupt-cells = <2>;
113                                                   113 
114       interrupt-parent = <&cpuintc>;              114       interrupt-parent = <&cpuintc>;
115       interrupts = <2>, <3>;                      115       interrupts = <2>, <3>;
116       interrupt-names = "int0", "int1";           116       interrupt-names = "int0", "int1";
117                                                   117 
118       loongson,parent_int_map = <0xf0ffffff>,     118       loongson,parent_int_map = <0xf0ffffff>, /* int0 */
119                                 <0x0f000000>,     119                                 <0x0f000000>, /* int1 */
120                                 <0x00000000>,     120                                 <0x00000000>, /* int2 */
121                                 <0x00000000>;     121                                 <0x00000000>; /* int3 */
122                                                   122 
123     };                                            123     };
124                                                   124 
125 ...                                               125 ...
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php