From patchwork Wed Feb 22 17:22:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 13149385 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 2D3B3C64EC7 for ; Wed, 22 Feb 2023 17:23:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232136AbjBVRXO (ORCPT ); Wed, 22 Feb 2023 12:23:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232697AbjBVRXB (ORCPT ); Wed, 22 Feb 2023 12:23:01 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08EB393D4 for ; Wed, 22 Feb 2023 09:22:57 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id a10so8673007ljq.1 for ; Wed, 22 Feb 2023 09:22:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677086575; 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=81Eg8IFjCVRuU9rYgFIp5x0cgMeqnSHlx3m8knRv6/g=; b=Fm7eMnwreUyngGKUgoiEmS/OykEqVo7wGXhlCJfMOpVFNOFBfZPQQxwq1Pa/FZSqfi Lt4x/qXHV58bvYxfKpvKMUAKDRPbtC2C8702ZY0xaFnTK/SSqI2m8boxFMZ+7Gnppb31 qJCX7h43TPYrK3GXgdXwYqfRKL8IdO7Y+DDrKWaYRTnn6iW4Fa9Xsr6GFhw2Upp/8FLD p3EgFbzzBN+bvUnMMnLEOt0WgFOrYmJND16If0a7g69+1x5oi5Fu+ZtCQVQmBX0PUyEO 5P6ZhgeaOdCs5AYsef6ns2LDqFtfOGC5CR01/8GP8nDvBKP8o8+58/GFlGGm7Jwl8T76 x0FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677086575; 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=81Eg8IFjCVRuU9rYgFIp5x0cgMeqnSHlx3m8knRv6/g=; b=6hd2mOTB+YKpckYs1CIZuyUtdv3BCyTT0Um5mJa5mJpb7IhNcb+z/ERzTFgObhQAxj hq3ZRxFJMOpKSijQhnHq/NupdpO8lkBwEauEP/orONngSARi97MUBdJIzeSFFfw7rywO rnT9MZM/ft9Ckq+Buf9c/KJ6Lz7VYukYQWiNip7YNNZbY728SRfdi3+2WgiO9zwePwov tnxlqzx7nQ+K+nA8+chAEi1hki0EPUD2x4Qmtqw7AYpiIKeGNFFYth4qk+5hnWrkUwsc 3X6ZtEqGOaNVqfz7QgVOl/8q2MfowU5SuLtImPJBcdmVDhcfw4bb1BQ6DHEGmsfrwcGn vExQ== X-Gm-Message-State: AO0yUKUBvNP2wSdPr70LZcwtaELt3WAAJY2hf7k3We8D+cYewqqcYim6 +LIRA8YRaX9uSpNGBbwTxGh46A== X-Google-Smtp-Source: AK7set+x92lIoKOT3n0uDDDCWTLeeVofuWBPFxMp/7mAlpY/LmCvLRKoQPz9/G1wPV4lBwcHuMMu+A== X-Received: by 2002:a05:651c:ba8:b0:293:253c:a435 with SMTP id bg40-20020a05651c0ba800b00293253ca435mr3152017ljb.5.1677086575749; Wed, 22 Feb 2023 09:22:55 -0800 (PST) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id r3-20020a2e80c3000000b0029358afcc9esm805233ljg.34.2023.02.22.09.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 09:22:54 -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 v11 06/10] dt-bindings: qcom-qce: document optional clocks and clock-names properties Date: Wed, 22 Feb 2023 19:22:36 +0200 Message-Id: <20230222172240.3235972-7-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230222172240.3235972-1-vladimir.zapolskiy@linaro.org> References: <20230222172240.3235972-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On newer Qualcomm SoCs the crypto engine clocks are enabled by default by security firmware. To drop clocks and clock-names from the list of required properties use 'qcom,sm8150-qce' compatible name. The change is based on Neil Armstrong's observation and an original change. Cc: Neil Armstrong Signed-off-by: Vladimir Zapolskiy Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/crypto/qcom-qce.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index 84f57f44bb71..e375bd981300 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -81,11 +81,24 @@ properties: - const: rx - const: tx +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,crypto-v5.1 + - qcom,crypto-v5.4 + - qcom,ipq4019-qce + + then: + required: + - clocks + - clock-names + required: - compatible - reg - - clocks - - clock-names - dmas - dma-names