From patchwork Sun Aug 18 17:28:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13767551 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0E5CC5320E for ; Sun, 18 Aug 2024 17:29:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Q59A+6D918l2lKSIhGvv/s3xlwF7brT45paCG30NALE=; b=fbOhRGnpUJpA7hdnnmwlcMwksH 33z5USXVarg64AsS5ycDeaGHHcNyoZXwINHV3yISNQx7KLyZTs+fxHcVioA5cbDbs/0zE8ox0HSiX X76hQNsQUPKnundtY71MYapACbIXJ+/SDthJkC1AOcM20xGHKcgxTeY9imXdoiax7hMG9YLvabgfB W2gpDc1iae/QALPQsaizOMEuubXnxapYB9bMHA3Tuz+NkH4tGlx/jYXVL+apn3CgRsKtEwMtHWP4M YMSisncZVN5R2vFmwW3umMqvjyNc58YqG0GbBZwo6RQRak/N9xpc3dFHOvqN+Ftf95EJ7ZSzouEdt d4lLSrRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfji1-0000000Gsbs-2kZo; Sun, 18 Aug 2024 17:28:53 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjhL-0000000GsJI-2oSw for linux-arm-kernel@lists.infradead.org; Sun, 18 Aug 2024 17:28:12 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a8384750ca7so137691766b.3 for ; Sun, 18 Aug 2024 10:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002089; x=1724606889; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Q59A+6D918l2lKSIhGvv/s3xlwF7brT45paCG30NALE=; b=y53k0B2SivPN67MHXxmwFT/N1zVaivjZvOs5M0bA67NEjwtJ8vLkOaAZdAQG9GrE33 I0b4U6kk0KdzNea84zwoXdEBmZzkfPgCP/VGP5xdCvgB4Eki9XhqhiWRRB2F04B/Tlme mKE8Q4IjP6J4K52OwUySHFgTBKv8cBMO+ND5nJOPjKVPfHoxrb1OTDz1QPk46iEyD+i/ aXCdtllLojvC3kVzdhZjJiLLP47AAmLLtdXE1yOLaH+WbCFwhgn61ARTOr1cc8puvnxt IljQnSQyqO0jEju1/TxYFfFn8WnoKy04Zn9VazhWaTRSgpK/WQ/NEqTyMN4iLaW5fnTg l5og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002089; x=1724606889; 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=Q59A+6D918l2lKSIhGvv/s3xlwF7brT45paCG30NALE=; b=Kg/dEQMjbE5h5viBoOSEUp2u2E9T0WKU54J1aRdktzJfoQfen+xshNjxNuAfznHKZn a57HtELoZD/AuL45S+ExUjsd4C8UqXNN9sCMmkIOy83ng12lh1cgk2QuOpQZGIP/5qAU 6GD3LNSJcYGauipHudxicfrHRZAIJGCVLKpnevmzuEZx0E1glCn38aSGgq9g1U2qgT9K J6Eqa6IYUom1lQepg1dV6yXYFab92o5HOXht/nHL5zmdi3YpTOJ0l2n7UUjaFPthCwfn jjBkH/pJFSdRmoBqkV3cRDu8QFls392lrFeGx+gcUHtl004N6omHaRpdX3+AwmNSxljM DN9g== X-Forwarded-Encrypted: i=1; AJvYcCUBERsmfY2xZBy4xA2dI1VAP3bzYavfhuJKSdP0CKThkUoWX9mNCTsFq+H/bP9d9gz4VlXgBDfmSR2T0UfN2n5ryC4dqXIlsWYAQgkPlDBRIpukDAc= X-Gm-Message-State: AOJu0YwsEpmc0aMURawfQyViBrDejssWWrYa3LaO8m+hX/NNKL0zlhwA XH8CZTOi72Nk1m1WrGJk9oe08qWEID8R45Mp2xo0KXA9lSmtcpLMccx1wWrxKXc= X-Google-Smtp-Source: AGHT+IF5Ibf/nk6PUhm+E8+bOs4tnaUPacfd7eLVpRUlGv7rXXuA/hyDfTTfa9/bpUwrZwlwn4UnZA== X-Received: by 2002:a05:6402:278f:b0:5be:f112:b34 with SMTP id 4fb4d7f45d1cf-5bef1120fb8mr1822689a12.9.1724002089337; Sun, 18 Aug 2024 10:28:09 -0700 (PDT) Received: from krzk-bin.. ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bebc081bbdsm4609599a12.92.2024.08.18.10.28.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 10:28:08 -0700 (PDT) From: Krzysztof Kozlowski To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Sam Protsenko , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: samsung: exynos-usi: add missing constraints Date: Sun, 18 Aug 2024 19:28:04 +0200 Message-ID: <20240818172804.121666-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240818_102811_749648_EF74E4E9 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for reg, clocks and clock-names. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring (Arm) Reviewed-by: Sam Protsenko --- .../bindings/soc/samsung/exynos-usi.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml b/Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml index 8b478d6cdc30..f80fcbc3128b 100644 --- a/Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml +++ b/Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml @@ -32,11 +32,16 @@ properties: - enum: - samsung,exynos850-usi - reg: true + reg: + maxItems: 1 - clocks: true + clocks: + maxItems: 2 - clock-names: true + clock-names: + items: + - const: pclk + - const: ipclk ranges: true @@ -113,9 +118,7 @@ then: - description: Operating clock for UART/SPI/I2C protocol clock-names: - items: - - const: pclk - - const: ipclk + maxItems: 2 required: - reg