Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4627043iob; Sun, 8 May 2022 19:45:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWvonIeTykcqr4TqAGb0jBd4KIstl9+d4PSBR0C9vgq1fLbpKgug+yk1vHl6sUYxFpURqE X-Received: by 2002:a17:902:f68c:b0:15e:b61c:6a33 with SMTP id l12-20020a170902f68c00b0015eb61c6a33mr14309567plg.161.1652064318640; Sun, 08 May 2022 19:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652064318; cv=none; d=google.com; s=arc-20160816; b=R+DdUmR9ONeTx3KL9NxUJyo63+eZHnhyZkaliAMAHUvkWEXkkd7aV/yfyxC4IA06TA bWVb5cSs6tcxgKqwxZKlJqjt7563niKyxpc/ruCjshH3siXQmWXMhrAJHiY7axrf2h6H sb+P4qctdkh+4cHq0+8ppYh6zz4Dmcqyl6DaEeUfG7gc3fQEItW7ZT9qXBmS8QbGwtiF 6a7SrBVdkrhs/ZXkHwA4vMG1L0aOE3hvEjtViDkEfQQW0imheSaY5MS7Qi7aNqSHuDeX F89gWw9ZPXvDyZ2auR4Ql3K4NzdOAHrf3Rhqs7+6KNc/tnC2ZwWAcYWDMsf2UY/83Kts 0pFA== 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=1XeJnNNlIllodvcVQo3PDKeXH2oW9QkUYejnaC12tvI=; b=lr5ueR44axoYN7r/t0Sfji4d0SWpQeIuxBDpOsc7Lp8nHnVI92jZrgYAY0j5qA+hF2 Qe8cbVN0gqIYGbauticxr8qRDiHeHRlbUBFWjBtOuh+LZuIj4OA1WYHf1mt6WF6qvUc7 Fl62ZE5wicaaWAOrbzMDpGloEK0E5WuKktKepa3OIm+VrxC0nPIHcxNPVE72QI+9CrFY DWYZDJ/hQu/o2DtjhDj035uXDagqf0RlyvuHEu7qkDjUEMMuIK/5HMyb8GGp/qNMdkEs 8EE61P9iI4DbgiINLyiyDwtUY2Gyf9aN5XLthbkQZC0Dr+9jn1Xgu5lkHKUBkk3C61d7 aHhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=EKLb8gFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-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 pf10-20020a17090b1d8a00b001cba33f51a5si15618517pjb.28.2022.05.08.19.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:45:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=EKLb8gFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A9C597C780; Sun, 8 May 2022 19:45:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378566AbiEHTLn (ORCPT + 99 others); Sun, 8 May 2022 15:11:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237683AbiEHTEg (ORCPT ); Sun, 8 May 2022 15:04:36 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFECA2B4 for ; Sun, 8 May 2022 12:00:32 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id h127-20020a1c2185000000b003946c466c17so210735wmh.4 for ; Sun, 08 May 2022 12:00:32 -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=1XeJnNNlIllodvcVQo3PDKeXH2oW9QkUYejnaC12tvI=; b=EKLb8gFApnhW1NHMOvk+HTnlP5d2IGcAS2IJkExF+KZUAFIXqmLMINZEwKiXIcd+PX GeWTv2PjtyigU6V14+/nkFywTtyo65wizpAdkkboK8pdgfqzN+PzGMUwo4O1l2ZFgCFU Gy8ec67I/C7DsrhErMIpBYpCgTfcUA/6dX8jGmOGnHpN8G3MkSn1pDEhuGYLmWhHmGAX jURzzE1OSPkaJu8qL7qKeUR7DbunQnafGYNtKt2anQugwEOhiII0PZEqP1Lpbv/xMPnJ WGSXmsKx4Jci2WDX/6FJdn2c5T8pKFFRHO4jTyZab3ylxEMTT5HwUfC30hOIrfhkAsvp VsGg== 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=1XeJnNNlIllodvcVQo3PDKeXH2oW9QkUYejnaC12tvI=; b=hgBsBOGGSN6qppCCFVHhdZdqoAPpcVk4nK6AJTvSkiwsfJG5by1E1nuBxLONzbxSAf Z/5C/O4UggFFv/S6AJFG5mBP+r9JYZIy0Y2L8FY7mUNf/ofoJgJwisVhMWDZPaRPNrdz 1naLbG4UuGKcw3A/9WuvGNFUNE8/0CztRZXkhQuhltlUAISy3uKHSL+wnmyzmChamV8R h/h3/3qjbPgSn0nZC3tnecPZofs64jY8Bs0OtTIu31HdQG/YEClIfqKYnKi6WJiYbUsG Ub0dTLUiTuUxCaws/w5++Jozyxvlyx6CMtcwidN6Cm7mS2bZ0mL30Wy+K6+zDhLlTs45 iRHw== X-Gm-Message-State: AOAM533o+RXe3RLzXrksis0qRGm2pGubWUBj31lQG3mb2go54dfhpVF2 1agNPfx8Glc4iMvQsdLmHpmhCA== X-Received: by 2002:a05:600c:4994:b0:394:dcb:d66d with SMTP id h20-20020a05600c499400b003940dcbd66dmr19323600wmp.178.1652036431415; Sun, 08 May 2022 12:00:31 -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 n16-20020a05600c3b9000b00394699f803dsm10552348wms.46.2022.05.08.12.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 12:00:30 -0700 (PDT) From: Corentin Labbe To: heiko@sntech.de, ardb@kernel.org, herbert@gondor.apana.org.au, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org Cc: 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, Corentin Labbe Subject: [PATCH v7 25/33] dt-bindings: crypto: rockchip: convert to new driver bindings Date: Sun, 8 May 2022 18:59:49 +0000 Message-Id: <20220508185957.3629088-26-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220508185957.3629088-1-clabbe@baylibre.com> References: <20220508185957.3629088-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,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-kernel@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, 77 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..5bb6bf4699ff 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,88 @@ 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 + 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