From patchwork Wed Sep 25 10:57:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13811895 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 7FDEEC369CC for ; Wed, 25 Sep 2024 11:05:07 +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:References:In-Reply-To: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:List-Owner; bh=J2iSmOLo812yFnIR5Nq9UtGPT6s6P+lL9nzScHALAHw=; b=Z3dk0FYR8sLypqiPk1ANgeslyn q8iaXocoUz+gkczjbKrgZf7NzaPCaxIPdOoY1kuHUORoxi6lT/Zz92+gGO1mfBGSqpWWNidfKzqOZ xEElaZ84Q+nkFULUprZn2mYVr2BdDfdLKDKp/aP/YZvERTWDmOmfbJdavg5G5ipou+iLNFUaROkzj 6cF3dn4nHjZHzB2lALAvTGaUFfBQjZy6KtbvbAhK7Wkb6EdJoo1v+aiOl8Ioya5DFWv6Dtg56FG3o czSLf4jrgr+GP/B6tggOQEOsMNGRlyjLfCf61KKhj+QwuBZDANkx0wK7Q0n0m9k69H31Azt8sY220 n7DGUwuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stPpH-00000004p2z-3VIN; Wed, 25 Sep 2024 11:04:55 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stPly-00000004oMI-0ej1 for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 11:01:31 +0000 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-7163489149eso5345083a12.1 for ; Wed, 25 Sep 2024 04:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727262089; x=1727866889; darn=lists.infradead.org; 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=J2iSmOLo812yFnIR5Nq9UtGPT6s6P+lL9nzScHALAHw=; b=jqTS/aST1Tw6HV4ytl+40aMkJ9FcNGAACQTkSsAiyudhYXcs2Z1i0CusUfkcC5z7jt 71RbGduV7mH4GBpiNhSgytDWTN9EuXup2bohJwYo1Jb5uc1tqyaS3+oqT1zm/ZgRSIHX LiC3xsaq/oiUZ03MeFI76QqXVyI0PsZGaf8v4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727262089; x=1727866889; 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=J2iSmOLo812yFnIR5Nq9UtGPT6s6P+lL9nzScHALAHw=; b=b5QXq6d3770kMPFnLctFh8otDYxVCSfgYd1jZg6sye4+L3jHR+wkuJ/75B2E3pXPH7 eMC8jMehnfwk3g0kDRXrAfMIj9YOLoYJWLYYQfhMo6CPDZH/SnvA3jpXbMEj+IAb2dEj O65ZK2Es72ZVdTyd4u924U09IGIwuAv4/Umgycx06/GF4wwJu59PjfIQRhMdwajk/aT/ 0zOZcB6f4FAOxnsvKjuYBYpPjXaiTgPPj4FGcz4+wm1V5Z1yQJc6rNN+6mi1C+o8O/Pv eIdqiQN+at3QakT0vVfoPvwF3p1C9qUdloLqrCH/w0WiIBqktwd4sX8XckgqMT3Avidc zvYQ== X-Forwarded-Encrypted: i=1; AJvYcCUyDrSe5F0dmAc51PuuUVFadU6IfCkze6UsHr3K/4GObj6WeMGUvtOveilYnF8l4wthY0VMG0p4+xCYoNtS7Fxs@lists.infradead.org X-Gm-Message-State: AOJu0YyHVa/LEcqhxRiL3V63RIyUnx3f4OUvGCy0sbp2rROfr6nXGxLg +8Nq1nxzu3BGuZIl2p3BeuY1VOcEltmrvXSzBnegr949aTtFHNv1Q5f/TIO1rA== X-Google-Smtp-Source: AGHT+IEDiU9yG0J24zu6lnu25+9BPDQ5H9Y9675km39iDIf0qssdZRYcfe9ubry0OUwppyeNUeL9pA== X-Received: by 2002:a05:6a21:e8c:b0:1cf:1b7d:8481 with SMTP id adf61e73a8af0-1d4d4b9bb7amr2971899637.32.1727262088709; Wed, 25 Sep 2024 04:01:28 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:2b86:78b6:8ebc:e17a]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6b7c73085sm2570298a12.59.2024.09.25.04.01.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 04:01:28 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Cc: Fei Shao , Bjorn Helgaas , Conor Dooley , Jianjun Wang , Krzysztof Kozlowski , =?utf-8?q?Krzysztof_Wilczy=C5=84s?= =?utf-8?q?ki?= , Lorenzo Bianconi , Lorenzo Pieralisi , Manivannan Sadhasivam , Matthias Brugger , Rob Herring , Ryder Lee , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pci@vger.kernel.org Subject: [PATCH 2/6] dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only Date: Wed, 25 Sep 2024 18:57:46 +0800 Message-ID: <20240925110044.3678055-3-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog In-Reply-To: <20240925110044.3678055-1-fshao@chromium.org> References: <20240925110044.3678055-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_040130_222177_E2FDAAF1 X-CRM114-Status: GOOD ( 13.14 ) 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 In MediaTek PCIe gen3 bindings, "clocks" accepts a range of 1-6 clocks across all SoCs. But in practice, each SoC requires a particular number of clocks as defined in "clock-names", and the length of "clocks" and "clock-names" can be inconsistent with current bindings. For example: - MT8188, MT8192 and MT8195 all require 6 clocks, while the bindings accept 4-6 clocks. - MT7986 requires 4 clocks, while the bindings accept 4-6 clocks. Update minItems and maxItems properties for individual SoCs as needed to only accept the correct number of clocks. Fixes: c6abd0eadec6 ("dt-bindings: PCI: mediatek-gen3: Add support for Airoha EN7581") Signed-off-by: Fei Shao Reviewed-by: Krzysztof Kozlowski Acked-by: Bjorn Helgaas --- .../devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml index 898c1be2d6a4..f05aab2b1add 100644 --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml @@ -149,7 +149,7 @@ allOf: then: properties: clocks: - minItems: 4 + minItems: 6 clock-names: items: @@ -178,7 +178,7 @@ allOf: then: properties: clocks: - minItems: 4 + minItems: 6 clock-names: items: @@ -207,6 +207,7 @@ allOf: properties: clocks: minItems: 4 + maxItems: 4 clock-names: items: