Debian Codegraph @

Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/gpio/fsl,qoriq-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Freescale MPC512x/MPC8xxx/QorIQ/Layerscape GPIO controller
8
9 maintainers:
10 - Frank Li <[email protected]>
11
12 properties:
13 compatible:
14 oneOf:
15 - enum:
16 - fsl,mpc5121-gpio
17 - fsl,mpc5125-gpio
18 - fsl,mpc8314-gpio
19 - fsl,mpc8349-gpio
20 - fsl,mpc8572-gpio
21 - fsl,mpc8610-gpio
22 - fsl,pq3-gpio
23 - items:
24 - enum:
25 - fsl,ls1021a-gpio
26 - fsl,ls1028a-gpio
27 - fsl,ls1043a-gpio
28 - fsl,ls1046a-gpio
29 - fsl,ls1088a-gpio
30 - fsl,ls2080a-gpio
31 - const: fsl,qoriq-gpio
32 - items:
33 - enum:
34 - fsl,mpc8308-gpio
35 - fsl,mpc8377-gpio
36 - fsl,mpc8378-gpio
37 - fsl,mpc8379-gpio
38 - const: fsl,mpc8349-gpio
39
40 reg:
41 maxItems: 1
42
43 interrupts:
44 maxItems: 1
45
46 "#gpio-cells":
47 const: 2
48
49 gpio-controller: true
50
51 interrupt-controller: true
52
53 "#interrupt-cells":
54 const: 2
55
56 gpio-line-names:
57 minItems: 1
58 maxItems: 32
59
60 little-endian:
61 $ref: /schemas/types.yaml#/definitions/flag
62 description:
63 GPIO registers are used as little endian. If not
64 present registers are used as big endian by default.
65
66 required:
67 - compatible
68 - reg
69 - interrupts
70 - "#gpio-cells"
71
72 additionalProperties: false
73
74 examples:
75 - |
76 gpio@1100 {
77 compatible = "fsl,mpc5125-gpio";
78 reg = <0x1100 0x080>;
79 interrupts = <78 0x8>;
80 gpio-controller;
81 #gpio-cells = <2>;
82 };
83
84 - |
85 #include <dt-bindings/interrupt-controller/arm-gic.h>
86 gpio@2300000 {
87 compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
88 reg = <0x2300000 0x10000>;
89 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
90 little-endian;
91 gpio-controller;
92 #gpio-cells = <2>;
93 interrupt-controller;
94 #interrupt-cells = <2>;
95 };