xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c9ccf3a3SEmmanuel Vadot%YAML 1.2
3c9ccf3a3SEmmanuel Vadot---
4c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml#
5c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c9ccf3a3SEmmanuel Vadot
7c9ccf3a3SEmmanuel Vadottitle: Samsung S3C/S5P/Exynos SoC pin controller - wake-up interrupt controller
8c9ccf3a3SEmmanuel Vadot
9c9ccf3a3SEmmanuel Vadotmaintainers:
10c9ccf3a3SEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
11c9ccf3a3SEmmanuel Vadot  - Sylwester Nawrocki <s.nawrocki@samsung.com>
12c9ccf3a3SEmmanuel Vadot  - Tomasz Figa <tomasz.figa@gmail.com>
13c9ccf3a3SEmmanuel Vadot
14c9ccf3a3SEmmanuel Vadotdescription: |
15c9ccf3a3SEmmanuel Vadot  This is a part of device tree bindings for Samsung S3C/S5P/Exynos SoC pin
16c9ccf3a3SEmmanuel Vadot  controller.
17c9ccf3a3SEmmanuel Vadot
18c9ccf3a3SEmmanuel Vadot  External wake-up interrupts for Samsung S3C/S5P/Exynos SoC pin controller.
19c9ccf3a3SEmmanuel Vadot  For S3C24xx, S3C64xx, S5PV210 and Exynos4210 compatible wake-up interrupt
20c9ccf3a3SEmmanuel Vadot  controllers, only one pin-controller device node can include external wake-up
21c9ccf3a3SEmmanuel Vadot  interrupts child node (in other words, only one External wake-up interrupts
22c9ccf3a3SEmmanuel Vadot  pin-controller is supported).
23c9ccf3a3SEmmanuel Vadot  For newer controllers, multiple pin-controller device node can include
24c9ccf3a3SEmmanuel Vadot  external wake-up interrupts child node.
25c9ccf3a3SEmmanuel Vadot
26c9ccf3a3SEmmanuel Vadot  See also Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml for
27c9ccf3a3SEmmanuel Vadot  additional information and example.
28c9ccf3a3SEmmanuel Vadot
29c9ccf3a3SEmmanuel Vadotproperties:
30c9ccf3a3SEmmanuel Vadot  compatible:
31*8d13bc63SEmmanuel Vadot    oneOf:
32*8d13bc63SEmmanuel Vadot      - enum:
33c9ccf3a3SEmmanuel Vadot          - samsung,s3c2410-wakeup-eint
34c9ccf3a3SEmmanuel Vadot          - samsung,s3c2412-wakeup-eint
35c9ccf3a3SEmmanuel Vadot          - samsung,s3c64xx-wakeup-eint
36c9ccf3a3SEmmanuel Vadot          - samsung,s5pv210-wakeup-eint
37c9ccf3a3SEmmanuel Vadot          - samsung,exynos4210-wakeup-eint
38c9ccf3a3SEmmanuel Vadot          - samsung,exynos7-wakeup-eint
39*8d13bc63SEmmanuel Vadot          - samsung,exynosautov920-wakeup-eint
40*8d13bc63SEmmanuel Vadot      - items:
41*8d13bc63SEmmanuel Vadot          - enum:
42*8d13bc63SEmmanuel Vadot              - samsung,exynos5433-wakeup-eint
43*8d13bc63SEmmanuel Vadot              - samsung,exynos7885-wakeup-eint
44c9ccf3a3SEmmanuel Vadot              - samsung,exynos850-wakeup-eint
45*8d13bc63SEmmanuel Vadot          - const: samsung,exynos7-wakeup-eint
46*8d13bc63SEmmanuel Vadot      - items:
47*8d13bc63SEmmanuel Vadot          - enum:
48*8d13bc63SEmmanuel Vadot              - google,gs101-wakeup-eint
49c9ccf3a3SEmmanuel Vadot              - samsung,exynosautov9-wakeup-eint
50*8d13bc63SEmmanuel Vadot          - const: samsung,exynos850-wakeup-eint
51*8d13bc63SEmmanuel Vadot          - const: samsung,exynos7-wakeup-eint
52c9ccf3a3SEmmanuel Vadot
53c9ccf3a3SEmmanuel Vadot  interrupts:
54c9ccf3a3SEmmanuel Vadot    description:
55c9ccf3a3SEmmanuel Vadot      Interrupt used by multiplexed external wake-up interrupts.
56c9ccf3a3SEmmanuel Vadot    minItems: 1
57c9ccf3a3SEmmanuel Vadot    maxItems: 6
58c9ccf3a3SEmmanuel Vadot
59c9ccf3a3SEmmanuel Vadotrequired:
60c9ccf3a3SEmmanuel Vadot  - compatible
61c9ccf3a3SEmmanuel Vadot
62c9ccf3a3SEmmanuel VadotallOf:
63c9ccf3a3SEmmanuel Vadot  - if:
64c9ccf3a3SEmmanuel Vadot      properties:
65c9ccf3a3SEmmanuel Vadot        compatible:
66c9ccf3a3SEmmanuel Vadot          contains:
67c9ccf3a3SEmmanuel Vadot            enum:
68c9ccf3a3SEmmanuel Vadot              - samsung,s3c2410-wakeup-eint
69c9ccf3a3SEmmanuel Vadot              - samsung,s3c2412-wakeup-eint
70c9ccf3a3SEmmanuel Vadot    then:
71c9ccf3a3SEmmanuel Vadot      properties:
72c9ccf3a3SEmmanuel Vadot        interrupts:
73c9ccf3a3SEmmanuel Vadot          minItems: 6
74c9ccf3a3SEmmanuel Vadot          maxItems: 6
75c9ccf3a3SEmmanuel Vadot      required:
76c9ccf3a3SEmmanuel Vadot        - interrupts
77c9ccf3a3SEmmanuel Vadot
78c9ccf3a3SEmmanuel Vadot  - if:
79c9ccf3a3SEmmanuel Vadot      properties:
80c9ccf3a3SEmmanuel Vadot        compatible:
81c9ccf3a3SEmmanuel Vadot          contains:
82c9ccf3a3SEmmanuel Vadot            const: samsung,s3c64xx-wakeup-eint
83c9ccf3a3SEmmanuel Vadot    then:
84c9ccf3a3SEmmanuel Vadot      properties:
85c9ccf3a3SEmmanuel Vadot        interrupts:
86c9ccf3a3SEmmanuel Vadot          minItems: 4
87c9ccf3a3SEmmanuel Vadot          maxItems: 4
88c9ccf3a3SEmmanuel Vadot      required:
89c9ccf3a3SEmmanuel Vadot        - interrupts
90c9ccf3a3SEmmanuel Vadot
91c9ccf3a3SEmmanuel Vadot  - if:
92c9ccf3a3SEmmanuel Vadot      properties:
93c9ccf3a3SEmmanuel Vadot        compatible:
94*8d13bc63SEmmanuel Vadot          # Match without "contains", to skip newer variants which are still
95*8d13bc63SEmmanuel Vadot          # compatible with samsung,exynos7-wakeup-eint
96c9ccf3a3SEmmanuel Vadot          enum:
97c9ccf3a3SEmmanuel Vadot            - samsung,s5pv210-wakeup-eint
98c9ccf3a3SEmmanuel Vadot            - samsung,exynos4210-wakeup-eint
99*8d13bc63SEmmanuel Vadot            - samsung,exynos5433-wakeup-eint
100c9ccf3a3SEmmanuel Vadot            - samsung,exynos7-wakeup-eint
101*8d13bc63SEmmanuel Vadot            - samsung,exynos7885-wakeup-eint
102c9ccf3a3SEmmanuel Vadot    then:
103c9ccf3a3SEmmanuel Vadot      properties:
104c9ccf3a3SEmmanuel Vadot        interrupts:
105c9ccf3a3SEmmanuel Vadot          minItems: 1
106c9ccf3a3SEmmanuel Vadot          maxItems: 1
107c9ccf3a3SEmmanuel Vadot      required:
108c9ccf3a3SEmmanuel Vadot        - interrupts
109c9ccf3a3SEmmanuel Vadot
110c9ccf3a3SEmmanuel Vadot  - if:
111c9ccf3a3SEmmanuel Vadot      properties:
112c9ccf3a3SEmmanuel Vadot        compatible:
113c9ccf3a3SEmmanuel Vadot          contains:
114c9ccf3a3SEmmanuel Vadot            enum:
115c9ccf3a3SEmmanuel Vadot              - samsung,exynos850-wakeup-eint
116*8d13bc63SEmmanuel Vadot              - samsung,exynosautov920-wakeup-eint
117c9ccf3a3SEmmanuel Vadot    then:
118c9ccf3a3SEmmanuel Vadot      properties:
119c9ccf3a3SEmmanuel Vadot        interrupts: false
120c9ccf3a3SEmmanuel Vadot
121c9ccf3a3SEmmanuel VadotadditionalProperties: false
122