From patchwork Mon Sep 25 11:12:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 726760 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54550CE7A81 for ; Mon, 25 Sep 2023 11:12:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbjIYLMy (ORCPT ); Mon, 25 Sep 2023 07:12:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230438AbjIYLMx (ORCPT ); Mon, 25 Sep 2023 07:12:53 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6350C0; Mon, 25 Sep 2023 04:12:43 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6927528c01dso965159b3a.0; Mon, 25 Sep 2023 04:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695640363; x=1696245163; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Uq4NPhSzxqypY2uN0jYUqe7Hvuv2Db/rhjFJPE8U29M=; b=M42mMMBdEpLrdIQIcrEmKxbcmoSY3gAKhpI8SCr8J0ludBbpM/bVDpMf70kr34T0Y9 PeC5sPWuU5aLpf0uGt6qg8/9mpNcInFdb3aIm2QqXBW4fbqIAFI7d3kJQtdte1pNtAsP M+H0egXVO833PLrYNVM9iueKW2Vsyf2X/de61gCZ8XUEkZ8ftlwyn24wY30RpcnuuxHg Kp/igCPZAmGk4T1NR1Gg6Y37lxzdmQD46cSUg9RTlfffmJzIn9lV/hNF5FKkYFADdkX+ xKHV430kKs83amyqKv4l6vkkTx6mgxvTsygGY2Mi+vQpYoo5mFuUtBok+WrhvHHjDpJP fKgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695640363; x=1696245163; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Uq4NPhSzxqypY2uN0jYUqe7Hvuv2Db/rhjFJPE8U29M=; b=aMv2i+sS1k+zpkdEWNehaldpFA9vbcvz6Albaj5zJtGXA5tO/aavEyjBDRhRdYVUFG 61bC5V3I4Bu4zjYuTd0UlbXfpFBRx+ict/Vxn9Iupf2p/4tdNWoSyz9jOMHYVid0u5LN bsnpPpRkB69hDO0JiyjbUiLnl4r2Foquos5Eq7xvGBqRuekpAt6LAAlCbWyJunfgvg4o eAUp9JGq/y342BqqKema7z/3Fx/kYGMip8pJXrXgsbabRGvp8qqY0B+9xNr9iOnhvluh a1xLxr098p/E3KQRE01vVsX9Yogk+yi65vEEtMMs9VW6w7thZnC7pMwlAP0J6ar/ZklY 633A== X-Gm-Message-State: AOJu0YwRTMXyARQAhFeck853JMOyGEXjpyBav5pYXKtF9fKB1srOXJD1 kM4Uzhs1MOHjj/xC2HRIppw= X-Google-Smtp-Source: AGHT+IEQXmRz8MMHegXa6LToyXN0/clS+jq/kPQf5mZ09Gu5T9cXw4V+pF7fqgUsi7HaZJQHV0bS0g== X-Received: by 2002:a05:6a00:2f4d:b0:68f:c9f6:f366 with SMTP id ff13-20020a056a002f4d00b0068fc9f6f366mr7621167pfb.0.1695640363052; Mon, 25 Sep 2023 04:12:43 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:fbad:220b:bad3:838c]) by smtp.gmail.com with ESMTPSA id 131-20020a630289000000b00528db73ed70sm7832772pgc.3.2023.09.25.04.12.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 04:12:42 -0700 (PDT) From: Fabio Estevam To: herbert@gondor.apana.org.au Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, Fabio Estevam Subject: [PATCH v2 1/3] dt-bindings: crypto: fsl-imx-sahara: Shorten the title Date: Mon, 25 Sep 2023 08:12:18 -0300 Message-Id: <20230925111220.924090-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Fabio Estevam In the title, there is no need to mention "included in some i.MX chips" as it is too vague. Remove it to make it simpler. While at it, also remove the extra space in the first reg entry. Signed-off-by: Fabio Estevam --- Changes since v1: - Squash the removal of leading space. (Krzysztof) Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml index d531f3af3ea4..bad82491cd6a 100644 --- a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml +++ b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/crypto/fsl-imx-sahara.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Freescale SAHARA Cryptographic Accelerator included in some i.MX chips +title: Freescale SAHARA Cryptographic Accelerator maintainers: - Steffen Trumtrar @@ -32,6 +32,6 @@ examples: - | crypto@10025000 { compatible = "fsl,imx27-sahara"; - reg = < 0x10025000 0x800>; + reg = <0x10025000 0x800>; interrupts = <75>; }; From patchwork Mon Sep 25 11:12:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 726146 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 807D1CE7A81 for ; Mon, 25 Sep 2023 11:12:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229537AbjIYLM6 (ORCPT ); Mon, 25 Sep 2023 07:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjIYLM5 (ORCPT ); Mon, 25 Sep 2023 07:12:57 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E77EDEE; Mon, 25 Sep 2023 04:12:47 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-79fab2caf70so28366339f.1; Mon, 25 Sep 2023 04:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695640367; x=1696245167; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xCqerfCc4AP3+BzhaJLjuWZRNSUdYSAiu9gWle70v2Q=; b=C/05FtRckKaxFw/ZjpHhrHoNVhVZZqQ1nqhsdG9UosKV0rLMTXc9jyuJ60fVZHZAfU RfrfpINck3+am9+Dacwm8uJhek4YjMfgCv+4aHOXX9MEGg3GO32vxYdyOHMXBoXmiaFR MXCOKqNbH5mAqpL0YY2wS7VLiKzHCe6ALjAtOwJdJftGUKBZbeSXItiOTBDQHiN85fDb wBNfA4IpGvTJ8X9bQjyHYOXG6UKurBZNxwqvFsfpvwTNGNRzB7qP+uzoW2CC/gA4no1S ahwX6j0aQFs3KyYiviQL3qP/3fUeGo98uyOYnNWl76OBt1EKWYKL3m6LYGCnrh6vPjmG sN9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695640367; x=1696245167; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xCqerfCc4AP3+BzhaJLjuWZRNSUdYSAiu9gWle70v2Q=; b=YJPGY42zz8leT0VQhgnEcjBUdTJSEFqB9Z2kuvCvHA/PPexAnZXVyHjUFd6DmdGXP8 fhZRsfZnHpzF4RmgBYAIaOqKuTGUEqqkuE9zzadu0mwpdYbyNXCFDjSpX0la5r4ZhWq6 xeTRvDV1zoG3mEvIoP5hqC3PE/aW+6A0aKdPqvP0oBPgCZq0XzbzOGSxj0Xa2SJMVMMi zqHrTLBkxKKv5xl+5YE9dCfJIa89vm8JDV5xtQHhU3mTH6H9YCNl1m9PZfIfz9ovsi5e PoZ5G3yak3cLM56HPOhY/3DLZyUCdrftI3NYMc3rmJelsZ7c36cn3NodsIB+R/QXGq4D 1xyg== X-Gm-Message-State: AOJu0Yw8A0+j44O5KQEH1TSBZX7Im7COJ0m0V9FyX0sTjD7WUSvByl41 452XJzqRxjXSz27MuB4GlSa2lIhQBS4= X-Google-Smtp-Source: AGHT+IEQnQhELepoCHRPjBr07Qbm9SqGjVs+6L6GrptFiQ4xKeTjooEeb+yOnGeBbjNPGAdnoBaW7g== X-Received: by 2002:a92:d40e:0:b0:34f:a4f0:4fc4 with SMTP id q14-20020a92d40e000000b0034fa4f04fc4mr5898947ilm.2.1695640366963; Mon, 25 Sep 2023 04:12:46 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:fbad:220b:bad3:838c]) by smtp.gmail.com with ESMTPSA id 131-20020a630289000000b00528db73ed70sm7832772pgc.3.2023.09.25.04.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 04:12:46 -0700 (PDT) From: Fabio Estevam To: herbert@gondor.apana.org.au Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, Fabio Estevam , Krzysztof Kozlowski Subject: [PATCH v2 2/3] dt-bindings: crypto: fsl-imx-sahara: Document the clocks Date: Mon, 25 Sep 2023 08:12:19 -0300 Message-Id: <20230925111220.924090-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230925111220.924090-1-festevam@gmail.com> References: <20230925111220.924090-1-festevam@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Fabio Estevam Describe the clocks (ipg and ahb) needed by Sahara block to operate. Signed-off-by: Fabio Estevam Reviewed-by: Krzysztof Kozlowski --- Changes since v1: - Simplify the commit log. (Krzysztof) .../bindings/crypto/fsl-imx-sahara.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml index bad82491cd6a..9dbfc15510a8 100644 --- a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml +++ b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml @@ -21,17 +21,34 @@ properties: interrupts: maxItems: 1 + clocks: + items: + - description: Sahara IPG clock + - description: Sahara AHB clock + + clock-names: + items: + - const: ipg + - const: ahb + required: - compatible - reg - interrupts + - clocks + - clock-names additionalProperties: false examples: - | + #include + crypto@10025000 { compatible = "fsl,imx27-sahara"; reg = <0x10025000 0x800>; interrupts = <75>; + clocks = <&clks IMX27_CLK_SAHARA_IPG_GATE>, + <&clks IMX27_CLK_SAHARA_AHB_GATE>; + clock-names = "ipg", "ahb"; }; From patchwork Mon Sep 25 11:12:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 726759 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6FDBCE7A81 for ; Mon, 25 Sep 2023 11:12:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229449AbjIYLNB (ORCPT ); Mon, 25 Sep 2023 07:13:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230381AbjIYLM6 (ORCPT ); Mon, 25 Sep 2023 07:12:58 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68495E8; Mon, 25 Sep 2023 04:12:51 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6bc9353be9bso974987a34.1; Mon, 25 Sep 2023 04:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695640370; x=1696245170; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7779TWAzQdCFg3sBHiH/lxzmOF6yFRQwZqbCa/Jr48I=; b=cs+VNAgRDiz9696PUqKQzIGgGhHM3m5sOoEIF3AAsnvYm/sZqGVSDs+cWLE+BPHuAj de4ElPkFlOV2gC5VgCB4yZYdRQCuFfD4rNRvTOTo5dsTWt/wfAhFXQjAKUmEiTXo7LJE 5HplIpMDGJSH4EvHgM/W12ZJGu7fi91lZLw7gLK7v6syS3XY6t+iwv1dVIMNE1jiDMgQ FSi3SiFs7Y98B+pVJD1oc/X+uWcnRejYrYVmndVpX7UN+a2VV20ird7DY9C9nDde/kub /eLMFYud2+faKwD5B0jxUVZOvG2xAzF/ZEenZnzgrWnpYr2n24soD5cCoZlIFxqNMTsi 99RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695640370; x=1696245170; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7779TWAzQdCFg3sBHiH/lxzmOF6yFRQwZqbCa/Jr48I=; b=K5Kh1HmR7jUTKNoJ9FsF38StYwrkaEziT6ftEtl6AE6nlZgGynSUmsJkPGOcYK97KA Ast/aQnShfjlUK9NaZS+6KgpTCKDkYKiOd3SaFceobBc8gOFxaXC4DUoOfUJXabUSPlR WnkVno8Evc1g/RSwjPfFpK2efHO/PbsI87WVv1OvAgc0L6StHl1qKKlJL9ppO8Iinyo2 wsU0LfYBKJeSCAhQ8nFVnCqDIUjiII8ItHTmMAUR0ozqOivkHrCNPq04wDYCxyTF48kk s9rYS4UO4vbsQPadll9ZqCpeU6iApGubyBx8PBvJuD/HOJSHZx3wtmDudTBE0btuJh1y XN0g== X-Gm-Message-State: AOJu0YxA1dz9MUw6nj4KBzZEpmJfNes3bnpfeSI8iTG6ejTsl/VvlBBE Z8j/HBLnwDHc+XC6vqm0Cek= X-Google-Smtp-Source: AGHT+IH7F9o1LW72CyEZBq9XJcMXAzd5P+wiSfKoXk4H0ssUpyPybPQ2ZNMEb1q8Kd88fZwmYmfxlQ== X-Received: by 2002:a05:6359:d26:b0:143:6977:22c5 with SMTP id gp38-20020a0563590d2600b00143697722c5mr3938262rwb.1.1695640370545; Mon, 25 Sep 2023 04:12:50 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:fbad:220b:bad3:838c]) by smtp.gmail.com with ESMTPSA id 131-20020a630289000000b00528db73ed70sm7832772pgc.3.2023.09.25.04.12.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 04:12:49 -0700 (PDT) From: Fabio Estevam To: herbert@gondor.apana.org.au Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, Fabio Estevam , Krzysztof Kozlowski Subject: [PATCH v2 3/3] dt-bindings: crypto: fsl-imx-sahara: Fix the number of irqs Date: Mon, 25 Sep 2023 08:12:20 -0300 Message-Id: <20230925111220.924090-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230925111220.924090-1-festevam@gmail.com> References: <20230925111220.924090-1-festevam@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Fabio Estevam i.MX27 has only one Sahara interrupt. i.MX53 has two. Describe this difference. Signed-off-by: Fabio Estevam Reviewed-by: Krzysztof Kozlowski --- Changes since v1: - Placed the if block before additionalProperties. (Krzysztof) - Remove extra minItems = 1. (Krzysztof) .../bindings/crypto/fsl-imx-sahara.yaml | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml index 9dbfc15510a8..41df80bcdcd9 100644 --- a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml +++ b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml @@ -19,7 +19,10 @@ properties: maxItems: 1 interrupts: - maxItems: 1 + items: + - description: SAHARA Interrupt for Host 0 + - description: SAHARA Interrupt for Host 1 + minItems: 1 clocks: items: @@ -38,6 +41,23 @@ required: - clocks - clock-names +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,imx53-sahara + then: + properties: + interrupts: + minItems: 2 + maxItems: 2 + else: + properties: + interrupts: + maxItems: 1 + additionalProperties: false examples: