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 X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D929EC433B4 for ; Thu, 20 May 2021 22:34:29 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 59008613B9 for ; Thu, 20 May 2021 22:34:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59008613B9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=/9TPPmVgyw9l2iOf/qYHwTUlKq7J+2Mba0iVc1JZH0w=; b=Ab32QFjJfr8GyvOnDMEDmjO7/i RxpLKYEy29AHU3fpqWDDyECUEpZd2kwCsJHia4x2WWuUP46r+DXXcmh4kk3fgQmrSXzVFGv+8dHE0 QHRGpepPrIU1UAYAilYXbXpTjYZ69bJQ0x16bAfp+qhW8qnKAiR+KwLw/9DtWzY3r6H6C7fy7+WEp dN+/aADwKtnNzClUnsEcOfRnFhCR94pXgx6m3cF1cU8kEJ0wyTBBw5p/g/LRNVuTWUJ8n6VObPAGk UB7dEJGDO2n8gPKlml9wXCqliRa0VkkZPshsI26QW/13MzvygO3jsb4BcQCgnDIDEK8HOwyHORfoY j+oqivzw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljrDW-002uEh-KI; Thu, 20 May 2021 22:32:35 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljrDS-002uEN-5c for linux-arm-kernel@desiato.infradead.org; Thu, 20 May 2021 22:32:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=majFJUgE6kbtYjouc7u3aeKZBiY0X2qXxJpyVqBgA4I=; b=1mQJSKo3IR8fegN4Sd9uPAc3bs XLLcLHIGrS4doMYyIZ5bKfjx/z+3uMWJ7zLRU2LNeVIJlAoX0U+cWxpVYTAQhoLOFDsm3ldbcTTsu mGYLmVOv6jaSjidIg8Ow1aMTGZaOVhAcm9qRtk/YOgh8vq7U9q+5y+97831JBYAP2dqnDWTXbfwv8 j/PgnClRnNahCnPR6Nv9AczNY6cCw8j66dyVQaO1vthDawjL73mCapjqiFF66JOOjqhx5ZKiHriMn AVj5JvH22IHUDCGeGq93H8CzQ+D0vPV8/V2DwXRSOM1QrJY/kHbB4wQLEUGYwblrdLhiWiprxz5sw 9Pxls5kQ==; Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljrDO-00Ggyo-UI for linux-arm-kernel@lists.infradead.org; Thu, 20 May 2021 22:32:28 +0000 Received: by mail-lj1-x22e.google.com with SMTP id w15so21693378ljo.10 for ; Thu, 20 May 2021 15:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=majFJUgE6kbtYjouc7u3aeKZBiY0X2qXxJpyVqBgA4I=; b=XnpflCukL3R8O7gOwis5wc0/1nMU+hWZZD/NxnL5PK9KubcLSaxNlLa6ludwyULWKU +vofbgqXilPhT8p5D7380JWthBPiUSIonE/sPEY4TEHJLTWYf4miV7b79WgrORtoj6y5 w6WF7Nie7BRZBhtZv5V1Yqa+Iva/DT1D+INgcy9+yECEI8/965ED+t91hx66ocib8qUY hip3V/kf+An7ywyS2DEUasoGzJrYOVgGGUY4G6Dv7cybkpoNudYOgvbMLo/tNKUAWLwR G7mzQbciqu0jJcRpPcY3Rsr7ci8xihgA3CjapxKTFwMugd7xlWPTxddiVyJtDopdJ0hP nc8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=majFJUgE6kbtYjouc7u3aeKZBiY0X2qXxJpyVqBgA4I=; b=ehGSXTjLL3V66jZhuycVW3pw5jTLtTLmgomw1o/BGxDZTu1p+7GMAafS488OYnFlfU g0DX+G/gc5Yl0TxMrz9dI7yv9kuHD1AkkbEqQhyDGYMMVhm6draPj8s0pixoBcXYt1Hg SGI3yROP7ArWww9l0/u3i4rteD5z8uKTcWUC9kigbzTdnH4F9lHia49Ie6Nhq3qNRDaN iGh5amqOgOGinxsAjBNB075dTjWbZdBj+ouQsNP+Sg6lgbgzTex5Mlr/6NIdhOvj748s h3vIyx8aKG9FpiJPmeS/Wqrs1dcTYJyZVK3pkxtYbAsYkSYXbFfQjqI0FFAOrTjyF922 Gvpw== X-Gm-Message-State: AOAM532GGNsSGgHAAvjS3OljBD4jz32b3bcwSjJOeX5RA+b2X4QP7Ri8 I+9JSqAWyhxFaza8o2aEl7W5vg== X-Google-Smtp-Source: ABdhPJySxea32IryZZXKK44bywgabA7MVFR3Z6YYXVM/KzLOwd96DOIKwwjHb+k4xis1eFqfutSUQA== X-Received: by 2002:a2e:8ec5:: with SMTP id e5mr4661883ljl.325.1621549945045; Thu, 20 May 2021 15:32:25 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id v1sm419601lfg.141.2021.05.20.15.32.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 15:32:24 -0700 (PDT) From: Linus Walleij To: linux-crypto@vger.kernel.org, Herbert Xu , "David S . Miller" , Corentin Labbe Cc: linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa , Arnd Bergmann , Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 2/3 v2] crypto: ixp4xx: Add DT bindings Date: Fri, 21 May 2021 00:30:20 +0200 Message-Id: <20210520223020.731925-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210520_153227_005256_274B7DD4 X-CRM114-Status: GOOD ( 19.03 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds device tree bindings for the ixp4xx crypto engine. Cc: Corentin Labbe Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Drop the phandle to self, just add an NPE instance number instead. - Add the crypto node to the NPE binding. - Move the example over to the NPE binding where it appears in context. --- .../bindings/crypto/intel,ixp4xx-crypto.yaml | 46 +++++++++++++++++++ ...ntel,ixp4xx-network-processing-engine.yaml | 13 +++++- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/crypto/intel,ixp4xx-crypto.yaml diff --git a/Documentation/devicetree/bindings/crypto/intel,ixp4xx-crypto.yaml b/Documentation/devicetree/bindings/crypto/intel,ixp4xx-crypto.yaml new file mode 100644 index 000000000000..79e9d23be1f4 --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/intel,ixp4xx-crypto.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2018 Linaro Ltd. +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/crypto/intel,ixp4xx-crypto.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Intel IXP4xx cryptographic engine + +maintainers: + - Linus Walleij + +description: | + The Intel IXP4xx cryptographic engine makes use of the IXP4xx NPE + (Network Processing Engine). Since it is not a device on its own + it is defined as a subnode of the NPE, if crypto support is + available on the platform. + +properties: + compatible: + const: intel,ixp4xx-crypto + + intel,npe: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 3 + description: phandle to the NPE this ethernet instance is using + and the instance to use in the second cell + + queue-rx: + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 1 + description: phandle to the RX queue on the NPE + + queue-txready: + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 1 + description: phandle to the TX READY queue on the NPE + +required: + - compatible + - intel,npe + - queue-rx + - queue-txready + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml b/Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml index 1bd2870c3a9c..add46ae6c461 100644 --- a/Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml +++ b/Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml @@ -30,6 +30,10 @@ properties: - description: NPE1 register range - description: NPE2 register range + crypto: + type: object + description: optional node for the embedded crypto engine + required: - compatible - reg @@ -38,8 +42,15 @@ additionalProperties: false examples: - | - npe@c8006000 { + npe: npe@c8006000 { compatible = "intel,ixp4xx-network-processing-engine"; reg = <0xc8006000 0x1000>, <0xc8007000 0x1000>, <0xc8008000 0x1000>; + + crypto { + compatible = "intel,ixp4xx-crypto"; + intel,npe = <2>; + queue-rx = <&qmgr 30>; + queue-txready = <&qmgr 29>; + }; }; ... -- 2.31.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel