From patchwork Wed Feb 8 18:37:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 651747 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EA81C677F1 for ; Wed, 8 Feb 2023 18:38:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230495AbjBHSiv (ORCPT ); Wed, 8 Feb 2023 13:38:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231151AbjBHSiY (ORCPT ); Wed, 8 Feb 2023 13:38:24 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E14AD522 for ; Wed, 8 Feb 2023 10:38:18 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id l12so12839984edb.0 for ; Wed, 08 Feb 2023 10:38:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=seDN7hLl5swt4J3XJglUIV2zzqtOSiYmNP6OJCG/0cc=; b=Vb5ztwSumtqb2AB0kziEEW5EbhUthUpiOANbKW6VF+Np5gKsFzuhYqYjxzZ3M398Q3 DGAayObtSCsTqCgKdKBec95E17hC16j/qqyWWIaUMJ9Zdy0v3L+Vz89mgOwnvMrNp8Tv icUlj9/ErrnolSiksCWHbKyB4I2VRRIMYJzjfVDleHSxOli6A6uwyLJE7upSTC+h7bnl ypD3IdhRp4A9rODPxSK7rNDKBM/6UcXcjw9oRKtA7Hi5vX4CWM90mRI16Y3ecTmBTQJo ufMO/Wb65MP/SnSIB+ctt4JSSiQr3QzAdBs9zU/bngEn85oUusQyl+B9wGX49OW+gBfu 2awg== 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:message-id:reply-to; bh=seDN7hLl5swt4J3XJglUIV2zzqtOSiYmNP6OJCG/0cc=; b=faUfHZvgxuRO8zwiw7DpBwJT+RJrodjwuDVwh7wRfTf5z8R2LcolUFxhby8rruKP3X zfDIDns+Gzkb493hXyQlLQ6y+hYihtBZhNOmYf8BEK5jCepkKLfKKj+0J/jEmjA+bS1K 6fRLKmWo8N8MSf2M4RDqrFt1vfwQErK/doYb5QhjI6DEmFT94QUi1o/2xHeK5H1qP48Y EPwBeelhh5FTveykGsT0rFCkmitwT4LGf+tDopi5WoiTmo+1CF9bmOBaDn4rdvGVN0WI rPvnfG1lWz1zpAmmQ578wqph3XPBMV2ch/aKV9S2Ug5kLH98QToOSDZ3DxY/5B1o9uG0 tLDw== X-Gm-Message-State: AO0yUKVxELEEKCsKDVwHQvvnYp1WkyS0cO6PDqzILuXihZxtUHCyPlUK IWgsVQeH2XRYYqEyb2tA8b/5QQ== X-Google-Smtp-Source: AK7set+y4vkuO6iCpFVJRNS7wp74veH5JnO0RdabOe4YWDYh+5U6S4gBwdKJ8pFaGEI7pgC9E7iKLw== X-Received: by 2002:a05:6402:51d2:b0:4a2:64d7:16bc with SMTP id r18-20020a05640251d200b004a264d716bcmr9494711edd.4.1675881497254; Wed, 08 Feb 2023 10:38:17 -0800 (PST) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id d22-20020a50cd56000000b004aaa8e65d0esm5179663edj.84.2023.02.08.10.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:16 -0800 (PST) From: Vladimir Zapolskiy To: Krzysztof Kozlowski , Bjorn Andersson , Herbert Xu , Thara Gopinath , Bhupesh Sharma Cc: Rob Herring , Konrad Dybcio , Andy Gross , "David S. Miller" , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH v9 05/14] dt-bindings: qcom-qce: Add new SoC compatible strings for qcom-qce Date: Wed, 8 Feb 2023 20:37:46 +0200 Message-Id: <20230208183755.2907771-6-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> References: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Change QCE IP version specific compatible to two QCE IP family compatibles based on SoC name and populate these two IP families with particular SoC specific IP compatible names, which are known at the moment. Keep the old compatible 'qcom,crypto-v5.1' for backward compatibility of DTB ABI, but mark it as deprecated. The change is based on the original one written by Bhupesh Sharma. Cc: Bhupesh Sharma Signed-off-by: Vladimir Zapolskiy Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/crypto/qcom-qce.yaml | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index 4e00e7925fed..f6f1759a2f6e 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -15,7 +15,27 @@ description: properties: compatible: - const: qcom,crypto-v5.1 + oneOf: + - const: qcom,crypto-v5.1 + deprecated: true + description: Kept only for ABI backward compatibility + - const: qcom,crypto-v5.4 + deprecated: true + description: Kept only for ABI backward compatibility + - items: + - enum: + - qcom,ipq6018-qce + - qcom,ipq8074-qce + - qcom,msm8996-qce + - qcom,sdm845-qce + - const: qcom,ipq4019-qce + - items: + - enum: + - qcom,sm8250-qce + - qcom,sm8350-qce + - qcom,sm8450-qce + - qcom,sm8550-qce + - const: qcom,sm8150-qce reg: maxItems: 1 @@ -70,7 +90,7 @@ examples: - | #include crypto-engine@fd45a000 { - compatible = "qcom,crypto-v5.1"; + compatible = "qcom,ipq6018-qce", "qcom,ipq4019-qce"; reg = <0xfd45a000 0x6000>; clocks = <&gcc GCC_CE2_AHB_CLK>, <&gcc GCC_CE2_AXI_CLK>,