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 AC76EC64EC5 for ; Wed, 8 Feb 2023 18:39:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231235AbjBHSix (ORCPT ); Wed, 8 Feb 2023 13:38:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231215AbjBHSiZ (ORCPT ); Wed, 8 Feb 2023 13:38:25 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4584728235 for ; Wed, 8 Feb 2023 10:38:20 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id m8so21723690edd.10 for ; Wed, 08 Feb 2023 10:38:20 -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=v3yGyy6DT/FeiWv3N7O4FaG2s+u8+Q44HOcXWeexoAk=; b=xfRxNZKeHqAq1oU4BJxHwtGoudZ6HuAE9yC5MOpJx9KztcjIGoMs+WfcPvAKYNoyX5 8/7xj+WhEgBtA+DI5pfyFEZERS3xGpSu/ZP7QEzbBLC7Rzcy2gGtQBAX1rk35sflYqUW cOWBJHUZNch8RRrPjez/QVcVGPLtSQ2gb4mvsYz1vUBU+mI29NjwJKUuDT+uQv0sdRJy 3B/yrYhkFklwRy9uNvBN5hQyDZEF0g+JMPGvp6uFIihTH/9ek/bIVpjW+LM7LkyUNFGV IE/gDa4G45MOflgy/ECdDIiF/Obw9PmXrYgpbX78EDoi9Dy/glUCvD1C0r26vSfmM3fL 9tvw== 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=v3yGyy6DT/FeiWv3N7O4FaG2s+u8+Q44HOcXWeexoAk=; b=r0QegyXM8X6qltHVIGZYccOrFKMoRyNx6QRluBo6Epi/TIsK92G3zgFDhmFtfKbzQ8 CM2pk6sT0SqQIXYes/WdYc6zzmnVihfEI4MKTSR1vw/5m+7yCcwd2U5yQlOilYtXOF6W 9Vl6xOewJt3/j4l51KSkNhSPlTthbS3RzsV8ysxucAmDkBazDxI7LKvWUx5KZqDr3sJk xLr+cP6vP9zd/Z6/QcZIjvfILpUjFexyAGdVQEg4b9sW8eJci/Fi2k3Qbu8dfq7Q+Db0 Nxwi7DWksPFFXzcTjcgvFwbElxmVYGVFEg8I162tPalD4armEw7wljseQnhf+I63IbHv ayzQ== X-Gm-Message-State: AO0yUKX24hOX033cIVt+VuH6eP9H128QjsWuQQJ3dbXsvoRSf/mB+y29 lUaAs50nd73dCs+zgQqOFVzG6A== X-Google-Smtp-Source: AK7set+mt/xEx6HRtJbQVOPA+mpkt0iDASqZdbQ5zXXYmROAGaAnkAVky7plisq5gyQaCUW0doMyNw== X-Received: by 2002:a05:6402:1d49:b0:4aa:b0e9:84dd with SMTP id dz9-20020a0564021d4900b004aab0e984ddmr10707225edb.3.1675881498827; Wed, 08 Feb 2023 10:38:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:18 -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 v9 06/14] dt-bindings: qcom-qce: document optional clocks and clock-names properties Date: Wed, 8 Feb 2023 20:37:47 +0200 Message-Id: <20230208183755.2907771-7-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 Content-Transfer-Encoding: 8bit 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 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index f6f1759a2f6e..d0f6b830a5dd 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -79,11 +79,22 @@ properties: required: - compatible - reg - - clocks - - clock-names - dmas - dma-names +if: + properties: + compatible: + contains: + enum: + - qcom,crypto-v5.1 + - qcom,crypto-v5.4 + - qcom,ipq4019-qce +then: + required: + - clocks + - clock-names + additionalProperties: false examples: -- 2.33.0