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: 656301 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 1B45DC61DA4 for ; Wed, 22 Feb 2023 17:23:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231799AbjBVRXO (ORCPT ); Wed, 22 Feb 2023 12:23:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232712AbjBVRXB (ORCPT ); Wed, 22 Feb 2023 12:23:01 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08F8593EE for ; Wed, 22 Feb 2023 09:22:57 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id e24so2357675ljj.3 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=EI8gB/KiDkKHVY//GF5HED0DSvyY8lKf5PXWHwthJLg15VEgn5elL9dAqeS8mkCQBb 1AvxD5z0i59R0ZsyLtIgEsdEvCWZ3qe6s3QBb8RGgd49wm3hpgrIhhmwUFthgAYbtZIP DNrE6vfv9E+eiZtaOcc0AsO7mH68+4D6kGIEfVKic2qiR1mrOzWSYOOVlRDqHZpLNOAp Zt+Xv3n9ATsRudXu0Fhs5HPBp9nt6NsWdHeIrGg6+XwMX4IJOzTRi0O1QJwpfOlseJBM lU9VWKs9bGubzU9x5RpV6GSJ6KFKW3OTrmeaYHJljUE5wc81kq5lMH8X75LV+6S3Janz TVsA== X-Gm-Message-State: AO0yUKX+qb+/zIlozaFNureYakWfQZfOdAO+AJVqbVqROqCFJZ4bAKxt AfEK0Bj47BwfRcghnvLr3c4K9w== 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-crypto@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 --- .../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