Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp554051rwb; Tue, 27 Sep 2022 01:00:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM68WJOMrhojjMEnZ51R5juzwn7EPSvHlPtDyiDdUukO2FPWHsh2yEF6EVuutWzB8opx3ZBX X-Received: by 2002:a05:6a00:4205:b0:54b:6e95:268e with SMTP id cd5-20020a056a00420500b0054b6e95268emr28133442pfb.50.1664265652869; Tue, 27 Sep 2022 01:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664265652; cv=none; d=google.com; s=arc-20160816; b=tAE7dDg6KhHQJFe1R0oN4zyn/MRfuEiKzSAEUw8cc0MrSoDUG/huTAp/Tjuh3C7g2i rQGk3K7eV6EO365E8e0994lk9+VcfbfqZcof3mBZmxqhcL2T7B2/o0Jfiv7vFTxa3PLq 1BAg34Rv2/TDJI/dNraqLYUfaIZAlFSx7lbRGrCEKpi98W2IuWOgtyRfPboXaSK3n7FU L/jEmH/pyuv2n57yrGQYYHY4hhh6M6d37qH8vHpEkvjd8yEedUUuKlQTUBeDeZV8nTWj 9D/SxLTCM9b3T/hVM5T4LDAFVBXEaknrQs/7+Xz9AHrn8q12OEed7/bwnbdz389IWaRN nWSA== 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=ADE9d2Wn62ug3S5fC01dr3GFFHi+uj6qkqBx4/1dDhY=; b=DWUVCMiGCNv0PV87VshJAdb85ZHH/JEn3HXIotJKE+P5Fuqt2q6uDso4sbOgTDCp41 MP2QK7uDodxJViycxKFmudMehn1iKl37oYAfTQRRkt6ZCVz8Qf+309WDqOrOB0zVcCHD muwRe0SlJ+hYt+nOb8U6rTsX9aZKQWcz2u3gL8BBkG6WBjZGApaCV+TdHQzVIun26rFS blQIzLAzX+q9OkjK2Ptef2pYEnrVhDRZkXZJhKtA1h5bLv7i/lRSUNNhJHlzGnDuF/mf NPtycXLgDA26hvP4kNqLokBJl7Ffj2rULdIS3izwEU+Q5ovCYVHrHedTIOwlXWs7w8T8 mXoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=SFEI88fk; 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 om18-20020a17090b3a9200b001fe4d6dbd9dsi17117377pjb.163.2022.09.27.01.00.39; Tue, 27 Sep 2022 01:00:52 -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=SFEI88fk; 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 S230454AbiI0IAY (ORCPT + 99 others); Tue, 27 Sep 2022 04:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231520AbiI0H7O (ORCPT ); Tue, 27 Sep 2022 03:59:14 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4857AB0291 for ; Tue, 27 Sep 2022 00:56:38 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id x18so13670760wrm.7 for ; Tue, 27 Sep 2022 00:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ADE9d2Wn62ug3S5fC01dr3GFFHi+uj6qkqBx4/1dDhY=; b=SFEI88fkm5llcXA8dPnC3RNaxnqCMd7HxoPOQJrSbU2s0cxl37X0bOycL9YhowtTgN mnYLz/9AlqlQy1PRPCzLml87bfY9x9N2HP0evWgN0cowQbY7X1RDkW7ik8/bLMNGqrZw gj/pflWQQDsEJgi3q/tpwD6aU9fJKGBct8AYSmELz4BW6J5bof+QhacW8Ygv0uf5qd5X dh+gcjuxSMP8SRkBL607z+JzJKO4rvEfuldb99VUJfFpBWGwsHc78rNLimjJer28WwTl xYYlaNoUx621vQERHGohqDT5a6J+gdbd3tMr8O/1w+Wc2XC67onafUfYlR3mQl7zWe2k zoPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=ADE9d2Wn62ug3S5fC01dr3GFFHi+uj6qkqBx4/1dDhY=; b=ZWK3cHvPyj8t+G5k+wYf+YnpxTe5Kln1FmpryqBg5oan527ZxYKFLFYhRbywVI/sY6 6tWNR/S5R9iI+ebeM3GAimn9gVz96f5aIW2UOikwiZtFkDTvYocMmalJuSfX3pbdl1MN Jf/4FlsVZVjt0UwL+VIP930leHAr3jg10Ee0TMceVaouv19/X7KwcnNlwTFjvLZRgS6R ux/+q1qbmTe7Qbw/fLLxiu7rehu45KXraZpaEQVtl4iuabzhnDVA8ZSGlbMtR7E0CF+f eoYSnIrdWiHxtdnoAT+urR3Kd/pUN7zgodBrEPGBi9PdQ7ViEKc8yKOvsFlnSa64ncFx 0Ajg== X-Gm-Message-State: ACrzQf11B4maAPYrO9mPV77S2+vJy1APZyUzPJOly8tTRDIhcqbA24a6 /O9LUcgahtJNme8J1Hk2zxUDJA== X-Received: by 2002:a5d:4a01:0:b0:21d:8ce1:8b6d with SMTP id m1-20020a5d4a01000000b0021d8ce18b6dmr15738325wrq.718.1664265361715; Tue, 27 Sep 2022 00:56:01 -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 x8-20020adfdcc8000000b0022afbd02c69sm1076654wrm.56.2022.09.27.00.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 00:56:01 -0700 (PDT) From: Corentin Labbe To: heiko@sntech.de, ardb@kernel.org, davem@davemloft.net, herbert@gondor.apana.org.au, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, robh+dt@kernel.org, sboyd@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Corentin Labbe Subject: [PATCH v10 25/33] dt-bindings: crypto: rockchip: add new compatible Date: Tue, 27 Sep 2022 07:55:03 +0000 Message-Id: <20220927075511.3147847-26-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220927075511.3147847-1-clabbe@baylibre.com> References: <20220927075511.3147847-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 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 Since driver support new compatible, we need to update the driver bindings. 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..f1a9da8bff7a 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 + 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: master + - const: slave + - const: crypto-rst required: - compatible -- 2.35.1