Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Samsung S3C/S5P/Exynos SoC pin controller - wake-up interrupt controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Krzysztof Kozlowski <krzk@kernel.org> |
| 11 | - Sylwester Nawrocki <s.nawrocki@samsung.com> |
| 12 | - Tomasz Figa <tomasz.figa@gmail.com> |
| 13 | |
| 14 | description: | |
| 15 | This is a part of device tree bindings for Samsung S3C/S5P/Exynos SoC pin |
| 16 | controller. |
| 17 | |
| 18 | External wake-up interrupts for Samsung S3C/S5P/Exynos SoC pin controller. |
| 19 | For S3C24xx, S3C64xx, S5PV210 and Exynos4210 compatible wake-up interrupt |
| 20 | controllers, only one pin-controller device node can include external wake-up |
| 21 | interrupts child node (in other words, only one External wake-up interrupts |
| 22 | pin-controller is supported). |
| 23 | For newer controllers, multiple pin-controller device node can include |
| 24 | external wake-up interrupts child node. |
| 25 | |
| 26 | See also Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml for |
| 27 | additional information and example. |
| 28 | |
| 29 | properties: |
| 30 | compatible: |
| 31 | enum: |
| 32 | - samsung,s3c2410-wakeup-eint |
| 33 | - samsung,s3c2412-wakeup-eint |
| 34 | - samsung,s3c64xx-wakeup-eint |
| 35 | - samsung,s5pv210-wakeup-eint |
| 36 | - samsung,exynos4210-wakeup-eint |
| 37 | - samsung,exynos7-wakeup-eint |
| 38 | - samsung,exynos850-wakeup-eint |
| 39 | - samsung,exynosautov9-wakeup-eint |
| 40 | |
| 41 | interrupts: |
| 42 | description: |
| 43 | Interrupt used by multiplexed external wake-up interrupts. |
| 44 | minItems: 1 |
| 45 | maxItems: 6 |
| 46 | |
| 47 | required: |
| 48 | - compatible |
| 49 | |
| 50 | allOf: |
| 51 | - if: |
| 52 | properties: |
| 53 | compatible: |
| 54 | contains: |
| 55 | enum: |
| 56 | - samsung,s3c2410-wakeup-eint |
| 57 | - samsung,s3c2412-wakeup-eint |
| 58 | then: |
| 59 | properties: |
| 60 | interrupts: |
| 61 | minItems: 6 |
| 62 | maxItems: 6 |
| 63 | required: |
| 64 | - interrupts |
| 65 | |
| 66 | - if: |
| 67 | properties: |
| 68 | compatible: |
| 69 | contains: |
| 70 | const: samsung,s3c64xx-wakeup-eint |
| 71 | then: |
| 72 | properties: |
| 73 | interrupts: |
| 74 | minItems: 4 |
| 75 | maxItems: 4 |
| 76 | required: |
| 77 | - interrupts |
| 78 | |
| 79 | - if: |
| 80 | properties: |
| 81 | compatible: |
| 82 | contains: |
| 83 | enum: |
| 84 | - samsung,s5pv210-wakeup-eint |
| 85 | - samsung,exynos4210-wakeup-eint |
| 86 | - samsung,exynos7-wakeup-eint |
| 87 | then: |
| 88 | properties: |
| 89 | interrupts: |
| 90 | minItems: 1 |
| 91 | maxItems: 1 |
| 92 | required: |
| 93 | - interrupts |
| 94 | |
| 95 | - if: |
| 96 | properties: |
| 97 | compatible: |
| 98 | contains: |
| 99 | enum: |
| 100 | - samsung,exynos850-wakeup-eint |
| 101 | - samsung,exynosautov9-wakeup-eint |
| 102 | then: |
| 103 | properties: |
| 104 | interrupts: false |
| 105 | |
| 106 | additionalProperties: false |