From patchwork Sun Aug 18 17:29:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13767572 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 446B8C52D7C for ; Sun, 18 Aug 2024 17:36:21 +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=KbwvlIVMV8xryLkD19IewQWLhOQT8FXVqlEUYqJE2Z0=; b=uX5n89CsDJC5Hlca/L9HccrbNq 57CJq40mMSLCJOrJ3Gwlu8nsVxOztioGF9nbh8Rn1KByuQnBfQz0kDZ7HRdOVXPXj1My38JSei2Wt OQCFy0JAQFCGxzBhvx8OdpYcajJI1UzsP0YSFCh4g+H55BBVgJ5rfeEw5NhpNgdzFl4wnOBvfrR6x uIhPSqYULi/SNpB/2RqlpE1FJbjsfGyQYRV9udTnjDLZwzmbwrxsHmMRdAFoJ7fLxSTKT9ucilAh1 3n/gebUL/xEouZ6LSDrBbid+MAtx8YrQQt3wyNn7g/h78WtdQJQc38rMTKIh5pkBziX9POryJ3ftD JejNxJKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjp3-0000000Guk2-0QSp; Sun, 18 Aug 2024 17:36:09 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjj2-0000000Gt01-2rdQ for linux-arm-kernel@lists.infradead.org; Sun, 18 Aug 2024 17:29:58 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3718eaf4046so2114522f8f.3 for ; Sun, 18 Aug 2024 10:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002195; x=1724606995; 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=KbwvlIVMV8xryLkD19IewQWLhOQT8FXVqlEUYqJE2Z0=; b=OCu99kbAouwRcnq6sjgkEkYZw8dApsVFOEB7+QXGS8E4CVfLBdJIkNs5JUU99KCvLO oBjkHBH5dKN1suiCh6M1L3e/4AfYqrPkbuqbYXDME06L+8/BkO0HYWH4LHjLGcaBOQNd k1XeUVEq4oo+nm4Kf5+LIF7vC+HTR6vFZp/P9fzS/qlibez/WD881m0MBfiYL+Mtn9Ls ACbOQOQSs8AHm6xnGEwOUpMSnq6/gu5uGZk3YfROhjTqAEuRjslezknmvl0OMXICuZbL jBwjqUA+nSOxn2VkPMWwdAJINK8wv1qkjGD5KrXq5QdL+vDB5ekhcGBP5agCWTKQk51G bdfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002195; x=1724606995; 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=KbwvlIVMV8xryLkD19IewQWLhOQT8FXVqlEUYqJE2Z0=; b=JeJRHJQ5nNh4p35n2WjiaelfJrP/bwPFDk0w4Elypuf3TFcHY7882qcN82p2u9P0VX dtZi+leocbCjdRHd9FhmkExR6tF4Qvr9+JBobPN4iRG9xchpQNPlH/VGwvkU1CxJTt/a fwNgXaov5YV9habi6n8UnxMe28fbmMWYrAxVumGWKoAAUDJzvfOYWVC3lMkaB585OcdI /Mx81PnrNbPVFVD+0FMvRLOQwHyfbHjPWnwKWrU7aRARsx0vwRSZVOca/mtbzmRHFav3 R3vXstcwXxOQ94CgQwV+skE19m5F12+Cj5txa4aNCVJGA6mmsNzc9cb1goqmbj4Kd/iD w3uQ== X-Forwarded-Encrypted: i=1; AJvYcCWg73cjDOcfid9H1ElRUqJyVsmL69GLE2ofD+B+XfP7pVx4O0G41/i344xNKhqqKTT2kbS6Uh65eohHN3BO7ovLLfm0/o8KXYTzS/dSr340xYN6nns= X-Gm-Message-State: AOJu0YytqnuMRcF6VwuN26Gb4Qugr0O4vNrNDjv65glA9Xc0xp3j+7VN Cwi62RuuZWVGZvgFVm6lUi/Cvh4wPYLbmon0p9hcNyOBmsfoWzkfdEcK2Fx9N24= X-Google-Smtp-Source: AGHT+IFp3b5dXt3VaeULNgHqcg4QFbzuh6p5X7dQPwN9gftdTacq8ZYzKU9ZBjnuXrL9t5XVlwI1Bw== X-Received: by 2002:a5d:5c88:0:b0:371:a92d:8673 with SMTP id ffacd0b85a97d-371a92d87a7mr3528329f8f.44.1724002194776; Sun, 18 Aug 2024 10:29:54 -0700 (PDT) Received: from krzk-bin.. ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3718984c0d0sm8486522f8f.38.2024.08.18.10.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 10:29:54 -0700 (PDT) From: Krzysztof Kozlowski To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Fabrice Gasnier , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: iio: st,stm32-adc: add top-level constraints Date: Sun, 18 Aug 2024 19:29:51 +0200 Message-ID: <20240818172951.121983-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_102956_764347_94A063D2 X-CRM114-Status: GOOD ( 10.59 ) 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 clock-names. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Fabrice Gasnier Acked-by: Conor Dooley --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml index ec34c48d4878..ef9dcc365eab 100644 --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml @@ -54,7 +54,9 @@ properties: It's not present on stm32f4. It's required on stm32h7 and stm32mp1. - clock-names: true + clock-names: + minItems: 1 + maxItems: 2 st,max-clk-rate-hz: description: