From patchwork Fri Jun 23 11:30:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 695788 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 846B4EB64D7 for ; Fri, 23 Jun 2023 11:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231586AbjFWLa0 (ORCPT ); Fri, 23 Jun 2023 07:30:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231477AbjFWLaS (ORCPT ); Fri, 23 Jun 2023 07:30:18 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 994022695 for ; Fri, 23 Jun 2023 04:30:16 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-510d6b939bfso581289a12.0 for ; Fri, 23 Jun 2023 04:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687519815; x=1690111815; 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=BAVdWTyVv3g73n3CI+aPBRAAgKOeuBE5xdTL21wVIwg=; b=WU2xliCvd4k0PhUDtYCukSTQgNP9IiMRwhkE2J29RhyOsvutK/TR4kgQpzmawI250J GOG03XVJm+9emx4oszUbYeVHs9gjUh7b7vu2oMGGhMmvRwAn6qJweCH9wdC0PgSB1sKO Rct9gMXEDBM59Q/QQfMQ+fk7n1/H13ThS0AA9VBveGdZ3mjHsPka8tUukz03sGmhYXAA 21GNh5ot1k6SunbyV8wix9rCiSC2Fl9vDuP1F9Jjb+MfYRv5bPOtbKLpP8NIvdfVF/fa YhTkhRlINM4WmIVTOnEm5hDpJLNSaSrHMZMKeabp19NV3xtsZGmsH8wXYz8E96otd/s/ uD4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687519815; x=1690111815; 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=BAVdWTyVv3g73n3CI+aPBRAAgKOeuBE5xdTL21wVIwg=; b=OMQZs5FPqrnvwpQG80uZkzUyPdX9VL3VGvk0XQFKfPAEXIoCAKaM+gk7hh0k5wrj4n +hjLOxtyCpGWp8U06Cvv1NqFpVfTAE7XMC6OMIGcLzbWtsjJLlO/obiUTSEfmNPgRpeJ 7i8+5ZOjbGWqPkJKkV/161D0LVmUefChY16VgNJwZp31sU9EreMzgjIebCvDCWLTj5nr vtQPZ5CkpizRTIn3S2fX3Huf/YBrkkXOTQ7Tj8fLTHneLRNYxuW2vz0ZL86HHhmzHJtC IbMTdAAX2KZL2w6yeKa0wCcRa+0uMgpYZvexmTEALxZk+raNCGDbHNsdmNOmPhO2arjS uyPw== X-Gm-Message-State: AC+VfDxppUOzH0dShelynTOUdE+2+2ZC3+4Jhh+IbB7239K7vgZgr0RT ThhyWMchSjRS2etLAqqFvCNVKQ== X-Google-Smtp-Source: ACHHUZ7442WtdeZn/EbQNjnsNf4WN5KkBAVB7CFMsOO+BKNDLrNVoN9HuA2w7XSsTcE9PVr8p/76FQ== X-Received: by 2002:a17:907:9810:b0:96f:bcea:df87 with SMTP id ji16-20020a170907981000b0096fbceadf87mr21417284ejc.42.1687519815129; Fri, 23 Jun 2023 04:30:15 -0700 (PDT) Received: from hackbox.lan ([62.231.110.100]) by smtp.gmail.com with ESMTPSA id z17-20020a1709063ad100b009821ce1ea33sm5908033ejd.7.2023.06.23.04.30.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 04:30:14 -0700 (PDT) From: Abel Vesa To: Manivannan Sadhasivam , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Martin K . Petersen" , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List Subject: [PATCH 1/5] scsi: dt-bindings: ufs: qcom: Fix ICE phandle Date: Fri, 23 Jun 2023 14:30:05 +0300 Message-Id: <20230623113009.2512206-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230623113009.2512206-1-abel.vesa@linaro.org> References: <20230623113009.2512206-1-abel.vesa@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The check for 'qcom,ice' property is wrong. Fix it by checking using if-required clause and expand the clocks minItems and maxItems for platforms where 'qcom,ice' is not required so that it includes platforms with single reg entry and clocks that do not provide an ICE one. Fixes: 29a6d1215b7c ("scsi: ufs: dt-bindings: qcom: Add ICE phandle") Signed-off-by: Abel Vesa --- Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index 943dafb69529..bdfa86a0cc98 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -194,9 +194,8 @@ allOf: # TODO: define clock bindings for qcom,msm8994-ufshc - if: - properties: - qcom,ice: - maxItems: 1 + required: + - qcom,ice then: properties: reg: @@ -207,10 +206,10 @@ allOf: else: properties: reg: - minItems: 2 + minItems: 1 maxItems: 2 clocks: - minItems: 9 + minItems: 8 maxItems: 11 unevaluatedProperties: false