Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1665975rwn; Fri, 9 Sep 2022 02:00:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR6BActhAgiaK80Yfd0ZHlEn0F5ytEp+BRrPyFI0FmJby+Cwd6/1t89cCV5Auu+pVEHaNCdA X-Received: by 2002:a05:651c:23a2:b0:26b:df14:ae with SMTP id bk34-20020a05651c23a200b0026bdf1400aemr1292585ljb.167.1662714040234; Fri, 09 Sep 2022 02:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662714040; cv=none; d=google.com; s=arc-20160816; b=CKerLEFFA2fkEwLVedoFySLD9gEFYI00zN49FRvVPCfWpg06uq1ecD5uu49gAXLDDX 3XM8KBSxZ3jKNfxBA+z/A9+RJslJeeA5o426AJqJkj/Ry0c/zo/AG43Vst8PxpPIcXZC WF32dFXXH7GsyamQ1kSepOUY+4A6KMV90x0OoVqA85MoNQbaHexGG+nAL5tycmZYoJvy nWTPdRFa0xu3DnVe1k60oTv30MSsKrU/H78eulhGvvQLe1Uk1IDRXc5PJZlYTXuI5jaK 5UPzd7rkmBa57maxARanr28pRKCdHBBAs9ZZNo9zj2RLjqw7PcknOY4A4xdCK+5t+TkE MQQQ== 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=rHPt+Pbc0bwJycb8g2JrUPaT739qQsbXoj9p9DUlASE=; b=0MmFfUekUPdRyJoJC2M9YPkTxaKID2r+Ai8MN393oHqINsH7OP4B2M1Fme0miCqEJQ Wx4/7sJ+LPYE13QS//i3p5Bq3USOcvdwlV/RNnLpjn8RBZetFBUYU9OEXrTEp4fSgIq1 B5pByk7tDzi2+B//AxDPfpjjYkCYSTXdHY/0LBHV6ChZ/T7aLhaAjXRmNgnT5mN5qn0j O0PxUd8GbNGJkEjR6NYUzZ/ez+NWwhI4HpPLqBBk8fKaYe6O2ImvqH87znZC7ilaXY30 jfshKVjoWY3L699AuGGTk6odf+yJTagStY6cqmWxnWyoR1jVgSfG46JGrehldGxbyFCf +FZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="o8/U+pWZ"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a05651206cc00b00492ca47f6c4si597044lff.484.2022.09.09.02.00.05; Fri, 09 Sep 2022 02:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="o8/U+pWZ"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230150AbiIII6B (ORCPT + 99 others); Fri, 9 Sep 2022 04:58:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230159AbiIII50 (ORCPT ); Fri, 9 Sep 2022 04:57:26 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15CBFA1D0F for ; Fri, 9 Sep 2022 01:57:06 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id c11so1570062wrp.11 for ; Fri, 09 Sep 2022 01:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date; bh=rHPt+Pbc0bwJycb8g2JrUPaT739qQsbXoj9p9DUlASE=; b=o8/U+pWZQB+BK2sQxVVXYhAtmR4twA2BIVHdD3qEUSTRXfTJet6ivAh/aa0kvfqXEP en7ejU3nOu4bQP6vZpt50O7hMAYuCNjbSyl+Fa89NpV4Uy7Esi4TN4YFK/rH3VWPAH7P 9Ei7dmjS3X1tO9Pz5sxHqw8caG2m5uY4X2GGynE9KsZFWpqSIUVZMXz+V8FBPPp8iE/b jKXvos0xjGCtBk/9THaZM1g5m8Dz6skfbkxP1TdHKCHd5Lru3SgjUnu7sqZXzGV6Eb1h VfleTZ5RUJB6ZF7/NKUdrty0fGbKxEfl4I/63IWGo7vRairVqhSMFZFiuWfawbo9FaJr atlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=rHPt+Pbc0bwJycb8g2JrUPaT739qQsbXoj9p9DUlASE=; b=STXCW9JCp1m7wmvZGxHXabfsxBCCYt8KF2VXTaXO3gloT3G7MYMGB9wjD7niv87lAF 6jRlxB9DMO08z2A51+Th7VKrZm6SM2zbXNTttYYmh46fmVX/uhRPLkA3nk3qvTbOcD6d Cgux2TX6tn/0VcDDgUXbzEAAGPEiGRGjj5WNiYdJuXDRpTWWzhPUuJsBMpkEHXjw+ZKf 4su7+aDyi3wENItg6T4d9hOTlZ3KpUShvjlOSNmlmWJ7M1JPpAU98TaGsmHYcz+gfXVm SDdyjFa+Yl/QF6juvMJJFWcSL/DdTrZciiZy8XeLPBu1ZzQAeDJM4nSbIPkazu6xiCIE Jngg== X-Gm-Message-State: ACgBeo0HXcxlYsk/aEAZIbeHgO8Rzk0qe3B0obEu0mSPhI/KixAzlCX9 FhHFS1N7ZCwFMB5zm2xwUrxZ+Q== X-Received: by 2002:adf:e904:0:b0:228:e0d5:2c55 with SMTP id f4-20020adfe904000000b00228e0d52c55mr7254035wrm.714.1662713824642; Fri, 09 Sep 2022 01:57:04 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id f25-20020a1c6a19000000b003a5ffec0b91sm1166157wmc.30.2022.09.09.01.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 01:57:04 -0700 (PDT) Date: Fri, 9 Sep 2022 10:57:01 +0200 From: LABBE Corentin To: Rob Herring Cc: heiko@sntech.de, herbert@gondor.apana.org.au, ardb@kernel.org, davem@davemloft.net, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v9 25/33] dt-bindings: crypto: rockchip: convert to new driver bindings Message-ID: References: <20220901125710.3733083-1-clabbe@baylibre.com> <20220901125710.3733083-26-clabbe@baylibre.com> <20220907203853.GA288174-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220907203853.GA288174-robh@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, Sep 07, 2022 at 03:38:53PM -0500, Rob Herring a ?crit : > On Thu, Sep 01, 2022 at 12:57:02PM +0000, Corentin Labbe wrote: > > The latest addition to the rockchip crypto driver need to update the > > driver bindings. > > This sounds like you changed the driver, so change the binding. That > would be an ABI break. But it looks like you are adding support for new > h/w, so say that. Bindings aren't about a driver. > Hello Ok, I will change the commit log. > > > > Signed-off-by: Corentin Labbe > > --- > > .../crypto/rockchip,rk3288-crypto.yaml | 79 +++++++++++++++++-- > > 1 file changed, 71 insertions(+), 8 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml b/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml > > index 8a219d439d02..b7870a4cbdbe 100644 > > --- a/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml > > +++ b/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml > > @@ -13,6 +13,8 @@ properties: > > compatible: > > enum: > > - rockchip,rk3288-crypto > > + - rockchip,rk3328-crypto > > + - rockchip,rk3399-crypto > > > > reg: > > maxItems: 1 > > @@ -21,21 +23,82 @@ properties: > > maxItems: 1 > > > > clocks: > > + minItems: 3 > > maxItems: 4 > > > > clock-names: > > - items: > > - - const: aclk > > - - const: hclk > > - - const: sclk > > - - const: apb_pclk > > + minItems: 3 > > + maxItems: 4 > > > > resets: > > - maxItems: 1 > > + minItems: 1 > > + maxItems: 3 > > > > reset-names: > > - items: > > - - const: crypto-rst > > + minItems: 1 > > + maxItems: 3 > > + > > +allOf: > > + - if: > > + properties: > > + compatible: > > + contains: > > + const: rockchip,rk3288-crypto > > + then: > > + properties: > > + clocks: > > + minItems: 4 > > + clock-names: > > + items: > > + - const: aclk > > + - const: hclk > > + - const: sclk > > + - const: apb_pclk > > + resets: > > + maxItems: 1 > > + reset-names: > > + items: > > + - const: crypto-rst > > + - if: > > + properties: > > + compatible: > > + contains: > > + const: rockchip,rk3328-crypto > > + then: > > + properties: > > + clocks: > > + maxItems: 3 > > + clock-names: > > + items: > > + - const: hclk_master > > + - const: hclk_slave > > + - const: sclk > > Do we really need new names? Was 'aclk' not the bus master clock? I follow name convention from dt-bindings/clock/rk3328-cru.h > > If the clocks and resets aren't the same, then maybe these 2 new chips > should be their own binding. I dont understand what you mean ? You mean having a rk3288-crypto.yaml and a rk3328-crypto.yaml (which will be related to the same driver) ? > > + resets: > > + maxItems: 1 > > + reset-names: > > + items: > > + - const: crypto-rst > > + - if: > > + properties: > > + compatible: > > + contains: > > + const: rockchip,rk3399-crypto > > + then: > > + properties: > > + clocks: > > + maxItems: 3 > > + clock-names: > > + items: > > + - const: hclk_master > > + - const: hclk_slave > > + - const: sclk > > + resets: > > + minItems: 3 > > + reset-names: > > + items: > > + - const: rst_master > > + - const: rst_slave > > 'rst_' is redundant, drop. > I will fix it Thanks for the review