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=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 D8CD7C4707C for ; Fri, 21 May 2021 17:27:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B28EB61168 for ; Fri, 21 May 2021 17:27:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231948AbhEUR3O (ORCPT ); Fri, 21 May 2021 13:29:14 -0400 Received: from mail-ot1-f46.google.com ([209.85.210.46]:44889 "EHLO mail-ot1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbhEUR3O (ORCPT ); Fri, 21 May 2021 13:29:14 -0400 Received: by mail-ot1-f46.google.com with SMTP id r26-20020a056830121ab02902a5ff1c9b81so18688091otp.11; Fri, 21 May 2021 10:27:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LMRIKwF8sfn6ggOmBatYMiKJaKRdHHfkAB2nXDbZPcM=; b=nbZo6HNvSGJZwPZ2B/4+V+9t8xIU2i19YvuWRfyum3+TP7PQuyOojMZS/qA2BMpt40 S4m/C4s6AhP1bcp7vGlN7ZzqUMRFPYmdzH3DcHSdjlqaX9hZm6oOKHY8vYjBsTAXwAL4 nY820oAX41zBaRB4nwoYCPogxrP31O116fkfq6PkPJBLBLEUxb3z97+Zw8CAsFhQXIaw oNE5JNLyWfTwT7af4akrnWR5wIuCVpJxl04yZKqbI/Rn9/dNwJ9TrCaHTDehzdqCwfrg XXfbCSpUSEwIBK4GbOvOsvUBgfrw85DBfwp8xnq5F80Jv14B3SmQpfHQaEWxBLQap3Vk 6IJg== X-Gm-Message-State: AOAM533OugNe9Uxx4OgmiipPY+CIAEcR1kBIF8372LI3vHjex15AbtGM 3XQ7bGzg7Bq/4nsbzZHauQ== X-Google-Smtp-Source: ABdhPJxg6Yj+G38ieYnK1K6yYg1HrjjDK2nARduNYJNcbkSpDMg3P/Mn6MJ0TdL+WmK5NrvlCM0gtw== X-Received: by 2002:a05:6830:1e70:: with SMTP id m16mr9260414otr.340.1621618070625; Fri, 21 May 2021 10:27:50 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id a18sm1011839oiy.24.2021.05.21.10.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 10:27:50 -0700 (PDT) Received: (nullmailer pid 49888 invoked by uid 1000); Fri, 21 May 2021 17:27:49 -0000 Date: Fri, 21 May 2021 12:27:49 -0500 From: Rob Herring To: Linus Walleij Cc: linux-crypto@vger.kernel.org, Herbert Xu , "David S . Miller" , Corentin Labbe , linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa , Arnd Bergmann , devicetree@vger.kernel.org Subject: Re: [PATCH 2/3 v2] crypto: ixp4xx: Add DT bindings Message-ID: <20210521172749.GA33272@robh.at.kernel.org> References: <20210520223020.731925-1-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210520223020.731925-1-linus.walleij@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, May 21, 2021 at 12:30:20AM +0200, Linus Walleij wrote: > 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 Not a phandle now. > + and the instance to use in the second cell Maybe 'reg' works here? You can only have 1 thing you address though if you use reg here. How are other NPE instances used? Are you going to need to have a reference to them? > + > + queue-rx: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + maxItems: 1 > + description: phandle to the RX queue on the NPE Plus a cell value. What's it for? > + > + queue-txready: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + maxItems: 1 > + description: phandle to the TX READY queue on the NPE And here. > + > +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 $ref: /schemas/crypto/intel,ixp4xx-crypto.yaml# > + > 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 > 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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 4B106C4707A for ; Fri, 21 May 2021 17:29:51 +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 CB46660FE8 for ; Fri, 21 May 2021 17:29:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB46660FE8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.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:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UynD1HxPRGm0wqdPC7qyjJwGycHCqkXTxYeZt5m58sU=; b=i5xm7VsyUPVjBqtOxpc+DiHiSB Ave+xTGo/OEDFSs0GMp2m5OIigYV5NYzrMlFkRtqyGUeXccagiqIo6aWw4MQUc2JvRynFkSctf4hd JIOqldGcEPzfHzgOli47qTQozVy3n4TZOkEIy/05i3MfQGbJ6GJxO3G1nUIX5pMYnwxfF5XK9lnxq s4bc209HoEoK4SjsUSA/jnkQ93129W6AabW3o0JF+3upTyOfbLyucJnm8Ly3McEY4eXMddZLae4aJ wpwfJ7GP+D/eroFKaCBkFVIQLt4OdQP0ufQKg0bGDr1FyqbaOm0O+9YwjZyajX7pPAlKQr1E41og0 7KG5w06A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk8wL-000VDD-EQ; Fri, 21 May 2021 17:28:02 +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 1lk8wE-000VCb-QX for linux-arm-kernel@desiato.infradead.org; Fri, 21 May 2021 17:27:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=LMRIKwF8sfn6ggOmBatYMiKJaKRdHHfkAB2nXDbZPcM=; b=DjYnjETkNF2oUgQpd+5Np7mKhL tZnE5j0QhPZVFl6gEYDunafyVhaolj6ABMVAC7aKdqgq+S15C50FO4lDFXUcVHL6R017ZQGwgvWt2 mg/+itwXn0TU26LouXhQo9224M9yF+Y/Ty+s0qxxKqIuipVjlod9ycxrIiHgCqMi4MJR0b/hcZyNP a6fzuuvzxkIkzplaFA/zAmEpkINUP3gViMAYIqDsAXp5DBanzLkblhJu6IzuuAAYj9CmvY2kXqVfI aKijjZgJ7NKPzK32BKZnscd8aTd7846thywBJYGa3Ad29FwRRNFrw8A4LP2HlKfpmH5dHwCZYGO2D Y+OPwgxA==; Received: from mail-ot1-f41.google.com ([209.85.210.41]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lk8wB-00HJQf-LP for linux-arm-kernel@lists.infradead.org; Fri, 21 May 2021 17:27:53 +0000 Received: by mail-ot1-f41.google.com with SMTP id 80-20020a9d08560000b0290333e9d2b247so8147537oty.7 for ; Fri, 21 May 2021 10:27:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LMRIKwF8sfn6ggOmBatYMiKJaKRdHHfkAB2nXDbZPcM=; b=hWHGdrpUWUpLd4EaU5nF0bqYTnX+nHu9Zjl0Cufq/U77pXIIbdfPVaW+iBaVZ0QqeY WocMcmMBUsKv9z8dxaskQqQsEbH5pZC0EPGjedu97FPWle0WXovyYFqSWh6i/Taw9UGu +bqeyUvuMdUN6LvyWraeeRHWtEAUWHPRs9H2LwOgCMvF/qtC/S9hufnWUs0ESZgSduK0 gktc4oqIgFhSNVI9hQ7f1hATl7o/jkopKlO1RCuTqJg873/hC2dxlAH9alu48xbDAg7u lFx0LQ92UtTLl95bfaUig38w5xIqXVUKluc1zD45aL14LLqLS6mggFQDz1NMZ+61A6C4 EAgQ== X-Gm-Message-State: AOAM5332WNpHP9AJ7lSYu+7Ga/LrjDPnfj6Ue+UpUrdLeWqrskXKBGm0 0JDaf2eBU7n+sLNn+2oB7Q== X-Google-Smtp-Source: ABdhPJxg6Yj+G38ieYnK1K6yYg1HrjjDK2nARduNYJNcbkSpDMg3P/Mn6MJ0TdL+WmK5NrvlCM0gtw== X-Received: by 2002:a05:6830:1e70:: with SMTP id m16mr9260414otr.340.1621618070625; Fri, 21 May 2021 10:27:50 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id a18sm1011839oiy.24.2021.05.21.10.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 10:27:50 -0700 (PDT) Received: (nullmailer pid 49888 invoked by uid 1000); Fri, 21 May 2021 17:27:49 -0000 Date: Fri, 21 May 2021 12:27:49 -0500 From: Rob Herring To: Linus Walleij Cc: linux-crypto@vger.kernel.org, Herbert Xu , "David S . Miller" , Corentin Labbe , linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa , Arnd Bergmann , devicetree@vger.kernel.org Subject: Re: [PATCH 2/3 v2] crypto: ixp4xx: Add DT bindings Message-ID: <20210521172749.GA33272@robh.at.kernel.org> References: <20210520223020.731925-1-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210520223020.731925-1-linus.walleij@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210521_102751_725866_FDDB560D X-CRM114-Status: GOOD ( 26.94 ) 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 On Fri, May 21, 2021 at 12:30:20AM +0200, Linus Walleij wrote: > 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 Not a phandle now. > + and the instance to use in the second cell Maybe 'reg' works here? You can only have 1 thing you address though if you use reg here. How are other NPE instances used? Are you going to need to have a reference to them? > + > + queue-rx: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + maxItems: 1 > + description: phandle to the RX queue on the NPE Plus a cell value. What's it for? > + > + queue-txready: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + maxItems: 1 > + description: phandle to the TX READY queue on the NPE And here. > + > +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 $ref: /schemas/crypto/intel,ixp4xx-crypto.yaml# > + > 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