Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp935158pxb; Wed, 13 Apr 2022 16:09:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/Ly/5f3f1GFqU2jxmHkH1NZqYal3FcpUo4WtPDWObjmYkgZs0hb1sRRioKoh2JdB/ZiUl X-Received: by 2002:a17:906:4787:b0:6e8:9252:5bef with SMTP id cw7-20020a170906478700b006e892525befmr15735822ejc.679.1649891342461; Wed, 13 Apr 2022 16:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649891342; cv=none; d=google.com; s=arc-20160816; b=mTMYpv1BuEYAw/AN4wcFwZ9lZDt9vNWWzVTgYswiaIUYGR57jO+Bt70MIcWtcEPak2 lSfkvwqczpv1IcwJ76ZyoQWN1HqxA1kQYL730UAo51xW0y42rC8Uf0Pksu4Z3ka1Nlfr pj1EbdroNXWkQlyZECvPrQeRMYJkUc/7FMEvroBmHL/EbKyrfoi7Z0xk5b7CyGC22MRW hU+LR6WjfqOiQugE0UHE1M0gyNHsn9PqpuZ0nBlznPtngMvTb1SJGxDZ5TcCK1qWM2Hn OlAlL4KkbRc9Q24ysyK575jg9Z67c3FQEMWkaw3RjQ+wfu9uKL3WBMSMNKSUXz26Sd2d omRg== 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=hzWov2h7bUv7TvPCe3xLER2qILsZ8moXoe1I60bhAfY=; b=fBYr7/kS21RvDmxGs68cCK6GB25OuYV5PdLoYh9OVrehHmq9UGNznLURtLVCrRxWHs jFrFBVUipu2mcYnabF0Z32fKHBsl0I3tYTtczz8Lhj2lSQ7mU20vu0lXsHaPl4MGLy2o AtK3FuFFDU4IL/5pdWOOlX3UqTe3ZC9ORyrVmoUcu+ueB9biXTw+3U+d8lU6EyEHRlgn /fN1P8h+OvBLYnkvA/4up7VFpZhBh0NMDXkVH4Z/W/e/9ZjATRxiMwHP8J+XNrrUfswi xh41VwCfkmejpQGuaFmO614AUrQJ93VjxaVeM1yaijOEXow+liJYCCwThnRQHOd7b9Y/ o46Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=8W4EodW3; 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 p10-20020a50cd8a000000b00418c2b5be19si2498943edi.251.2022.04.13.16.08.30; Wed, 13 Apr 2022 16:09:02 -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=8W4EodW3; 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 S238163AbiDMTOa (ORCPT + 99 others); Wed, 13 Apr 2022 15:14:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238139AbiDMTLt (ORCPT ); Wed, 13 Apr 2022 15:11:49 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F5BB716E3 for ; Wed, 13 Apr 2022 12:07:50 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id n40-20020a05600c3ba800b0038ff1939b16so573933wms.2 for ; Wed, 13 Apr 2022 12:07:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hzWov2h7bUv7TvPCe3xLER2qILsZ8moXoe1I60bhAfY=; b=8W4EodW3tieAkC0XUv6rm1jiKbjlFWNXCMOVXJ4IJ5LLrz127MRtiX2JSZr64Cstlj aRL4mwMrVfMH9nKgDzC91MXyiZRn8Bdjt0SYwhfWRF0KlcXf+DrbS8t5bkVt8E4G4b2t Rl3P2Av42/2ia+MmIN67h5jrKOaBb+mcac/hcr/E7oyUcTMnTA9hx86RutLHLJCfERnD WM656r/06c87D53EQq8dMtlR1G6hzi+dLvaAIzWeUChUlVFTj6eBXqDX9ect5ospg6BX n0b23f2ftyN5Mb8dNN4Csv5jHs6hhFKv2NSEyrvJKuG2MdSeJZr0TqVnPkO05p5eVyOB +JhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hzWov2h7bUv7TvPCe3xLER2qILsZ8moXoe1I60bhAfY=; b=GHXAcXM5Ot7IVqvjC/uvHeoYBY/5NjBNbygoMqHWFVuY9WhwdstZQDEeTvKoIomXS4 f75yM+swEDFyRQWkIb6fRoB0yIDHFIbJiSM7g8wbdLMQCfTaIa7f7dSAmcq01wpgUxNb OVEE6/uC/BjIRGCUeyAeRFQEVaFf/nTHEeUEh26s9YPgQuIINuy8L/ZTdyFzejW2JPPi VRm6qiSLrwfmgNuL4Pq9W3RcjbncVy8msMMqfAUAI/5JhmCdLzX9oKtYyHV9ENJPMURs aiheyCXdz7yXrEpP/BprF/YGk/YLu0jiB9Qk/gEM2cDK84ZPZk2O76IUmIgScuQExL3N oWPQ== X-Gm-Message-State: AOAM531M7cknX8xRhKqOr6MOMxmh6XkUucTsZ/JzOnL3uuVnJlVLEzUa DIWBGYpU9rReaIn0ZPYoR0i6x2JW+7ANjw== X-Received: by 2002:a7b:ce11:0:b0:38e:c257:4c76 with SMTP id m17-20020a7bce11000000b0038ec2574c76mr137202wmc.151.1649876869019; Wed, 13 Apr 2022 12:07:49 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id o29-20020a05600c511d00b0038e3532b23csm3551852wms.15.2022.04.13.12.07.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 12:07:48 -0700 (PDT) From: Corentin Labbe To: heiko@sntech.de, herbert@gondor.apana.org.au, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v5 25/33] dt-bindings: crypto: rockchip: convert to new driver bindings Date: Wed, 13 Apr 2022 19:07:05 +0000 Message-Id: <20220413190713.1427956-26-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220413190713.1427956-1-clabbe@baylibre.com> References: <20220413190713.1427956-1-clabbe@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The latest addition to the rockchip crypto driver need to update the driver bindings. Signed-off-by: Corentin Labbe --- .../crypto/rockchip,rk3288-crypto.yaml | 85 +++++++++++++++++-- 1 file changed, 76 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml b/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml index b4e87e9894f8..ad604d7e4bc0 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,23 +23,88 @@ properties: maxItems: 1 clocks: + minItems: 3 maxItems: 4 clock-names: + minItems: 3 maxItems: 4 - items: - const: aclk - const: hclk - const: sclk - const: apb_pclk resets: - maxItems: 1 + minItems: 1 + maxItems: 3 reset-names: - maxItems: 1 - 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" + minItems: 4 + resets: + maxItems: 1 + reset-names: + items: + - const: "crypto-rst" + maxItems: 1 + - if: + properties: + compatible: + contains: + const: rockchip,rk3328-crypto + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: "hclk_master" + - const: "hclk_slave" + - const: "sclk" + maxItems: 3 + resets: + maxItems: 1 + reset-names: + items: + - const: "crypto-rst" + maxItems: 1 + - if: + properties: + compatible: + contains: + const: rockchip,rk3399-crypto + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: "hclk_master" + - const: "hclk_slave" + - const: "sclk" + maxItems: 3 + resets: + minItems: 3 + reset-names: + items: + - const: "rst_master" + - const: "rst_slave" + - const: "crypto-rst" + minItems: 3 required: - compatible -- 2.35.1