From patchwork Sun Aug 18 17:28:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13767553 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 6B57BC5320E for ; Sun, 18 Aug 2024 17:30:22 +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=S5pLu2Iv0yKyRrnfssfZZOgkRQEo8dv+goTKpDYttcY=; b=Vb5WkrQg4Dz8MbpRcDMRGx2R5Y NY2xl1u7gee10auYaD1nQIiyDKQjOF+WZFYOEExFetSfJUMQZbUW1Qvxb/sIsmrXfr8wZApyazX03 QlXA8j1OyvZuAaAauheYIR+1dV2u9t74RG+SNAa5qICfHdrxgtsFna9Zd/s7cKcFLcjzEXDYbOL/Y D352WZmTflipucPb4P259updHwZ6zyQOJlYfI6iigCujOXZ0UyBG/t8JX8EgRXqhzdza7Qz3MITAC xrRlHsLwTYDUceQWozbEw6BOVRpm3ZJ2SBYctjV7qcLadQrCggUhEcaccizxNpPv5uz2E+bgzg/9T aE9lvzYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjjJ-0000000Gt50-1YJy; Sun, 18 Aug 2024 17:30:13 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfjhi-0000000GsV5-0YnY for linux-arm-kernel@lists.infradead.org; Sun, 18 Aug 2024 17:28:35 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-429e29933aaso26360055e9.0 for ; Sun, 18 Aug 2024 10:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002112; x=1724606912; 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=S5pLu2Iv0yKyRrnfssfZZOgkRQEo8dv+goTKpDYttcY=; b=veSXRAG4KjYPGzoJKZHka//ZqalC4gDz0bnp4rtOWs4L6ZLhDs92yszpj9QWjloaxW qzKeap/OEtYWh/yMiT5ULgSoGBXGuPYXf0FCeAXMYg0/FYxN5zughyI0tzd+yXHsu9hq /4SeNeTNYGS1fC05HySwPgTT9wmuZaW9PCOc3R77xSCJ4Fw5MmMbjVqh06/XyFqjIwqr J/k0D6tLvO/tRz0x2w7YlUgsyiAkXZgPf706yTAIymG4blbzxqRMiF7VubPOrZE06GHg 5bYhv+Kp1MsZy0Fjm8aCASb6sNkxOzDmrSDpTW1UuOfGKvPZt+XARGwNH41HkCcuna7S ZS4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002112; x=1724606912; 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=S5pLu2Iv0yKyRrnfssfZZOgkRQEo8dv+goTKpDYttcY=; b=pRzl1RCZKq7vxlmzoC8TmvGjjUFAmDpWlSALoX+J2rg7R52IEF6igMJNkDsfp3AF4P 7QEKkuYYOMWOTqP3kBGe3e57ENtt3DHbGzFR3UjpYxW/EVb74DI0TpxzJdS8VBJha0Jk D03mq+bTikrmdZNf9ZcuQvvec57vqsSyQwiYP5pX4gaVEpScdYWimQRXyeDwZeF9WsBe hA/k62fdSGn4p8JY3unSjvOiv+qC1rq9PGJD9zrXW0J7wjs1uZib+gzqjLZKesou1/H6 dNZERwPmilsQlUMBBOrb/+U2UT602bN6Es+cER9Ra+QNBW9JKZv8hvKze9cIWv+GRtvR Btkw== X-Forwarded-Encrypted: i=1; AJvYcCWJiRVTOBtVFsW6VD0wE2EYQRdmFktBCv5PcowRZko77E6XVUgnNMjZNPcoto+vR7ArfnC9l1KrZPj3Y3PB7nzUN98kqrCXC8e9Vg7LBu+FoZosI/E= X-Gm-Message-State: AOJu0YxudYZ1u05MIax/rgVeDzF1vt+yZA3Rm7mAJzNQjwOnosBO2qIx NDquNVILhjJW8xflvFE92bbcq3s4Zel4eU25lkwh19LruHGCwSAIjLsf35c8FyY= X-Google-Smtp-Source: AGHT+IEVPKW8NFr4apEXYCDi/aSn78seRkFOK180J1AgxIymjMjMAiL42xXHAHwLI5c8YizLkhZW2A== X-Received: by 2002:a05:600c:45ca:b0:426:62c6:4341 with SMTP id 5b1f17b1804b1-429ed7c150fmr69488315e9.20.1724002112105; Sun, 18 Aug 2024 10:28:32 -0700 (PDT) Received: from krzk-bin.. ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ed658651sm82979875e9.26.2024.08.18.10.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 10:28:31 -0700 (PDT) From: Krzysztof Kozlowski To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: pwm: allwinner,sun4i-a10-pwm: add top-level constraints Date: Sun, 18 Aug 2024 19:28:28 +0200 Message-ID: <20240818172828.121728-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_102834_193369_0A5C1B29 X-CRM114-Status: GOOD ( 10.08 ) 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: Rob Herring (Arm) --- .../devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml index 66e400f2a3a4..1b192e197b11 100644 --- a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml @@ -46,10 +46,11 @@ properties: - description: Module Clock - description: Bus Clock - # Even though it only applies to subschemas under the conditionals, - # not listing them here will trigger a warning because of the - # additionalsProperties set to false. - clock-names: true + clock-names: + minItems: 1 + items: + - const: mod + - const: bus resets: maxItems: 1