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 8486FC64ED9 for ; Thu, 16 Feb 2023 13:15:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229647AbjBPNPI (ORCPT ); Thu, 16 Feb 2023 08:15:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbjBPNOs (ORCPT ); Thu, 16 Feb 2023 08:14:48 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B9A85356F for ; Thu, 16 Feb 2023 05:14:42 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id a9so1858871ljr.13 for ; Thu, 16 Feb 2023 05:14:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1676553280; 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=d0+woTIjuYDo1YujAmfEwTVLwd/ItMwPndJc54myqDM=; b=XMfqw7S20STlRPPMXNqwD1R1JuuBXEyevJZRLeCFld9jLyQlIZfF+xc+19yWKn5zC6 pFfsmzxnyNucyjmlN87fHoMtPJDzouWbCADT0Dbaxr6R77bHJwbLqavLFsDqnFTqPc0d fPGpYlabfQZLoErjyNoIY2KBH0WMomcsmwyXheGUY+mrL1yTP032jMjlRIMA7rMhlrCb uALmz5h6azTtkEv/E868yN8CuF9k1fOWfrMnKWD53DFEkdftjUl/ekN04OVnl9W6+KOc PrFxwpwRbICWHMplTM46WRaJkcVNyrBXR6zeET5anqTSTU7c4MMSfHuOa6jme5G1jGOv pLEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1676553280; 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=d0+woTIjuYDo1YujAmfEwTVLwd/ItMwPndJc54myqDM=; b=UVj+sJZgum2V5kHCx1VDQESpe7UAExN6V28TvJndT90R/TsiMUqysJWmeRZia8mwRA Er1PPoF96SsyoiLCUczwSIs/18fhT7+Gw12JNxVMUT+/twuASMl1ybeWZMxmrF7bomfd 2G0HCMM3x55/Ir6KjQkz91EdMZDNvg6XR7YZ5dY+82WwXcSvlzVF6rJFfaC9Jq94vVrX L1RSYzv/CWTJOF8/dxz1JhTvJqojfxOcrgMP3SErL5g3l4Bmi2MkENdeu+JA2erUCDfW WFYZthtZY37Hcg1hU+4rUMIHL8Uz8hV10D9NhDrsvV1IzVZuu0QOLP0vDav/LqQo5EjG 6X4A== X-Gm-Message-State: AO0yUKXJgTfDkwfK6LVucQutGieXYscNJ0HvDBsR07PCzOZo7PVUd7oe /qt/JzkGtVoS3CGzEXv4MfN3qQ== X-Google-Smtp-Source: AK7set+7FJaHeqOMCUESBMdig1pW+q3tAVNvsy1SJ03Gkkl6FwR5horR9b8QomO6VXa/8/ctq9AVAg== X-Received: by 2002:a05:651c:2115:b0:292:b368:3483 with SMTP id a21-20020a05651c211500b00292b3683483mr1824654ljq.1.1676553280422; Thu, 16 Feb 2023 05:14:40 -0800 (PST) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id j8-20020a2e8248000000b00293500280e5sm194345ljh.111.2023.02.16.05.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 05:14:39 -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, Neil Armstrong Subject: [PATCH v10 05/10] dt-bindings: qcom-qce: Add new SoC compatible strings for Qualcomm QCE IP Date: Thu, 16 Feb 2023 15:14:25 +0200 Message-Id: <20230216131430.3107308-6-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230216131430.3107308-1-vladimir.zapolskiy@linaro.org> References: <20230216131430.3107308-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Introduce a generic IP family compatible 'qcom,qce' and its two derivatives based on SoC names rather than on IP versions. Having a generic compatible is only partially sufficient, the QCE IP version can be discovered in runtime, however there are two known groups of QCE IP versions, which require different DT properties, these two groups are populated with SoC based compatibles known at the moment. Keep the old compatibles 'qcom,crypto-v5.1' and 'qcom,crypto-v5.4' for backward compatibility of DTB ABI, but mark them as deprecated. The change is based on the original one written by Bhupesh Sharma, adding a generic family compatible is suggested by Neil Armstrong. Cc: Bhupesh Sharma Cc: Neil Armstrong Signed-off-by: Vladimir Zapolskiy --- .../devicetree/bindings/crypto/qcom-qce.yaml | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index 4e00e7925fed..84f57f44bb71 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -15,7 +15,32 @@ 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 + - const: qcom,qce + + - items: + - enum: + - qcom,sm8250-qce + - qcom,sm8350-qce + - qcom,sm8450-qce + - qcom,sm8550-qce + - const: qcom,sm8150-qce + - const: qcom,qce reg: maxItems: 1 @@ -70,7 +95,7 @@ examples: - | #include crypto-engine@fd45a000 { - compatible = "qcom,crypto-v5.1"; + compatible = "qcom,ipq6018-qce", "qcom,ipq4019-qce", "qcom,qce"; reg = <0xfd45a000 0x6000>; clocks = <&gcc GCC_CE2_AHB_CLK>, <&gcc GCC_CE2_AXI_CLK>, -- 2.33.0