From patchwork Tue Aug 27 14:04:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yannick Fertre X-Patchwork-Id: 13779615 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 E389CC54734 for ; Tue, 27 Aug 2024 14:15:55 +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-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ff8eTytbmxual/Q6Fz+3ogSbrU6ts/Ud/smwAdcvD1s=; b=bkvIbt9S0RAAuI R7KIOsS6F7+8lnECuFO51hjNP/Mv6d3UAOHYrtSyHaJbWpTnF/eBCjmPdpeX2hgqQGkPX7E6Zo2yQ 80KlhFsCc6/yHw0d3A2m8TcYg/M4QjUIWc8nEiRWuPsv30ZkKFchqF5cZdQMB1qT9ZgmQhFhzxrpp OboIHD0t0K7G0bLWxyV8BiFFo5T2QcZkFiu7tGN37rAAwFLPD6bIwrdiz1KbJUiQQ3YDitfEJ26HO p+dGFliKzKePE3iyqwxQSxDjCb+5FgsDj5dDwkNVR4KH3WnT6mLEVAaN3hD7ZvZBxR8OPTPTNf72Q zG+UXW3INHAN/woozZgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siwz5-0000000Bc6c-21jD; Tue, 27 Aug 2024 14:15:47 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siwpw-0000000BZph-0snz for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 14:06:22 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47RBUL10022292; Tue, 27 Aug 2024 16:06:03 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=selector1; bh=Ff8eTytbmxual/Q6Fz+3og SbrU6ts/Ud/smwAdcvD1s=; b=Z4BxGOTafsPvaVeoMcVA4HSIvefTkhCk69F49t e6HP6gA6/fLH0WjKPX7Fzfala5tzrjPk2DyhXPaoQXCaOsEiDWXEGB0Uk+7xvQ5W npDoh3j5usl1HoVSHRJknTs1ya8yrbW2lpN3f8SMjSq5jEgeCLUp+v0MwVAnKGhs 9Bnhy94N+hLZICXYZsfeDtFBC3NyrsL7BHFDqXVTC9VLWECprh3UOCzUcd/lz/GJ T2ErZgkVe1Uc4X8eSy9oh9RZE6B2RXWjeQezOhrzVd/R0R6FPLmoK5AacpCvqVJX EgQpEsjlZO9WeJLbhai9PLDSjtf0m0slx3gNg1z905Cp7dnQ== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 419e00rmq5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Aug 2024 16:06:03 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id EDC9B40044; Tue, 27 Aug 2024 16:05:57 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 435F926C44C; Tue, 27 Aug 2024 16:04:58 +0200 (CEST) Received: from localhost (10.48.86.237) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Tue, 27 Aug 2024 16:04:58 +0200 From: Yannick Fertre To: Yannick Fertre , Raphael Gallais-Pou , Philippe Cornu , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , , , , , Subject: [PATCH v3] dt-bindings: display: st,stm32-ltdc: Document stm32mp25 compatible Date: Tue, 27 Aug 2024 16:04:55 +0200 Message-ID: <20240827140455.115182-1-yannick.fertre@foss.st.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.48.86.237] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-27_08,2024-08-27_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240827_070620_567306_445FA324 X-CRM114-Status: UNSURE ( 9.53 ) 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 Add "st,stm32mp25-ltdc" compatible for SOC MP25. This new SOC introduce new clocks (bus, ref & lvds). Bus clock was separated from lcd clock. New sources are possible for lcd clock (lvds / ref). Signed-off-by: Yannick Fertre --- Changes in v3: Add max/min Items fields. 'make dt_binding_check' command fails on previous patch, rework fiedls mas/min items of properties clocks & clock-names. Changes in v2: Rework clock property. .../bindings/display/st,stm32-ltdc.yaml | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml b/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml index d6ea4d62a2cf..940127820de3 100644 --- a/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml +++ b/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml @@ -12,7 +12,9 @@ maintainers: properties: compatible: - const: st,stm32-ltdc + enum: + - st,stm32-ltdc + - st,stm32mp25-ltdc reg: maxItems: 1 @@ -24,12 +26,12 @@ properties: minItems: 1 clocks: - maxItems: 1 + minItems: 1 + maxItems: 4 clock-names: - items: - - const: lcd - + minItems: 1 + maxItems: 4 resets: maxItems: 1 @@ -51,6 +53,22 @@ required: - resets - port +allOf: + - if: + properties: + compatible: + contains: + enum: + - st,stm32mp25-ltdc + then: + properties: + clocks: + minItems: 2 + else: + properties: + clocks: + minItems: 1 + additionalProperties: false examples: