Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2221649imw; Wed, 6 Jul 2022 02:09:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tJXQbpzn5t7BqdALH/wIOm791F9XdsKAOvATzphfDVPpSOuX1mGOhJbCzX0KKcsY+6bDvX X-Received: by 2002:a17:906:604f:b0:718:e9e8:9d2a with SMTP id p15-20020a170906604f00b00718e9e89d2amr38109697ejj.315.1657098540129; Wed, 06 Jul 2022 02:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657098540; cv=none; d=google.com; s=arc-20160816; b=omD9zfjZQQCuuQWkhLZ5g54PBczzFMhNef/Hg46tUxXM7+mB67Ge4cpIaeZmoemnxt Q9QasIlvRwh+UT44GPwoCgbjYfmDqZi+cN6qNQWtIwEo5JwC+xN7/+ssC80CmPVoRCeq P2SOPfyaBl3MpO+0LVFy0OlTXlwjhqOWy1WyNQeWLkO2MGAs2fY/BVZMTd+MHlMDy67g bGmPRbp43Yo3KBKU2ROsmbPfeZX3FMbDRlUjBH8YfE3vyaHVXcq7L7QCaJznY8UQf6hS tJ/FVzfBcjjO/SAU3/5jTJI14AatN/ShzNVcZpP+YNe2SJfbvLPTbOhl77HBsPNs+dZx fZDg== 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=X7cJlxa5ip0o5lrSA1Cq27Abc5a+ZcugcbcpPEkeHA0=; b=ee35cm1bc+VyvpICXJe9iSfe6dCl/e19pVZlBIikokdgotDm2IL7HuxvnyA/RlB/iJ NqgvPxWObLOZ+k1iQfcqiH43AsV+NCSoqplNA7e2iwO7U12E0ZLQaJKY/WtMJ07SudWZ +BuEk7OKcDpMvYcWSL+d1szsr7dGnkMJcCDrAJval745VoCo+C3w46xe2AfVc/jPLMaR dpyUVW2+7/qlaHuMGzAVMXakP6jo/suBgwvhlPQtHDywJ7+/8r7vi/FU7V+vdBdPW9Y5 WAEZZCIwfiZ3j9FKwzrWlJ4WeBqX72bBUnaTMrYj6/SJ+EV8eHnFRx6zoqczByX616Ep hw8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=BfBzAqSa; 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 qf32-20020a1709077f2000b007121c1dc158si22986032ejc.518.2022.07.06.02.08.35; Wed, 06 Jul 2022 02:09:00 -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=BfBzAqSa; 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 S233046AbiGFJHW (ORCPT + 99 others); Wed, 6 Jul 2022 05:07:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232795AbiGFJGR (ORCPT ); Wed, 6 Jul 2022 05:06:17 -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 70F8E2127C for ; Wed, 6 Jul 2022 02:04:59 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id f190so8422922wma.5 for ; Wed, 06 Jul 2022 02:04:59 -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=X7cJlxa5ip0o5lrSA1Cq27Abc5a+ZcugcbcpPEkeHA0=; b=BfBzAqSa8w4fzWQfTTC5FNOLO2uFMVd7IYdWjSD1AGYBlpM8m5TE1ecjewFy4BzQdm FplphJsHz3EMKXLnuHO0YKsCoQMx9RNS6XtxNkdrGzCO6zQdxMATQaL8JL/UnQKwIv5c r/dKRE5+NOm78+DireDdXfXz7kYN9M2FmHCjQJNAlJkuAE5oh6lL6xe5FEcOBLKr5DYL cAAMmtZtdp+qJ+In3wyGnuARZcJJDnCvMzxpqfqdiomMHErTKlnxg2tQyzjSZRmh+EJU bAqN98KmOGhaUC5nWrNl1UZjuXvogwdsAedOnXZEBJcsl9x4KytoIM8gc4N7HlsFQAef hR4w== 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=X7cJlxa5ip0o5lrSA1Cq27Abc5a+ZcugcbcpPEkeHA0=; b=yTtQKBsG8xxWfovbTNO0jYLXZ7gpNI9L26P/bJBpRBkBUOo3VlEx+XyGSQ7hwLXDkP tiO03tFNkp2npduBvGB7z8q2YfmogkVVkof26qxYw6y7xoaPNnzBDf79rqDZbkWLJUM3 6urd6sk/70TXWPuBtlf2pCMn6pvVkx9xIwheqRb8VI3FlGYfPrb4pUrCfJ65OhXRqhCn BXI1PSZwDAjoacU5t+xTqomIfAoiaNLArRDW0IlblOH/m20DeLH4aD5IvzzdS9AqHVu2 M/Ccodc+cnb2dm6GNxp4RHPy/bEUAZ0ddqXGQylGVazKXMu3QLw3CI3xNq+mx+XmrXXk irmg== X-Gm-Message-State: AJIora+77d3Ypor16o6t3keC0XE+D7Vl2G1vp46cmijNlhBhW3z1KyvO ciE0qTRWo6CfpQKYlV9BobboaQ== X-Received: by 2002:a05:600c:1f11:b0:3a1:967c:5f0d with SMTP id bd17-20020a05600c1f1100b003a1967c5f0dmr22483370wmb.26.1657098299074; Wed, 06 Jul 2022 02:04:59 -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 v11-20020adfe28b000000b0021d6ef34b2asm5230223wri.51.2022.07.06.02.04.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 02:04:58 -0700 (PDT) From: Corentin Labbe To: heiko@sntech.de, herbert@gondor.apana.org.au, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, p.zabel@pengutronix.de, robh+dt@kernel.org, sboyd@kernel.org Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, john@metanate.com, didi.debian@cknow.org, Corentin Labbe , Krzysztof Kozlowski Subject: [PATCH v8 25/33] dt-bindings: crypto: rockchip: convert to new driver bindings Date: Wed, 6 Jul 2022 09:04:04 +0000 Message-Id: <20220706090412.806101-26-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220706090412.806101-1-clabbe@baylibre.com> References: <20220706090412.806101-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=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 The latest addition to the rockchip crypto driver need to update the driver bindings. Reviewed-by: Krzysztof Kozlowski 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