Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1202635rdh; Mon, 25 Sep 2023 06:18:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLR2emiQBsR4QYgy7xYTo3nVUKtQbyT+XImNA61qZ5EhzWhDlmmjRTkvj9DjipzGVEKpf4 X-Received: by 2002:a17:902:ab1a:b0:1c6:d0a:cf01 with SMTP id ik26-20020a170902ab1a00b001c60d0acf01mr5413292plb.11.1695647932706; Mon, 25 Sep 2023 06:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695647932; cv=none; d=google.com; s=arc-20160816; b=lispFMA2ieEdEFPzcO9EWW07X6TyIqKql9Mg/k+3cKafVI5c4txkTdVCLni2JO2pr+ tIIPTzWnritPnhXi6mgvxwI7u2DTpsHh5gmOIXbltcMt/CXnCRJKCfLjKnJeUaiWu5aF 0FIc29MYlYpPWVZ7SOTHZ3BTvou3Y4LfW6PYTi1kxEVQJj2qUlKUFVKfav1QmYI4N7NK viiE1Kq51hVahX+XKDUOVeScD6egg/txwF1RkQnVEus/k65CZKNAlqw7PApenPvZ0hU4 7EZFI7+5N1X8HQpt1AR6B8S7McTkLYn21U1XqhScYVSqMnm/RCHdVJSqp8ngeoQg2MHM z2ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7779TWAzQdCFg3sBHiH/lxzmOF6yFRQwZqbCa/Jr48I=; fh=DCKXQIZaLBlVZR3PG22CRJstrBAP+ijyeULoBUw0aIw=; b=C32U92t03cx6UuMdqytjkjlAwMecavKDR55nLJQdAyIxQ0shvqAJqQnSf7qAxj4eJ3 aQnJqLTU01wzzrnm7yLA4YPVmwDfoHBhQqJBvIVcmffgtOo1lo6QPjih9+7yUwZUk0PM C7dY8jOoD9WgFa3Xrkd8BcOGqc0GlUMIJHfiU3SJzIQ5LdNrKk5HUKSGIU5dtgzR1AUi 5/x5cJVfC5os2CB0+ceOacoMNF+j0qQmz8rZFyrIw2k6VCcqcH6TUl0bxQXJRjL9+Ko5 Q3fOwgQfwrgkWypShP9mYCRguePrbwC1wEmdm6Z1Frs5WFVbZKVTennieHHjpRZtGNCR U3rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cs+VNAgR; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id by19-20020a056a02059300b00578b499200esi10981619pgb.84.2023.09.25.06.18.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 06:18:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cs+VNAgR; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2D76C8024F47; Mon, 25 Sep 2023 04:13:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229449AbjIYLNB (ORCPT + 99 others); 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-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 25 Sep 2023 04:13:03 -0700 (PDT) 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: -- 2.34.1