Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2415647rwl; Sat, 8 Apr 2023 14:41:23 -0700 (PDT) X-Google-Smtp-Source: AKy350bOX44ca/VXLENJF3b0wYt3Aag/7Ft72mA1AVJHUzVbyYgL/L9GrrabkJzLpxKKgrwwVHcQ X-Received: by 2002:a17:902:ba96:b0:1a5:2dd2:34ad with SMTP id k22-20020a170902ba9600b001a52dd234admr1767992pls.1.1680990083304; Sat, 08 Apr 2023 14:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680990083; cv=none; d=google.com; s=arc-20160816; b=UkBwt5phhY2I+0DcK4XauddwKEve0T7I7ZqTESK4zs5M0HfqJf+PPxXp+ws2NWoyt4 QlRO3OPzHzUfGi9BJZyV4RF1Z4GzIz/DSsRFXuVNnY0QzZcPDC/huSUQNVlDL/q+g+2m cb5GieCQ88FvviGJ567akssLqL6aamBV1KOEHacbLFxY1F6xxNqthHZctTDXAKxE8G/9 yPKLHYZsBh4jV2MBoG/GMqgdx/EoqzYmog7LjyZCK9qochtGE2S/2EEFggiHPYrmV99P GpfS8c5TKem1579UkjQf+3h/QvANYh8K5UihP5qKdULWhcK3wS/VZO7sO0/32mld0AJZ 95Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=G/ds8fvt8IhNIUkcMPcB2187U+f/tO5X7bx8/qa8ONM=; b=l+GNoB2KG21Cu9xlabawXi7hzEcI7fe+JyaB/q7yvTRz2xY3qqwWw141QFeJJ7X1r/ 4wGNyoYiCpKrU390pps72ZAYJB2qApDZ3Ei5lOa72NlT9aHXnvOy8sZ/BqJ2FV0rema9 mQgFfRbkdUjHhCESclkecPZSXMRcsmltmPYnv+ct9NlqHQxvGlsnEiHklOPOF0xyvC13 N2H35/ocIUUYRtlPnoy0Au1ZkiIjgmZ7LakCCLepx9SBrygNPLwPe2gCgjpyccG3Q7p0 MxmiPt8Nht3Urhahdf6MMJIFyMFYl/rswdCPL7h1u8WLccOGjG9PEtB+ab+Bl+M/NPb9 KvfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m0SLzn1i; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a170903230b00b001a2445dd0fasi6216799plh.381.2023.04.08.14.41.04; Sat, 08 Apr 2023 14:41:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m0SLzn1i; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229458AbjDHVkw (ORCPT + 99 others); Sat, 8 Apr 2023 17:40:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbjDHVkv (ORCPT ); Sat, 8 Apr 2023 17:40:51 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06361976B for ; Sat, 8 Apr 2023 14:40:50 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id t4so39632907wra.7 for ; Sat, 08 Apr 2023 14:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680990048; x=1683582048; 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=G/ds8fvt8IhNIUkcMPcB2187U+f/tO5X7bx8/qa8ONM=; b=m0SLzn1iqfD6YsYtHojGNxnFSimTvg28gxXYWGvhbeFi3ywBXyW2aKpPKcOOnk81GA pLcEC/zzrZ2ZJakFH4GZvs1NXYVS8Q5ZATw+aSem6W2Z4reoZoq35ICKnVa68eA/Po/7 BFDtRtkmaD6WxD4wCiLae4gl/1Q2r4k3JeKUpjo012rA+ctcgAR0df1Cf5XPDm4XLmRV YMWY1CvCaELFO2/x7NQzHDQWbhzCpl7SOTToN6mh4//P9fwC7b1iIqg+NZ8ZIVkIWySc Pi2SUMiMC5Z6faMkDkzq3p3ZxBXZ2Nq+Es4E+Y0cqnd3Kht+YjeQRGlh9xH60wew+601 brew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680990048; x=1683582048; 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=G/ds8fvt8IhNIUkcMPcB2187U+f/tO5X7bx8/qa8ONM=; b=RFB8ZwDa8+IX+OlgWRdyROLt1g6m5LEACPdoz2TOk8YzNzFF8MUbmLsAO5PjBwdptm r/+M69dewEEgfV0tthUur2LLiewrKtf4k3lBunAjy881K19LiyStpMfupV8zE7Zidi8d U0BwMCSIB/w2pHqrwptfsJtOSnpe9ebA0ZtYSbwofoxIRmwFqe6dx5SYYP0s0xPbsyCJ XFUKyPXnQhJwVqdajiqEwkNoQ63hwbvSNC0JItJg5E8Xo7kCA2ado/M6M2WP34+m2lYJ wjQWicbTxqbTEqi1KAwDl9TZv+ZaaXh7ceM7K4dEMIu4i+tjvTbOtw5uZYrrnL1oGuz+ g02A== X-Gm-Message-State: AAQBX9fLDmFa18jrOkc1giwzWwrcp098yIaGOnoyiyn+IO8AYIz1xbQt QTOBZWd/OPqscreD0Y+coihDkg== X-Received: by 2002:adf:dc07:0:b0:2e2:730a:c7de with SMTP id t7-20020adfdc07000000b002e2730ac7demr1863136wri.24.1680990048420; Sat, 08 Apr 2023 14:40:48 -0700 (PDT) Received: from localhost.localdomain ([188.25.26.161]) by smtp.gmail.com with ESMTPSA id s6-20020a5d4ec6000000b002efb6e0c495sm3061377wrv.91.2023.04.08.14.40.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Apr 2023 14:40:48 -0700 (PDT) From: Abel Vesa To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche , Adrian Hunter , "James E . J . Bottomley" , "Martin K . Petersen" , Herbert Xu , "David S . Miller" , Eric Biggers Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH v7 1/3] dt-bindings: ufs: qcom: Add ICE phandle Date: Sun, 9 Apr 2023 00:40:39 +0300 Message-Id: <20230408214041.533749-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230408214041.533749-1-abel.vesa@linaro.org> References: <20230408214041.533749-1-abel.vesa@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Starting with SM8550, the ICE will have its own devicetree node so add the qcom,ice property to reference it. Signed-off-by: Abel Vesa --- The v6 is here: https://lore.kernel.org/all/20230407105029.2274111-3-abel.vesa@linaro.org/ Changes since v6: * Dropped the minItems for both the qcom,ice and the reg in the qcom,ice compatile subschema, like Krzysztof suggested Changes since v5: * dropped the sm8550 specific subschema and replaced it with one that mutually excludes the qcom,ice vs both the ICE specific reg range and the ICE clock Changes since v4: * Added check for sm8550 compatible w.r.t. qcom,ice in order to enforce it while making sure none of the other platforms are allowed to use it Changes since v3: * dropped the "and drop core clock" part from subject line Changes since v2: * dropped all changes except the qcom,ice property .../devicetree/bindings/ufs/qcom,ufs.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index c5a06c048389..10d426ba1959 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -70,6 +70,10 @@ properties: power-domains: maxItems: 1 + qcom,ice: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to the Inline Crypto Engine node + reg: minItems: 1 maxItems: 2 @@ -187,6 +191,26 @@ allOf: # TODO: define clock bindings for qcom,msm8994-ufshc + - if: + properties: + qcom,ice: + maxItems: 1 + then: + properties: + reg: + maxItems: 1 + clocks: + minItems: 8 + maxItems: 8 + else: + properties: + reg: + minItems: 2 + maxItems: 2 + clocks: + minItems: 9 + maxItems: 11 + unevaluatedProperties: false examples: -- 2.34.1