Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2946423pxj; Mon, 10 May 2021 14:37:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaDu626dOtdqdcT0XNisiNWjgkm14IBxHPuiWZCpu1bJ+WTMBkN2m9ximW2nExaHR5+sJh X-Received: by 2002:a05:6638:1928:: with SMTP id p40mr24176932jal.22.1620682674866; Mon, 10 May 2021 14:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620682674; cv=none; d=google.com; s=arc-20160816; b=o5y4lAqMmRx9NC1LsDqGyMUAYSEIo9z9kMOztecmMZWsloV8cqhAKJsMEQdArI7Hz9 8u7ieNY2qDkg4BF649AoGY78dlU4K+ExxpO+yAnaXNzmHYVUcUjDETZ03yuiudAYlaco WxTDNlxsIRuzzvMKYSmAeEzO+tTLLNcGK26kOsVOmBKL7Cfy6pOjkFqPftQ4u2B33+pE 8NPz8AzH12jrQBj+5n4KnTQY0bEawyS4MP36lPHFMgiNmiSx7jKQuw4/gzcCDGWAVRbM BNmPMCTA6MYcZK756QFjMwoNt4WfLmk8RJW43UpmMaIhbnHJ3BsisvZAyTFndxxwtlAI xbjA== 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=CUvl66hkrXjCfS0+MBNd5h698LfIk3X/AE2d1CppJVM=; b=EaKIw2FEe3yBfcJ/xESC1cNUkwBVeOeXI2ogYes5bVE4mBGJTKNsNxby47/wWskv57 SoLHnlwo3y/zmlf+iC4Y15JZVhuoh8pDjg3HCTTgks0vUszpaKxHk7ubKlUxJTe1fYFN 8wYN7NO7f3KWEZMXqbC6CrNQMaYnpaV24tALqF+y7TMRE60y+gvfx+0C3WOVVl/9DBhf qC4gL5c182b0PpHQpIFdzOgMy+yOFLdrXbeSMEbqB+C5oZUDLCKbENU0ineV4E0JPijC ICTsc8VFZ42AZsXd/bEVlzv7ZoToIDD+rXf5fIm1/8I+VriPTnKihihSslxYJsaVHPNL blEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dID648Oq; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si18610156ilc.160.2021.05.10.14.37.32; Mon, 10 May 2021 14:37:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dID648Oq; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232530AbhEJVic (ORCPT + 99 others); Mon, 10 May 2021 17:38:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232461AbhEJVib (ORCPT ); Mon, 10 May 2021 17:38:31 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 868ADC06175F for ; Mon, 10 May 2021 14:37:25 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id w4so22604603ljw.9 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=hyEgOyRbrtSu12m/vRombiIPYGFXARc3Y8+SW+IRywHfI/C4Tkns/QPhYiBlwNiJvz b6DYRIbXAo3Ml7vt9vAJLv6FaNAEeCURAU4JW28kRlqKty7qm99irY6JHwNRU78Y82q0 DGbuO95Jt+oPLkEYNNJxvgA/ypkNGb3Ubecjlt2v4gwyqREy5/Qhztvg5ERT3BYOLy1I zezKt9aRWg4T33k1pncwoOIl9bBck/9HOUeacgtRkiQ2lCikVK33gzb81rXDiy4YxKzq 64UQgOT1yLgEpiadKm4tpZifFzUulPIRrM5E/BlWxpOd0iWXUmjxFhqERAcNbtzRhelW GBsA== X-Gm-Message-State: AOAM530BWEQOQNwVfiY2smBPhMTRXmlDFDFufkMurLudg23zEYEJIT53 MI1TjCc2SuUmrszIst7VHssjSSqkvpjhfw== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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>; + }; + }; -- 2.30.2