Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: crypto: fsl,sec-v4.0: Add power domains for iMX8QM and iMX8QXP

NXP SoCs like the iMX8QM, iMX8QXP or iMX8DXP use power domains for
resource management.

Add compatible strings for these SoCs (QXP and DXP gets to share as their
only difference is a core-count, Q=Quad core and D=Dual core), and allow
power-domains for them only. Keep the old restriction for others.

Signed-off-by: John Ernberg <john.ernberg@actia.se>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

John Ernberg and committed by
Herbert Xu
2df6ee32 ac8aff00

+40 -1
+40 -1
Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
··· 46 46 - items: 47 47 - enum: 48 48 - fsl,imx6ul-caam 49 + - fsl,imx8qm-caam 50 + - fsl,imx8qxp-caam 49 51 - fsl,sec-v5.0 50 52 - const: fsl,sec-v4.0 51 53 - const: fsl,sec-v4.0 ··· 79 77 interrupts: 80 78 maxItems: 1 81 79 80 + power-domains: 81 + maxItems: 1 82 + 82 83 fsl,sec-era: 83 84 description: Defines the 'ERA' of the SEC device. 84 85 $ref: /schemas/types.yaml#/definitions/uint32 ··· 111 106 - const: fsl,sec-v5.0-job-ring 112 107 - const: fsl,sec-v4.0-job-ring 113 108 - items: 114 - - const: fsl,sec-v5.0-job-ring 109 + - enum: 110 + - fsl,imx8qm-job-ring 111 + - fsl,imx8qxp-job-ring 112 + - fsl,sec-v5.0-job-ring 115 113 - const: fsl,sec-v4.0-job-ring 116 114 - const: fsl,sec-v4.0-job-ring 117 115 ··· 122 114 maxItems: 1 123 115 124 116 interrupts: 117 + maxItems: 1 118 + 119 + power-domains: 125 120 maxItems: 1 126 121 127 122 fsl,liodn: ··· 136 125 $ref: /schemas/types.yaml#/definitions/uint32-array 137 126 items: 138 127 - maximum: 0xfff 128 + allOf: 129 + - if: 130 + properties: 131 + compatible: 132 + contains: 133 + enum: 134 + - fsl,imx8qm-job-ring 135 + - fsl,imx8qxp-job-ring 136 + then: 137 + required: 138 + - power-domains 139 + else: 140 + properties: 141 + power-domains: false 139 142 140 143 '^rtic@[0-9a-f]+$': 141 144 type: object ··· 236 211 - compatible 237 212 - reg 238 213 - ranges 214 + 215 + if: 216 + properties: 217 + compatible: 218 + contains: 219 + enum: 220 + - fsl,imx8qm-caam 221 + - fsl,imx8qxp-caam 222 + then: 223 + required: 224 + - power-domains 225 + else: 226 + properties: 227 + power-domains: false 239 228 240 229 additionalProperties: false 241 230