From patchwork Tue Aug 20 06:31:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 821895 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71E4F1E2108 for ; Tue, 20 Aug 2024 06:31:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724135491; cv=none; b=nxqVZU0YEgVl/RWp5GzBtctxgSHRRlLPwn83vXuZxFY7YE64cTmxs3FvaDBvKTE0w79ICkYA7GJwwLwsA9j+ECZPUtUN/QfAkx+qXhTucb9q6pgOj42iwGkUsKq2dYQKzIlP7STuwSqGsSx67UR9F3pF+QEc1BZfS4tLuMmNTrw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724135491; c=relaxed/simple; bh=sXqiiQ8My1UQHdF8XP8yxQIGVVpVwbUHO3wz0fBARec=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jxbUft6vL591Q853PSKG2HSBR9zwQQLHOkbaq4+XnvBJL5k+JdFSXL65aM/xmvme0PNQsxvL82oD+jHyNGONemvuFVAEQalFWLlaMy+F75jIviXA7vELV+8/WSadSYmq5jJAk9vCQZ1nvgx5wuB+vMl5HLsxxkKOxbqRKoUbuJs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=etg93A3a; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="etg93A3a" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4280bbdad3dso39768955e9.0 for ; Mon, 19 Aug 2024 23:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724135488; x=1724740288; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uVW3Gyp1u8xh3tJP8cuhx0/w5djPTqbmXPb9/SDuAG8=; b=etg93A3a59N3e2GmFSnmOCBeIR2G96/NFEOSx3wvjqVsFwlZEORs+sKn4rAGqtD0VZ SzUwiX9fTAl0UFp8hYQXjioZDnmUcBosuKAA7EWg0KouIoUnG93GWGBmyp8IcXES9Efi 24YlJeJ0xxok3rZJDyLHXHqhntO7vEgxN3eRs6+ksnH8YS0A2PMpxIWFtn1Qs4DqP/g1 YA3VPdTz0UGI7fAii63r6oqvowRxAkhwgzb8jFUC2t/sVltSN3XyIxmQRIf7Ho6Mhph4 P8DzfV1+axwyt9Cq4tnRJiX+PisE3x3FMZb3gK7S4zbceW74IuOQ/sNUCyJVgtDZukFT Td2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724135488; x=1724740288; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uVW3Gyp1u8xh3tJP8cuhx0/w5djPTqbmXPb9/SDuAG8=; b=iMdxAG/HcDCgwapJ8kvqAHEiRT1YSZ5cR244jPW99mGlYdCHhxFFG4JMiKs8sjF4i0 ccWF9dxRZD7CTNzY4ZYPL32o5ASh0sDrFqmgbH4MBCbPrxb5Gn66SUI0P4e/+sMPtqQQ JIRjW3hk4eHUnKMIgZBa4DkfwdJHNC0CDUksmcB5MRltW55lJwge9SK3L/9TJ9tyXoYM vSzdbH315vsOfTQcaTk3cnhpdntSNgN6FmyX80y6tmx7z+Zi3lX60tm/RdQBGquRqdWs 79i4KwcCrHH+SdWJgXs/nPqfXA14N3ipxNLSDkrTlDI74kE4DV12sxdI5OauzKMMXHX7 pMHw== X-Forwarded-Encrypted: i=1; AJvYcCVaYrvVx11QfdSZC9LiTTTUTRljZ2xbc8wurg41yfEa4uxMyvUgUX4nm1lImmQIDKYjYzb19eRAiYON0ZvoiNnne+ugO+l/iLai X-Gm-Message-State: AOJu0YzqOcSilGCA1Bfu717Bg7A1zPlxWWwl+90anc/6AF29b+tKw8f7 GUCJxJnt6nBhygVxwqsjOC0GcgQbfhb7mjjjyc0YaZ23GfQl41F7cCEzEEZ7zns= X-Google-Smtp-Source: AGHT+IGqSaOTtMAFkFfw+MY+BXXMyKz8R9RHIlqmZAA07Xvp7gk8CM/mI6HP1sjFsVSnwGZxMAECLg== X-Received: by 2002:a05:6000:186:b0:368:669c:3bd3 with SMTP id ffacd0b85a97d-371946b1166mr8512834f8f.48.1724135487564; Mon, 19 Aug 2024 23:31:27 -0700 (PDT) Received: from krzk-bin.. ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-371a937a694sm7959432f8f.65.2024.08.19.23.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 23:31:26 -0700 (PDT) From: Krzysztof Kozlowski To: Loic Poulain , Robert Foss , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Richard Acayan Subject: [PATCH] dt-bindings: i2c: qcom, i2c-cci: add missing clocks constraint in if:then: Date: Tue, 20 Aug 2024 08:31:24 +0200 Message-ID: <20240820063124.9242-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Top level defines clocks as variable from 3 to 6 items, so each clause in if:then: should narrow it further with explicit min and maxItems. Without minItems, the constrain from top-level is being applied, thus qcom,msm8996-cci allows between 3 and 4 clocks. Signed-off-by: Krzysztof Kozlowski --- Older dtschema behaved differently and missing minItems was implied in if:then:. However the preferred policy is to be explicit about such schema - define strict constraints in if:then:. Cc: Richard Acayan --- Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml index c33ae7b63b84..7dab3852c7f8 100644 --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml @@ -130,6 +130,7 @@ allOf: then: properties: clocks: + minItems: 4 maxItems: 4 clock-names: items: