Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2235928pxp; Fri, 18 Mar 2022 06:27:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBVYl6vGXII0nSEtG2A7gpsmC8K/e59XlHDx6A0w8uiLqO/p/NKo2l6rdy44RpwaadUch0 X-Received: by 2002:a05:6402:d07:b0:416:a080:c295 with SMTP id eb7-20020a0564020d0700b00416a080c295mr9567065edb.404.1647610066952; Fri, 18 Mar 2022 06:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647610066; cv=none; d=google.com; s=arc-20160816; b=GVFzW7JpDjVrbWFAcLzrReUnFYzf+wpZ6iHbT9FhnMZ2Uso+ExCOqG4lGQ8EHKRium d0bEIU38NRHuTlsSRUKKJ21tVGPIs4YaDdvOejt8AXnR7UMzz1twZrFocCpcudD4IREd hQCy04IfF9iV5RL4Ar8QCJEeVWDpEFEzQHPxsMfL9Zb3TPsoQNM+/UcyCgJBZ6fx+qgN UY9W7OBxJ+H71lODzP67yUAz3yRw3jvHtWSYu+4wnfRE7khKxH637MtBi0fZM7sqTpdU 2Xh8NlfmKrcBHq+uppbf9vr4oWhJm714IMofWE+k1UUNtHPqVL/H9DNRDRyfLe0S0+Od O1Ow== 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=YYBm1RX0czLMaWTTQInKeCgdVYhgkLcZ7jFkas/Rfhs=; b=j2jGKko35KDa5i6eRTDXK30zHN7cEx/Yd1BOVA8GK7diiuXXASFgXPPzLIS/38+gma y9gHfkfA0lvKuJ4pdYyrcL7waHYODmlvxjnID7CQ7kjzHBBWv0Xl6bSs77yjBYXReDag TQKx7l9cu1rmwfnRU77QdGsD3teI2NRn54ib51fjQX9gHyrx/PU6k++8cNPoODIqru1W 96IFKHhIW49+gh3g9YR+r4efhUm2pNWjTBeOhRWa0ih/tgBQh7TNUSMCfJd0ULGXpYUU xghGfhSxOKt2P0D0kmCHQvYhNmJo6mb070LWXYZKMyKaPzsReVmUzJx6b05hefaNrtq1 zSZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=AUl19gdd; 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 k17-20020a50ce51000000b00418c2b5bf3fsi3770067edj.545.2022.03.18.06.27.10; Fri, 18 Mar 2022 06:27:46 -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=AUl19gdd; 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 S234924AbiCRKVY (ORCPT + 99 others); Fri, 18 Mar 2022 06:21:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234915AbiCRKVX (ORCPT ); Fri, 18 Mar 2022 06:21:23 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DF121EDA1B for ; Fri, 18 Mar 2022 03:20:04 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 123-20020a1c1981000000b0038b3616a71aso4554895wmz.4 for ; Fri, 18 Mar 2022 03:20:04 -0700 (PDT) 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=YYBm1RX0czLMaWTTQInKeCgdVYhgkLcZ7jFkas/Rfhs=; b=AUl19gddWU+TGkn91rwswKtkRuunsoS1xg6IvUppECEb8oSzjSfXJv2d87cqXYs3Yy 95nkaF7kHo7GBGVTNaBNkuO6Rp5JM8YHyT8tVX8NcbKasWURoUqgjvOhVr+6gsjwxf67 6VqySP3QaYydQWitA3XNyI6fTecEOPfuXE2b/2PqMFm9CN17Tvi8nhCUC2lm71oY1H+o 2GWqd42sqZxKapISXzA8vBpYH53HlV8UMGJz1fKwf0WuqukOHYuMyfohAKbTkm1O00uV wU2oONr93WQy0UguF3b7ebHHu3pc+OUgVdXyQBp284tjYnM5VG8acVPte/GGuH+vp6P+ tK6A== 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=YYBm1RX0czLMaWTTQInKeCgdVYhgkLcZ7jFkas/Rfhs=; b=xUMxTOK1kkQvjLboNCP+GovC2+fe0FNkcLh5Z1kUmMlGNqsLHPJ64DvvpRF4xI2xex 0IXzQxKGermouYEPo9gE80UnqY90uJNShax0b0XPTYHEZagIDUwPtKKQwANG7WXIjhHS jWkx9xP8YMMU9wQsGTqPjmqkc+MSG8fY2ECpacfl7/thCTW7gwGTnwreTbUQojjRQwAV jOrqB67z1WtEQPtn/9AgfRNpRGPpn9EoKMzjCnQO1DaTcSGXKtnxlWnxWCA/jZ3dd54P 7Op61Goc/xDhUWaGEpW5bLT9UAuIG137a0jT2K8PACzUJYOQn/D4613VxroDRTsCaV3A oKkg== X-Gm-Message-State: AOAM531GXVPhdyGJxN0/y7xqghhyIxDsfGhxI9ndB6NYdaOeGUkRuxTE 0sPuJMpJZQKrL1WndGwNbF92wA== X-Received: by 2002:a7b:c7c3:0:b0:389:cbf1:fadf with SMTP id z3-20020a7bc7c3000000b00389cbf1fadfmr15021009wmk.147.1647598802494; Fri, 18 Mar 2022 03:20:02 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id f10-20020adffcca000000b00203e6a34d3esm5889436wrs.99.2022.03.18.03.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Mar 2022 03:20:01 -0700 (PDT) Date: Fri, 18 Mar 2022 11:20:00 +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,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 > > > 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. > > > + 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 > Hello I came back on this as I got access to a rk3288-miqi, and crypto does not work at all. This is due to ACLK_DMAC1 not being enabled. While not touching it work on rk3399 and rk3328, rk3288 seems to need it. Probably the DMA controller goes to sleep under PM. Any idea on how to create a dependency so dma controller does not sleep ?