From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 193C3C54ED1 for ; Tue, 27 May 2025 07:27:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0MZlNFyYH4CtLTiBj7gyQdLt+LxQkhFDLBtbzodDpk0=; b=P1UMWss+oqGYg+g2orEntN7wi8 37YpO/yDEqUbcxfqzozccz4Pe8yYS6CoYjbmyU2txTpG4TXAfwNZ5CjVszKuEKQsLXMXNJQrhy5zs T2U5Ib1ntEcx04KEf42eFaPL4Ufo8BoTF30K6okqLspojcxypooYE5b1GLbTEKXVzU9eieXDMyf1Z Feww4KFe7NFOc0BkZo1LFiMdf8nNoPKJ7wQDgkNAzlmbkoH19LcNjWS5fLzJFsU7O+ijBZOsWUXmL umFnVGwNvqkrjZYtheykkyBl0U/X0LKkmwuoKHI7R10YnVXxa2igYRrJylNtrhyjJtaFWctVdSdVo 6aEYiDSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uJoiF-0000000A9Zt-1tYI; Tue, 27 May 2025 07:27:03 +0000 Received: from mail.actia.se ([212.181.117.226]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uJoXl-0000000A8LO-3P0R for linux-arm-kernel@lists.infradead.org; Tue, 27 May 2025 07:16:14 +0000 Received: from S036ANL.actianordic.se (10.12.31.117) by S036ANL.actianordic.se (10.12.31.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 27 May 2025 09:16:03 +0200 Received: from S036ANL.actianordic.se ([fe80::e13e:1feb:4ea6:ec69]) by S036ANL.actianordic.se ([fe80::e13e:1feb:4ea6:ec69%3]) with mapi id 15.01.2507.039; Tue, 27 May 2025 09:16:03 +0200 From: John Ernberg To: =?iso-8859-2?Q?Horia_Geant=E3?= , Pankaj Gupta , Gaurav Jain , Herbert Xu , "David S . Miller" , "Rob Herring" , Krzysztof Kozlowski , "Conor Dooley" , Shawn Guo , Sascha Hauer CC: Frank Li , Pengutronix Kernel Team , Fabio Estevam , Thomas Richard , "linux-crypto@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "imx@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , John Ernberg Subject: [PATCH v2 3/4] dt-bindings: crypto: fsl,sec-v4.0: Add power domains for iMX8QM and iMX8QXP Thread-Topic: [PATCH v2 3/4] dt-bindings: crypto: fsl,sec-v4.0: Add power domains for iMX8QM and iMX8QXP Thread-Index: AQHbztc04cnioEWzpkWd5kjCyMGVVA== Date: Tue, 27 May 2025 07:16:03 +0000 Message-ID: <20250527071552.1424997-4-john.ernberg@actia.se> References: <20250527071552.1424997-1-john.ernberg@actia.se> In-Reply-To: <20250527071552.1424997-1-john.ernberg@actia.se> Accept-Language: en-US, sv-SE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.49.0 x-originating-ip: [10.12.12.63] x-esetresult: clean, is OK x-esetid: 37303A2955B1445360726A Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250527_001613_848801_52FF5A99 X-CRM114-Status: UNSURE ( 8.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org NXP SoCs like the iMX8QM, iMX8QXP or iMX8DXP use power domains for resource management. Allow specifying them for such SoCs. Signed-off-by: John Ernberg --- v2: - Adjust commit message (Frank Li) - Only allow power-domains when compatible with imx8qm (Frank Li) --- .../bindings/crypto/fsl,sec-v4.0.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml b/D= ocumentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml index 75afa441e019..a3c938eb553e 100644 --- a/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml +++ b/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml @@ -48,6 +48,9 @@ properties: - fsl,imx6ul-caam - fsl,sec-v5.0 - const: fsl,sec-v4.0 + - items: + - const: fsl,imx8qm-caam + - const: fsl,sec-v4.0 - const: fsl,sec-v4.0 =20 reg: @@ -77,6 +80,9 @@ properties: interrupts: maxItems: 1 =20 + power-domains: + maxItems: 1 + fsl,sec-era: description: Defines the 'ERA' of the SEC device. $ref: /schemas/types.yaml#/definitions/uint32 @@ -108,6 +114,9 @@ patternProperties: - items: - const: fsl,sec-v5.0-job-ring - const: fsl,sec-v4.0-job-ring + - items: + - const: fsl,imx8qm-job-ring + - const: fsl,sec-v4.0-job-ring - const: fsl,sec-v4.0-job-ring =20 reg: @@ -116,6 +125,9 @@ patternProperties: interrupts: maxItems: 1 =20 + power-domains: + maxItems: 1 + fsl,liodn: description: Specifies the LIODN to be used in conjunction with the ppid-to-l= iodn @@ -126,6 +138,18 @@ patternProperties: items: - maximum: 0xfff =20 + if: + properties: + compatible: + contains: + const: fsl,imx8qm-job-ring + then: + required: + - power-domains + else: + properties: + power-domains: false + '^rtic@[0-9a-f]+$': type: object additionalProperties: false @@ -212,6 +236,18 @@ required: - reg - ranges =20 +if: + properties: + compatible: + contains: + const: fsl,imx8qm-caam +then: + required: + - power-domains +else: + properties: + power-domains: false + additionalProperties: false =20 examples: --=20 2.49.0