Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1053540pxm; Wed, 23 Feb 2022 16:57:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQh1ZH41jRu7laCL3MkfZIb+G6uVvFLbzIORjRVmBvhN4zl0p2fxzz9RV9p+limURQB43Y X-Received: by 2002:a05:6a00:1251:b0:4f1:2a1:3073 with SMTP id u17-20020a056a00125100b004f102a13073mr131358pfi.72.1645664250408; Wed, 23 Feb 2022 16:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645664250; cv=none; d=google.com; s=arc-20160816; b=CLXEj2qfmR5NOP1/P+ob9BzDJIPybK87uOvQiYnwJo7LCe941HN09Mq5qWpbojgYiF NXh9eOwWcviF7QzrL7Xc6FgCJKXCgbv2EwKKRN9olLptQL7QbvBjyqGWJiyld4Lt5iGl kBpzjifsC/dmcBjo6O/rPBgn7tE7H2nvxaXhQ8c7fQn/fgMO0hjvM0Zf7oWl3ABFMIuS xmRh3XS1/NKT1N1BkWPfeYmRMxn0N/7KvK8tMSdXg9SjNABrheiYd0zGHUSeYe+0el6F yHZeFAmB6YEh4NVlJAz3fFZ/gq6TuZnKpng7POEdPYyghIcQYXSphG9qA2EpKvmauEYy 40Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6Iisim3PKzqx+0SuQ2EiWiTngQbIiBBSQFYW4bmZFG4=; b=mFscSjSf/Zy4O12CsXg7TpQYOdV/47iqopH7M6fy3X1RQgT8DZtmhnDAN2E8MQG8qo rewFEboM3VJAieSZPEKfbGs/+7H5jXOUWN6m5FsI1qHPgH4SyuVW093QFjakMfoFTZsX w6+8XMrwbAyspKuvvL/1zQZZvxNdowrQ2yfED/Pl+89wx8DgFlvjB5MiBdFz3lVJvq5+ BrfvfVL8h18QDznOTDTj5clh1GF0OiBYwkHc1gbJwBbXwfkGiPF5hMOMVrISTgXeh7VH Tbz2t+ZsGVeu6p6J8PcKfEvEbF7QDfHdTL+HqgO8fKBOCh+afO88qVSuRNtBpYvxdqow nGow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="xL6fA/11"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x13si952750pjq.80.2022.02.23.16.57.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 16:57:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="xL6fA/11"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8CEA4F65E3; Wed, 23 Feb 2022 16:50:14 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240715AbiBWNGX (ORCPT + 99 others); Wed, 23 Feb 2022 08:06:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240712AbiBWNGW (ORCPT ); Wed, 23 Feb 2022 08:06:22 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4021F985B2 for ; Wed, 23 Feb 2022 05:05:54 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id d14-20020a05600c34ce00b0037bf4d14dc7so4295387wmq.3 for ; Wed, 23 Feb 2022 05:05:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=6Iisim3PKzqx+0SuQ2EiWiTngQbIiBBSQFYW4bmZFG4=; b=xL6fA/11WclCJM2MxlSqzWBaUxk7fA+4OI+SITJI3HuBC6aQNHwmvUdRbzI1PWCJjl nouFQQhqbAdlbueFM4m4nechphstnnVXOLaT+TT5I1cZyq1ZPuPhF4HtYie6PMauU2Xm O5y8ACzbRTCySsiNoG6ClSYFzXpaVUE25zrItpI4eg7w2gdceTjzAoMqekdca/mwhw2A 0X4OPqCP0xw5cQdDChXDAKGE2Ptt3GNilnfvPJ8MJzcV8cI1QihpzAVp+jpbSy84uxJA kpLQ+TDO5gjA0kM/GLr8jOWm0+Gk3p8/LGu0A7nCV+J5YODK8d8N5fL0XBhB1Yox5U0G ArZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=6Iisim3PKzqx+0SuQ2EiWiTngQbIiBBSQFYW4bmZFG4=; b=WzCsj/etvIcmrcK2UG2HrMF7jpJdzRNinnfqHT3LmDMmfNqXq1sVfLc3pYZxEgG+ec 0tsklGxymM8PNRSI8xdmigKrAI9ZgRYE0ruGQ8mrlSF6ywjtbqAeBaMhXibDuBUM0yNQ DRz7EJqaGqn2eU01cTgp4Klh8sUd3WyYeR3G3nmQHNyFGdqOUbvOQ58O3E6ietxo0Vae Rh25SmCDn+KEg89CFCdny7uyNnsoOyeWUpA5CVp6YZqMiLZn/ir2dJqg4k4qYR8bwQ07 +9cXNTlyTbE8C3JgV8ThGG54wpJc4X0YEjMIxV2NM+6+ehTQmMl/Qb1jBnA9wKwZujwN je2w== X-Gm-Message-State: AOAM532bVYbtWbes7R+cyhPgFa4LF99Rca5qePzBOx0KOFwqXAw7mAYU coXTbXo+yfKISbs2OADUGCKpoA== X-Received: by 2002:a05:600c:4f93:b0:37b:c4c1:e806 with SMTP id n19-20020a05600c4f9300b0037bc4c1e806mr7711932wmq.104.1645621552724; Wed, 23 Feb 2022 05:05:52 -0800 (PST) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id s2sm5334745wmc.45.2022.02.23.05.05.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 05:05:52 -0800 (PST) Date: Wed, 23 Feb 2022 14:05:50 +0100 From: LABBE Corentin To: Johan Jonker Cc: heiko@sntech.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski@canonical.com, herbert@gondor.apana.org.au, davem@davemloft.net Subject: Re: [PATCH v3] dt-bindings: crypto: convert rockchip-crypto to yaml Message-ID: References: <20220211115925.3382735-1-clabbe@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Le Tue, Feb 15, 2022 at 03:07:56PM +0100, Johan Jonker a ?crit : > Hi Heiko, > > On 2/11/22 12:59, Corentin Labbe wrote: > > Convert rockchip-crypto to yaml > > > > Signed-off-by: Corentin Labbe > > --- > > Changes since v1: > > - fixed example > > - renamed to a new name > > - fixed some maxItems > > > > Change since v2: > > - Fixed maintainers section > > > > .../crypto/rockchip,rk3288-crypto.yaml | 66 +++++++++++++++++++ > > .../bindings/crypto/rockchip-crypto.txt | 28 -------- > > 2 files changed, 66 insertions(+), 28 deletions(-) > > create mode 100644 Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml > > rockchip,crypto.yaml Hello DT maintainer asked for rockchip,rk3288-crypto, so I will keep it. > > > delete mode 100644 Documentation/devicetree/bindings/crypto/rockchip-crypto.txt > > > > diff --git a/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml b/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml > > new file mode 100644 > > index 000000000000..2e1e9fa711c4 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml > > @@ -0,0 +1,66 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/crypto/rockchip,rk3288-crypto.yaml# > > rockchip,crypto.yaml > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Rockchip Electronics And Security Accelerator > > + > > +maintainers: > > + - Heiko Stuebner > > + > > +properties: > > + compatible: > > oneOf: > - const: rockchip,rk3288-crypto > - items: > - enum: > - rockchip,rk3228-crypto > - rockchip,rk3328-crypto > - rockchip,rk3368-crypto > - rockchip,rk3399-crypto > - const: rockchip,rk3288-crypto > > rk3288 was the first in line that had support, so we use that as fall > back string. I will dont add compatible which are not handled by the driver unless DT maintainer said I should. > > > + const: rockchip,rk3288-crypto > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + items: > > + - description: clock data > > + - description: clock data > > + - description: clock crypto accelerator > > > + - description: clock dma > > remove ??? > > > + > > + clock-names: > > + items: > > + - const: aclk > > + - const: hclk > > + - const: sclk > > > + - const: apb_pclk > > remove ??? > > Similar to the rk3568 pclk_xpcs discussion ACLK_DMAC1 belongs to the > dmac_bus_s node and should have been enabled by the DMA driver I think. > Could you advise if this is correct or should we remove parsing/enabling > ACLK_DMAC1 in rk3288_crypto.c in order to it easier > porting/adding/syncing nodes for other SoC types? > > Johan I tested on my rk3328-rock64 and I confirm apb_pclk is unnessecary. I will issue patch for fixing this. Regards