From patchwork Tue May 27 07:16:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Ernberg X-Patchwork-Id: 892825 Received: from mail.actia.se (mail.actia.se [212.181.117.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2A712046BA; Tue, 27 May 2025 07:16:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.181.117.226 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748330172; cv=none; b=mcXg+tb/lYOd2TwHgnhgXMje+Y/6vyt293DnQ9tQFtn0aQQ2WfBUeQi+7+uTzmrBBmQeH4WCoi5ZBW6lD5ZQdXkgpccyCz3oGS7pPsZY60zu8sOAxlhF8Jzzym48um2jl3zEsZetEHgUNdPYsjuiwwurjW1fyCI2akNziERT88c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748330172; c=relaxed/simple; bh=ta7asWlO0COd8RPkPk8QtdYaLFognLSHGjqelnh0Tv4=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=O2qx0D2Zmb48w0Xnnb37vorRP/3LtJzEB0yNMgWloBSFnmZpH6kk+lB40Arz0Af5IUpT79t6KsO6LaNYAqIfPY/0NPxPexHN5gPd/14u3q8BDA3+614gauUD5Mjh2P19gDN7KzHGcoqeOs2VSz9KMLheUrTilw4FZ6gfcTuuQZo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=actia.se; spf=pass smtp.mailfrom=actia.se; arc=none smtp.client-ip=212.181.117.226 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=actia.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=actia.se 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-esetresult: clean, is OK x-esetid: 37303A2955B1445360726A Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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/Documentation/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 reg: @@ -77,6 +80,9 @@ properties: interrupts: maxItems: 1 + 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 reg: @@ -116,6 +125,9 @@ patternProperties: interrupts: maxItems: 1 + power-domains: + maxItems: 1 + fsl,liodn: description: Specifies the LIODN to be used in conjunction with the ppid-to-liodn @@ -126,6 +138,18 @@ patternProperties: items: - maximum: 0xfff + 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 +if: + properties: + compatible: + contains: + const: fsl,imx8qm-caam +then: + required: + - power-domains +else: + properties: + power-domains: false + additionalProperties: false examples: