From patchwork Mon May 10 21:36:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 12250321 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.4 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,URIBL_BLOCKED, 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 7611DC433B4 for ; Tue, 11 May 2021 09:34:59 +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 CEE7A6162A for ; Tue, 11 May 2021 09:34:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CEE7A6162A 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:References:In-Reply-To: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=k7NuSM7XWHQrzG7CxoyV146nO3yNBYQhR5xZcp//t6M=; b=opLjb2OtFeYZh7RWXRqxUxQ12 mX2oADaHxp/drUvacfMQIafRN16KyrTrboTmSmJlYVirQr1a0qAKH/PhWWXRI9QIk+hqb40ID8VkW fow3qO8FZIZb8dA/sYC2ij9cDOkY4hxAhz67gBw188arCzwZx8bo53LXGUN8Pmn1PODYeiiYw4fza l5nLWuQE69sIgNXn9GVIOWQgGAAihdKSS6cbbjUQivEY9YsJT9ktWLNyoAYCzLYiprUwK2bEXwZiP TX9vItMWsIh8S/Ydr6yABHAM4MFhJHMJ3XL7nN2YD8m1kvNZYflXoREZ9BgyCk7hLLm87LVdAtAv9 0KxrKDXMA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgOlq-00Ghvd-EP; Tue, 11 May 2021 09:33:42 +0000 Received: from [2607:7c80:54:e::133] (helo=bombadil.infradead.org) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgDai-00Flcl-NW for linux-arm-kernel@desiato.infradead.org; Mon, 10 May 2021 21:37: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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=CUvl66hkrXjCfS0+MBNd5h698LfIk3X/AE2d1CppJVM=; b=R2whDqXacNGlUIW/vNj/aDMgWR TqFUuBJoWKUMkVWQUnXkrNThS06p5wRbshnwglYECfSHh2wsxsFj5kLGB8JuHz1jq9PqinTpIo7um Hn1oRFz5TGgLWlRXh3LjcE46tqOzdlD+YlDVeIE4zjeZB/0MZMYDEXuKGEfcv89wkNic4YVVML/fu czFER4HmFcbanRDhKWWQrERHO3N9PVEGdD46XaCXsqS7/+X9/xAurI9nU0NLR4qMA9+IFcSpgGUx8 3Twb6HSD9pIiB4HzjP/jVV+tKETiTaVzKm6WO30FzRITsYo8kNMu6xTUHRIGnRVfgXaDgY5zFdL6K Mn2piCSg==; Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgDaf-0098Ru-UA for linux-arm-kernel@lists.infradead.org; Mon, 10 May 2021 21:37:27 +0000 Received: by mail-lj1-x231.google.com with SMTP id f12so10028084ljp.2 for ; Mon, 10 May 2021 14:37:25 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=CUvl66hkrXjCfS0+MBNd5h698LfIk3X/AE2d1CppJVM=; b=dID648OqvC6fpie5hQioI8+BavivqlqN/iNII27m9wwegXP/fBT4072x9hLy3uheNZ Akb5f9TqDODDJATz4d4J69ahd/nnqkbveL5jhMhJ1sxubL/xnqz2GxrdSbVDjneff+Zc bgmTpI+CJl6O6N39Iyj/olaT6kqY+L3lLzRCOUKz506ZhSDBESm1OUT5BbInTSIkJ2L8 +MbyeIezWVuAYYloHmQnPEfjhQYK5EKcQq2ltvzLjTIrI4NsSIhNE882WX9bR9zW7xRl TDE/IUx4DrHnHVWcLgu0jyzgvgNiXmU+W4ZlEDa+Tq+AAIoiA0HeIT2gr03b8AebJcDL Hz9g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CUvl66hkrXjCfS0+MBNd5h698LfIk3X/AE2d1CppJVM=; b=pUxGROBZlKGMAfw0NLyOoe9hAso6m7uHyp2gheUIFSsOb8gHl3nm+/jH5lAxZsPI9z f13/c3p89R7sc2UWqJiFL9UuwVbsSYT46NGGWac44tRNO6i7XSBRshoLw8GDiYzP30/W cdPhIeI39yRMA6YIajVCVzS4l97HISa3kG2fMYXDDQByPnRHqCIRurKcdmJ9KHWNXNSb gho8rl2ubkeEoOQdnbv/j/yur7WBaSyHKYkog3TbwvYtcFryXMny0lN4aQNO4/hP7OtH xKp2pFXFQhCshsMj5EskCC7BPP5YaGTSsmw0ZeqvewHt7BcGMYDUPaNBnFZkvWClI92j QQgA== X-Gm-Message-State: AOAM531J6Xko8DCn1WF+jjPkTYiw1t4SWgIKCfyG+XfTRE47Vg4a4vd9 9YqZXs9JdD0emuYLoLORe44agID9oFFS9w== X-Google-Smtp-Source: ABdhPJztyPIQuhm88sYU82lPmNBi5JTeQ9tTCbuESFnM9KRry16gs7IhDgtCmSJQBXwLzA3c+zmPJQ== X-Received: by 2002:a2e:8797:: with SMTP id n23mr2063883lji.248.1620682643921; Mon, 10 May 2021 14:37:23 -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 q19sm1091660lff.16.2021.05.10.14.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 14:37:22 -0700 (PDT) From: Linus Walleij To: linux-crypto@vger.kernel.org, Herbert Xu , "David S . Miller" Cc: linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa , Arnd Bergmann , Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 2/3] crypto: ixp4xx: Add DT bindings Date: Mon, 10 May 2021 23:36:33 +0200 Message-Id: <20210510213634.600866-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210510213634.600866-1-linus.walleij@linaro.org> References: <20210510213634.600866-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_143725_991897_79E615DA X-CRM114-Status: GOOD ( 19.22 ) /bin/ln: failed to access 'reaver_cache/texts/20210510_143725_991897_79E615DA': No such file or directory X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_143725_991897_79E615DA X-CRM114-Status: GOOD ( 15.81 ) 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 This adds device tree bindings for the ixp4xx crypto engine. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- Herbert, David: This can be applied separately once we are happy with the bindings, alternatively it can be merged with the support code into ARM SoC. --- .../bindings/crypto/intel,ixp4xx-crypto.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) 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..28d75f4f9a76 --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/intel,ixp4xx-crypto.yaml @@ -0,0 +1,59 @@ +# 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-handle: + $ref: '/schemas/types.yaml#/definitions/phandle-array' + maxItems: 1 + 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-handle + - queue-rx + - queue-txready + +additionalProperties: false + +examples: + - | + npe: npe@c8006000 { + compatible = "intel,ixp4xx-network-processing-engine"; + reg = <0xc8006000 0x1000>, <0xc8007000 0x1000>, <0xc8008000 0x1000>; + + crypto { + compatible = "intel,ixp4xx-crypto"; + intel,npe-handle = <&npe 2>; + queue-rx = <&qmgr 30>; + queue-txready = <&qmgr 29>; + }; + };