From patchwork Fri Feb 23 12:36:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Raphael Gallais-Pou X-Patchwork-Id: 205354 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp556553dyb; Fri, 23 Feb 2024 04:43:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXbVylDyigZqGV/ONSo6faVqIN/C62eY0ZTA8FjsOyY/SlCIZ0QwHpk2KgIPPgwYgs/AmVFrPsV3idoCs46GsK2QWlD/g== X-Google-Smtp-Source: AGHT+IH8f7qkHnF3PUG8xKH9B3qq+EywcezRD3HjvK0ISksQoyHAzCvckRSvCRMWCUyRFL00+oVD X-Received: by 2002:aa7:8598:0:b0:6e4:be1a:f5da with SMTP id w24-20020aa78598000000b006e4be1af5damr1516643pfn.6.1708692209242; Fri, 23 Feb 2024 04:43:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708692208; cv=pass; d=google.com; s=arc-20160816; b=iR5YrC/TqGm8B0iDPnA8qwDKEj8zJwa2NPfzgVksLNf2e1a2x5m9ZIWXjNeU8sZhoU OM8SuS8AnaVfobVg93G3i1sGMeGY40lGlTPiWorzbjvWVZya8Qps/9/oxNpSIrw2wmE4 G9icZVw6K/Em6mM8fLnsMUu4RMlmYoEcfFtZJ4PBi6w4t0w1B2/qKKE+MEf0KZfprnu6 PrQRypnpxmpsqxwapdT+YjJ43TQA70uzvm26XLMwHJ4sx6sg9wXO4B25g65eMwBuaDLg 1Kf/bfUspRgPz4mIMfuPu/m5Z7iK1r1KHC99qiPnaa0dV4BIUDJkuhl8mnQsZLXdW2y0 IluQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=0b38tedRyxz1wugMy9qAGe9nstQPcZ6cdawHN0/CbEE=; fh=61t25Py0OCIZ42bevB5ljI3Lg69z966UMIqZ9dyqpvw=; b=pfnP7RBJkzk5gFPPqRqLSKRoXw+4rjOjbYu/vw811jc3YblB58adfIfd0sZohwsrwl f23S60X5YZKP4wvay2b/QR8k5i/Ll3E7uw1dUGwMTe6031zOBhHnZ7hLaMw9hvHhCbfU pkoCf3MZs7gt0jO7oShpkbjdCtIEGrfFRP9o42Uusb0KYpuXbIHX7zq8GdiGr1rxwUA1 abt0kv/GylzstKIaAXd8wqIy4QFmH9fyhem3uyNQGRz+HIh1AdrVqs/HSj2szs7rWvqJ ckkKl/11UufputLCxCTK2Z7JiaLoUeA8EzG8JQcv9bluPY1al+QmRKvqT8ZTCDzm5RCZ bJbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="5DlHXVC/"; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-78302-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78302-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y65-20020a62ce44000000b006e39349c966si10654625pfg.151.2024.02.23.04.43.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 04:43:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78302-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="5DlHXVC/"; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-78302-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78302-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EF18FB21C00 for ; Fri, 23 Feb 2024 12:39:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E73517E595; Fri, 23 Feb 2024 12:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="5DlHXVC/" Received: from mx08-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 488692E417; Fri, 23 Feb 2024 12:38:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708691939; cv=none; b=BOJtVNJDFHByl1HDHbPWGvkK8SrriD382v1bplwKTTBeYM7QHFmNzYVU47/UtJ4YtqJ6uhzTUXEngJd3HhshwO5eG/+esa4cUKKFoixe9Kbtp4WwgJ86m42oa3S7QnnDrn5nj2ZMaA1x0qpYcazmb9dIb45R3I9X2ET67M1M6ek= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708691939; c=relaxed/simple; bh=/PC3cwCnH2K8/ch3GGJtdAHUfyOeBPVZZUZYOfJ9cjg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=lIo5jkyQuiURMTd4CTDlE9YZ2y/ubGotJG5/q8r9Pn/vkhMux3DgnNxdZLRHLj7RrvCzkuz73j2JGZJPADKqx+ajPGesmjyNodv3tCD5w4MWlmcwEqBiyZyw3DgqNI1zuE7B7cje2g2zqkbRo54eL3hvOZGl6rEd2Bq8p9zblmU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=5DlHXVC/; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41NCY4S5025859; Fri, 23 Feb 2024 13:38:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=selector1; bh=0b38tedRyxz1wugMy9qAGe9nstQPcZ6cdawHN0/CbEE =; b=5DlHXVC/1Yh3OzXErhk6+W89uuSLf/ldw8IF1vqPYQiHck722Nkupz4lOFQ tsbopW4ajlyBeqQ5xyhg1RqtjU2EGfdlip7o6j3vgNvsaoIRp1yvIB8FOQrinfUa l+xERL6AH/MnC8qrBPqR+VwA/U2OtcHZgJUKPdPcPiosidge2Z2HBDftqpz0E1HU U8VXIjbdq3WY/+mVFDlhBFjivpzKr7cIGoof2FbIfUtcfXVZK8XEvMPY3fCDV9yq X3XJN+XrFNGkKPZ0jVkpBynvZy2z1wd+xWG+JBhXy8ctCrJRizKiG2HQOjJ+zQBy cbBHpOxKNDdcTfrGa0aEGZ2+xsA== 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 3wd2024nv7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 13:38:13 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 7383D40047; Fri, 23 Feb 2024 13:38:05 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B09F628DDC5; Fri, 23 Feb 2024 13:36:55 +0100 (CET) Received: from localhost (10.129.178.151) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 23 Feb 2024 13:36:53 +0100 From: Raphael Gallais-Pou Date: Fri, 23 Feb 2024 13:36:48 +0100 Subject: [PATCH v3 1/4] ARM: dts: stm32: add LTDC support for STM32MP13x SoC family Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240223-ltdc_mp13-v3-1-7f92a59ca11f@foss.st.com> References: <20240223-ltdc_mp13-v3-0-7f92a59ca11f@foss.st.com> In-Reply-To: <20240223-ltdc_mp13-v3-0-7f92a59ca11f@foss.st.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter CC: , , , , , Raphael Gallais-Pou , Yannick Fertre X-Mailer: b4 0.12.4 X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-22_15,2024-02-23_01,2023-05-22_02 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791693641591945925 X-GMAIL-MSGID: 1791693641591945925 STM32MP13x SoC family embeds a new version of LTDC (Liquid crystal display - Thin film transistor) Display Controller. It provides a parallel digital RGB (red, green, blue) and signals for horizontal, vertical synchronization, pixel clock and data enable as output to interface directly to a variety of LCD-TFT panels. Main features * 2 input layers blended together to compose the display * Cropping of layers from any input size and location * Multiple input pixel formats: – Predefined ARGB, with 7 formats: ARGB8888, ABGR8888, RGBA8888, BGRA8888, RGB565, BGR565, RGB888packed. – Flexible ARGB, allowing any width and location for A,R,G,B components. – Predefined YUV, with 3 formats: YUV422-1L (FourCC: YUYV, Interleaved), YUV420-2L (FourCC: NV12, semi planar), YUV420-3L (FourCC: Yxx, full planar) with some flexibility on the sequence of the component. * Color look-up table (CLUT) up to 256 colors (256x24 bits) per layer * Color transparency keying * Composition with flexible window position and size versus output display * Blending with flexible layer order and alpha value (per pixel or constant) * Background underlying color * Gamma with non-linear configurable table * Dithering for output with less bits per component (pseudo-random on 2 bits) * Polarity inversion for HSync, VSync, and DataEnable outputs * Output as RGB888 24 bpp or YUV422 16 bpp * Secure layer (using Layer2) capability, with grouped regs and additional interrupt set * Interrupts based on 7 different events * AXI master interface with long efficient bursts (64 or 128 bytes) Signed-off-by: Raphael Gallais-Pou Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/st/stm32mp135.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp135.dtsi b/arch/arm/boot/dts/st/stm32mp135.dtsi index 68d32f9f5314..834a4d545fe4 100644 --- a/arch/arm/boot/dts/st/stm32mp135.dtsi +++ b/arch/arm/boot/dts/st/stm32mp135.dtsi @@ -19,5 +19,16 @@ dcmipp: dcmipp@5a000000 { port { }; }; + + ltdc: display-controller@5a001000 { + compatible = "st,stm32-ltdc"; + reg = <0x5a001000 0x400>; + interrupts = , + ; + clocks = <&rcc LTDC_PX>; + clock-names = "lcd"; + resets = <&scmi_reset RST_SCMI_LTDC>; + status = "disabled"; + }; }; }; From patchwork Fri Feb 23 12:36:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raphael Gallais-Pou X-Patchwork-Id: 205355 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp556984dyb; Fri, 23 Feb 2024 04:44:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXxgmfRIFsdR4rt2Juqv56ap30S8N0qEPtQLzc2lFwMYzlacpqlDR5giDwtZNAOaINlsIkDw3NsRKGWsgVoadVIdFCP6A== X-Google-Smtp-Source: AGHT+IHfRb960u68VP8OPn7dyBRpUGwvus8GNZS3jbTgZfnP0rkeAfHu/gr7puBmjUHQsyfrzE5t X-Received: by 2002:a05:6a00:21cc:b0:6e4:a242:e54e with SMTP id t12-20020a056a0021cc00b006e4a242e54emr2180812pfj.10.1708692261808; Fri, 23 Feb 2024 04:44:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708692261; cv=pass; d=google.com; s=arc-20160816; b=kq8VyaOXb19IZYmCM1vYM+OIC2gVv4LHzuZP6lZA6GBn4uJ6jC+HDtni1vktyPGKFI I+UL4LjFDj3uMrv9UJ2774kmRrYvOfgME6+NeRezumAVCncCpsoGyIJ4TPdRSYpylXhJ 2aKUVXq3H0GxVah7BLaEqHWRFTS1Zp2sr1oRbo3MY+oMswmjAHUVe6CJUYiOa533fG49 /aEUdzh81qXSbEepyn/BgHgc9YRtnJmAmEom3h67cdc3E51gHUng6Z+gEpmJaU+dQ/u0 /YXy3wHLIEPI71hdpUOn7Xvi4aUfmCoc9MYK6IZTPJWkW8rd+Lg9XRR4kXw2pFFXP+4i ZZzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=B/DdT1Hekue/y2cbdJTf13MdZkRgi2lmLP5jnu8Gv/8=; fh=1lT1v8hdHZM1FWk70H+T+uK6/aL1tkA/ze5HFk67OZI=; b=Wp+Q/k1DiTD7PsEQTu3vOomyEMZsIpqbdTeL55QCaBJZ9fpyHwLiVltQr9gXZ7gc5e Q0YtO/1TtTnURd2XNE5mqUgsVOIBtjQpvtcPc2uprDG7dpnI753GSgDztFcHbxnyDFWS duRUNmNYUtA6VONZ543NhM5CgNOyWL+U1DOKUUbwWyFOhgYnKEp1+6Y8R3qGsO7ZwLb7 ixeMBSpB6Ymul+UZ/XkAg2ep3ow0+qmBFyejejVoiDJk9h7eaibUZLlTp5mr1id7xrDE DAM3UOciOfKw+GEnPwJuOa171OwzD+Fv/ojS/9IBE3gWRnSCPqs+aLfDb6MoDw2KpZnm F0cQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=KqX52Xbx; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-78304-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78304-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l25-20020a637019000000b005dc8650cc61si12038429pgc.847.2024.02.23.04.44.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 04:44:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78304-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=KqX52Xbx; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-78304-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78304-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 93921B24021 for ; Fri, 23 Feb 2024 12:40:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23CC27EEF7; Fri, 23 Feb 2024 12:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="KqX52Xbx" Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88C617E780; Fri, 23 Feb 2024 12:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.132.182.106 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708691946; cv=none; b=eWhqzcgiTgLBK1TmL1ijxXVHoEe8LOedBmYSUJuYTV0ZgOhK7Sofn/qf/fCsDAl7gz34wPu07mU4Iwpecp5qJ68HF3uLz/AktGFPLG8oMassfEjtZ9x69PNwmcQLDwULa5WbNrIq7VMqbCBS8rlYR3Z7meupZ96FTr3GB4qfpbY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708691946; c=relaxed/simple; bh=Vu3pxfSOvU02G6kf5xYrgXdA4Nr4gnOhkhAT0KtaVio=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=PlylWbAmCfljiNVd6BbshFhEtgTvRrF55/LS3Q2PHYtRAPPJsUKcGxOp8X0dMFzt1YFasWPDuHAVWF6vthuG+tdPWRjAN6UlEF4H5FQ6rMcW34fsdqfaWTMSX8Tt0FPsfnVdGbyFsjR6RWe7fqvxJy0DyzFdR0AZHCRnnuJQy7c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=KqX52Xbx; arc=none smtp.client-ip=185.132.182.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41N6TQdn027885; Fri, 23 Feb 2024 13:38:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=selector1; bh=B/DdT1Hekue/y2cbdJTf13MdZkRgi2lmLP5jnu8Gv/8 =; b=KqX52Xbx422s3kbIDBNVIVnin5onGlim3lEALQ0jXOmGxTV7NW2mTf8dMjs qoHfNORlZgV8mGHAEFea9S0xhycxfnqpHUut/UdMXJoWERTHYx0+gPS9PwDJz5EC cSVGaRuC9L3X2kOmWEBNvxnqDh+CtWUE0i2RR0cuE/YahB0KMciJteqeNRF5ut1s A9cgoClPl5jMnVruN/P+tfzMxxTMLSQ8TvEnSGLur3YfOsb72vIXtUukzgI/RekS jZjj3Uz/Uul63zBMMjxaCmL27oi7dDChNClUyE9KYI1RLnM/eRnvZV3RY/rqJNx0 wzpioxPxCEmaMep4UYwmYk1ot7Q== 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 3wd201vx12-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 13:38:13 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 4E3C740045; Fri, 23 Feb 2024 13:38:05 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 9AD4B28DDC0; Fri, 23 Feb 2024 13:36:54 +0100 (CET) Received: from localhost (10.129.178.151) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 23 Feb 2024 13:36:53 +0100 From: Raphael Gallais-Pou Date: Fri, 23 Feb 2024 13:36:49 +0100 Subject: [PATCH v3 2/4] ARM: dts: stm32: add LTDC pinctrl on STM32MP13x SoC family Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240223-ltdc_mp13-v3-2-7f92a59ca11f@foss.st.com> References: <20240223-ltdc_mp13-v3-0-7f92a59ca11f@foss.st.com> In-Reply-To: <20240223-ltdc_mp13-v3-0-7f92a59ca11f@foss.st.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter CC: , , , , , Raphael Gallais-Pou X-Mailer: b4 0.12.4 X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-22_15,2024-02-23_01,2023-05-22_02 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791693697163018123 X-GMAIL-MSGID: 1791693697163018123 Adds LTDC pinctrl support and assigns dedicated GPIO pins. Signed-off-by: Raphael Gallais-Pou --- arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi index 27e0c3826789..32c5d8a1e06a 100644 --- a/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +++ b/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi @@ -47,6 +47,63 @@ pins { }; }; + ltdc_pins_a: ltdc-0 { + pins { + pinmux = , /* LCD_CLK */ + , /* LCD_HSYNC */ + , /* LCD_VSYNC */ + , /* LCD_DE */ + , /* LCD_R2 */ + , /* LCD_R3 */ + , /* LCD_R4 */ + , /* LCD_R5 */ + , /* LCD_R6 */ + , /* LCD_R7 */ + , /* LCD_G2 */ + , /* LCD_G3 */ + , /* LCD_G4 */ + , /* LCD_G5 */ + , /* LCD_G6 */ + , /* LCD_G7 */ + , /* LCD_B2 */ + , /* LCD_B3 */ + , /* LCD_B4 */ + , /* LCD_B5 */ + , /* LCD_B6 */ + ; /* LCD_B7 */ + bias-disable; + drive-push-pull; + slew-rate = <0>; + }; + }; + + ltdc_sleep_pins_a: ltdc-sleep-0 { + pins { + pinmux = , /* LCD_CLK */ + , /* LCD_HSYNC */ + , /* LCD_VSYNC */ + , /* LCD_DE */ + , /* LCD_R2 */ + , /* LCD_R3 */ + , /* LCD_R4 */ + , /* LCD_R5 */ + , /* LCD_R6 */ + , /* LCD_R7 */ + , /* LCD_G2 */ + , /* LCD_G3 */ + , /* LCD_G4 */ + , /* LCD_G5 */ + , /* LCD_G6 */ + , /* LCD_G7 */ + , /* LCD_B2 */ + , /* LCD_B3 */ + , /* LCD_B4 */ + , /* LCD_B5 */ + , /* LCD_B6 */ + ; /* LCD_B7 */ + }; + }; + mcp23017_pins_a: mcp23017-0 { pins { pinmux = ; From patchwork Fri Feb 23 12:36:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Raphael Gallais-Pou X-Patchwork-Id: 205351 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp554781dyb; Fri, 23 Feb 2024 04:39:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVvo2UOhMZmjHE+RpsTnk7zq8X2qzNE64okD9IjniQSl+YSfQ16s5ucCu7p9hNZz4RwFvWjmyzKbsOpi+V0gNpTQTrAoQ== X-Google-Smtp-Source: AGHT+IFfr5hpQj8Crg50wCXLTmkF10V2TOKtVoXAhjU/KPrADWYSE4KNgyvQwYWASlORU47/qr+v X-Received: by 2002:a05:6214:19cb:b0:68f:4372:2b56 with SMTP id j11-20020a05621419cb00b0068f43722b56mr2282889qvc.22.1708691987463; Fri, 23 Feb 2024 04:39:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708691987; cv=pass; d=google.com; s=arc-20160816; b=lE4MCgDUhOhQ3t/VKFktwPNxu8365Hmc3q3fIj17Cmfe/DNd3ypb49Zn3bRbTfmgLj rmmh/X0m5wjiHkkvFvFpmMCbfpRX+X2IiXEGQN2SG7jRWAArDurHg2R/l/QIw87ylvkH sJDgacNN8ypXHVN1YWfBBErMPw9xSBoYXt+c1lQ1DcIDsUipkqCoOsZUmFUkAFSjolro 1dO3Jv6zvlzBX1L3Tc92w+fy8YfuiGQlu4wrvCv5dcdTN9qTWU0pP5qt/HHD9tQe9w9l zT1xcTxSRrcTp2WAihMbSwXHsRfeZc7ClMRL6Lm1mzmPK38VHliEaknYbwgAcvSF9wUE Mmsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Dn4f3GfvCGhg9NuA1T7NEVx1XeeRBh/2a8fH4stLPtw=; fh=1lT1v8hdHZM1FWk70H+T+uK6/aL1tkA/ze5HFk67OZI=; b=wqi94dwSSL5jPMqERH+NX8zC2Ydtmsbqr6VdL9S6XPuQ1Hzil7dXkZ7UnJr3A9v+r4 8n16rsz5goVgKCjj6CFOBDAyh1r+syIQi5GRILG5lC+b/Zlg8Hy0nE3WA/c+AEa6f6mH xe5TApS4rCZgjEYU889TsH7r1KtXReaEEnu4bscuLxhG5I3Lb8uPl3RXH146G2NY91G1 D0nbaXjMhDvCVfWwc1hDvx4lCKiCGnWph2/885vSwfYvd2Msj8/cHbX/oj8GKtYzdABC TqktZhPkxVjkbw6GMamhqJd3xr1Q2WQpQGBScknkwXO0IfqtXe1UafjHVCT+mu6k+HnU yGZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Yg1oWazS; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-78303-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78303-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a3-20020ad45c43000000b0068fb26041e2si4835339qva.561.2024.02.23.04.39.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 04:39:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78303-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Yg1oWazS; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-78303-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78303-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 30B5C1C21A24 for ; Fri, 23 Feb 2024 12:39:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6749D7E57B; Fri, 23 Feb 2024 12:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="Yg1oWazS" Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D34B053365; Fri, 23 Feb 2024 12:38:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708691940; cv=none; b=hk+OaJW6AGrHbQXwxvnfFBdRaaEvGQfrKItmVKVUOGWt0LcshKA70OIlffUec4iLQTesQpukqhBAQGeOOqEcL+UA/X9DKGgJvP8L5mWwu5qoHOGHHDADw9lGN//vZ7W04PTV3LbMUtfXy5tRU8VnzZ8fnUVmSxWczXz/gFJKIzw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708691940; c=relaxed/simple; bh=8hy1sz1BHapHdaS5nPZrmROYuJbQJZ76RnTZlNCPW+M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=ihe+fowLFNYnmVToNumfQbZwr97dYl27/Iq99/AIlS008qAbNS4D08IBH0ky+HAIjHA0gBIrjzsz8IsbkWWJXB+45AHSZwKKO+NvI8718Vl2H7wmVcSrM5e2AZCye6lO8coNDiB3e8lwXwEBYTdjeDxvSyVsf5smaOIYUZI8PBo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=Yg1oWazS; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41NAZHt5028218; Fri, 23 Feb 2024 13:38:10 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=selector1; bh=Dn4f3GfvCGhg9NuA1T7NEVx1XeeRBh/2a8fH4stLPtw =; b=Yg1oWazSP7Ff195paEYAmoqsIkbL8K+wa4GJgHEmXzVn59rrnrhFeaqS7fF Tp86iwEMoH5Ln2FjhVOaoe25BBbZKkDID+kbO8/U4qnrG4JZZuUXQANOfDActWMF 9rwq8L2XD6sgyQ5TUHWYfSxIQZGKwI3l4NXv8PmnTgq85egfub8+eoKUETq0PSHY TBaDN00sYvLBjwq9vay3yls3ellXDn8qdZCKh2ZhY5NhEhOOcn9QGHqN0MnuTLoD oyjrxYR/YEZ437GFE9eyxPn1S7Elq3rgm7tzFirukh/8FmeVLZA7inCjwkb+squm ciE88MG9cDUnkzwWnUfXA5DIK2Q== 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 3wesr88fdv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 13:38:10 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 575364002D; Fri, 23 Feb 2024 13:38:01 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5E76728DDB8; Fri, 23 Feb 2024 13:36:54 +0100 (CET) Received: from localhost (10.129.178.151) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 23 Feb 2024 13:36:54 +0100 From: Raphael Gallais-Pou Date: Fri, 23 Feb 2024 13:36:50 +0100 Subject: [PATCH v3 3/4] ARM: dts: stm32: enable display support on stm32mp135f-dk board Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240223-ltdc_mp13-v3-3-7f92a59ca11f@foss.st.com> References: <20240223-ltdc_mp13-v3-0-7f92a59ca11f@foss.st.com> In-Reply-To: <20240223-ltdc_mp13-v3-0-7f92a59ca11f@foss.st.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter CC: , , , , , Raphael Gallais-Pou X-Mailer: b4 0.12.4 X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-22_15,2024-02-23_01,2023-05-22_02 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791693408902438576 X-GMAIL-MSGID: 1791693408902438576 Link panel and display controller. Enable panel, backlight and display controller. Signed-off-by: Raphael Gallais-Pou --- Changes in v2: - Fixed dtbs_check warnings : arch/arm/boot/dts/st/stm32mp135f-dk.dtb: panel-backlight: 'default-brightness-level' does not match any of the regexes: 'pinctrl-[0-9]+'   from schema $id: http://devicetree.org/schemas/leds/backlight/gpio-backlight.yaml# arch/arm/boot/dts/st/stm32mp135f-dk.dtb: panel-rgb: data-mapping:0: 'bgr666' is not one of ['jeida-18', 'jeida-24', 'vesa-24']   from schema $id: http://devicetree.org/schemas/display/panel/panel-simple.yaml# arch/arm/boot/dts/st/stm32mp135f-dk.dtb: panel-rgb: compatible: ['rocktech,rk043fn48h', 'panel-dpi'] is too long   from schema $id: http://devicetree.org/schemas/display/panel/panel-simple.yaml# arch/arm/boot/dts/st/stm32mp135f-dk.dtb: panel-rgb: data-mapping: False schema does not allow ['bgr666']   from schema $id: http://devicetree.org/schemas/display/panel/panel-simple.yaml# --- arch/arm/boot/dts/st/stm32mp135f-dk.dts | 53 +++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp135f-dk.dts b/arch/arm/boot/dts/st/stm32mp135f-dk.dts index eea740d097c7..c918f332cbfd 100644 --- a/arch/arm/boot/dts/st/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/st/stm32mp135f-dk.dts @@ -66,6 +66,46 @@ led-blue { default-state = "off"; }; }; + + panel_backlight: panel-backlight { + compatible = "gpio-backlight"; + gpios = <&gpioe 12 GPIO_ACTIVE_HIGH>; + default-on; + status = "okay"; + }; + + panel_rgb: panel-rgb { + compatible = "rocktech,rk043fn48h"; + enable-gpios = <&gpioi 7 GPIO_ACTIVE_HIGH>; + backlight = <&panel_backlight>; + power-supply = <&scmi_v3v3_sw>; + status = "okay"; + + width-mm = <105>; + height-mm = <67>; + + panel-timing { + clock-frequency = <10000000>; + hactive = <480>; + hback-porch = <43>; + hfront-porch = <10>; + hsync-len = <1>; + hsync-active = <0>; + vactive = <272>; + vback-porch = <26>; + vfront-porch = <4>; + vsync-len = <10>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + port { + panel_in_rgb: endpoint { + remote-endpoint = <<dc_out_rgb>; + }; + }; + }; }; &adc_1 { @@ -160,6 +200,19 @@ &iwdg2 { status = "okay"; }; +<dc { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <<dc_pins_a>; + pinctrl-1 = <<dc_sleep_pins_a>; + status = "okay"; + + port { + ltdc_out_rgb: endpoint { + remote-endpoint = <&panel_in_rgb>; + }; + }; +}; + &rtc { status = "okay"; }; From patchwork Fri Feb 23 12:36:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raphael Gallais-Pou X-Patchwork-Id: 205352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp555156dyb; Fri, 23 Feb 2024 04:40:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUIXJDedvklPvrR0H5t2gp9iT5WjmnJAuVJE/ApN0M/B7nCSog8ISTRWSlOfNOzl8wt0NVYDqTZiTqbYoElLqPiypLOnA== X-Google-Smtp-Source: AGHT+IHIODwjZPQDwywNJDJ6avrPqYeLuULn62LjNvgVeuq6IVG8QiyX7xh14kwJN+FGYpJHX+YE X-Received: by 2002:a05:6214:3d8d:b0:68f:d113:8b3d with SMTP id om13-20020a0562143d8d00b0068fd1138b3dmr3853606qvb.17.1708692031633; Fri, 23 Feb 2024 04:40:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708692031; cv=pass; d=google.com; s=arc-20160816; b=InBOYmasTVF6KOz1wJ+R7R9287mLz0qzHDXIcDE3ADxzCEszhlp1p3J0NqC2mw4ouw KOC7qzh3otAXIrSWK6q7tXG5H//3ofrgeT7RAge3Ka3C+PnfGTZ3PEwP2OYYT3B9XH3Y ztslUZwXFcr2kcc2L71XbsNu0ozzEdUoc8Wo0OeCCNH6q49i8bkOJzL0DdbUsBXKTGdt 01HXBd3tqgIHhZstKqNq/Y/5B5MZtrsDVYnOHY5Tk4EOdiAremW4IbS5Wu5SQ2E7iR7R 6k9wrxONokhRXFSLUFRldCxIYI3fuPLgAwYvbeIhhxO1uEjYCPmZJ6lG6B8Ze78AgFX6 5AgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=F8zN5Yz0CWcU425g4AE37w9LRhYp8Zn5uSxrL8yHXMQ=; fh=1lT1v8hdHZM1FWk70H+T+uK6/aL1tkA/ze5HFk67OZI=; b=rwjvi3wMh3G3tmxAygoY5vBGVgEt8aBhsefKLgz5ib2AqTWiL1iWwEd8Lm0NHsdlcU ps1SjpeClhsnuf8N47vOtEJ03vbIK+dOE8m+dsmlrUDtrrTirAzKSzbAAGsaIeN5cNIp w6OsFUaUtM+EB8YUWmHnF+o8g8PQFac6WWV5z2JZfu6Rdxxt91BIVjuOo3H6Q8ELaChv Rj2jbOANtMm/N3KWsqkeipGhh2lsPPkjCyRXU++CdnSG+dncO7nFJ3SXIhS2dcaPxVvQ 1dfeqR7EYjz6EY4vvQzwlQz8U0KlxWbMWXdM5UjyWccnQPGdtCH6jMMKCDKwMgruQjyg E5dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=KLgrMamb; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-78305-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78305-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jz11-20020a0562140e6b00b0068fb91977a3si3485631qvb.514.2024.02.23.04.40.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 04:40:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78305-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=KLgrMamb; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-78305-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78305-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C06C1C2293D for ; Fri, 23 Feb 2024 12:40:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDF677EF08; Fri, 23 Feb 2024 12:39:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="KLgrMamb" Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4FDA7E788; Fri, 23 Feb 2024 12:39:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.132.182.106 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708691948; cv=none; b=PCCN0tkcMn70Ujd8qQFDtcgXe03xYkLDxMwr3ZHV6qvkDLlQUeDyTFTCwZOZJINXwYQZW1YgGxqXKeIxKjjRxsN4c2HC0/OEkB8rxDgFQy7t2I5ROX7wyRq7pF31MTd2CIaauYBsmqh6M4J1OgHd2PPJKEVn3Ip0WaseHAWr1es= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708691948; c=relaxed/simple; bh=knJQXHiHO9YVW+BCkn85q95/1j/TFwLhTq3OVe8TkG0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=c63d0AVvhqddc9FpTM8fJmd440VrOjGYfuONO2O6cpjEofMuGBB77iKOuq6dZP+Xt7WXrxOX9W7ZYRRN5C0l5USaaP1KjPtad9Do3twa83iX3mJYWMdjx8jOESqsA1/7FzpnMOmZRFQz7MStPRUOXmilnudH5bXYWUijjs0SO2k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=KLgrMamb; arc=none smtp.client-ip=185.132.182.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41N8GlAX022193; Fri, 23 Feb 2024 13:38:13 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=selector1; bh=F8zN5Yz0CWcU425g4AE37w9LRhYp8Zn5uSxrL8yHXMQ =; b=KLgrMambOr1HfgvJtNKE7rQUf6tvKRDf6amCBEY4a+YxJLQ2vW9rBQpmOWB mcPSA/SY3aBdumAM0cZqIUgqAYTHizi52XjhPq9axXa6/yRcGy0LiJVPuKxBJrLn TxSl0Ms0KDygiNyBkwj8b3668ZBS0U6PRKlorg0T3uC1yj2EttYL1IZmMZ5b1TUj r2JqlSdJqLxHmVYKIbIKeBEHCVi+lLucpCvAL4IgI0lBUpz8Oya9Sf50DiINKP07 dp08Vb1O4Lq72eaGhLCX6cTaHCZ7rWyTa0hwv0osL0AdPrrY51nV4LwZ7SgeWdg3 LVUCVnxahCO4nOcUpXvvHGdBC4g== 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 3wd2034kjr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 13:38:13 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 64DDC40046; Fri, 23 Feb 2024 13:38:05 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A7BC428DDC3; Fri, 23 Feb 2024 13:36:54 +0100 (CET) Received: from localhost (10.129.178.151) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 23 Feb 2024 13:36:54 +0100 From: Raphael Gallais-Pou Date: Fri, 23 Feb 2024 13:36:51 +0100 Subject: [PATCH v3 4/4] dt-bindings: display: simple: allow panel-common properties Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240223-ltdc_mp13-v3-4-7f92a59ca11f@foss.st.com> References: <20240223-ltdc_mp13-v3-0-7f92a59ca11f@foss.st.com> In-Reply-To: <20240223-ltdc_mp13-v3-0-7f92a59ca11f@foss.st.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter CC: , , , , , Raphael Gallais-Pou X-Mailer: b4 0.12.4 X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-22_15,2024-02-23_01,2023-05-22_02 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791693455845232755 X-GMAIL-MSGID: 1791693455845232755 This device inherits properties from panel-common. Those should be allowed to use, instead of specifying properties to true for each specific use. Signed-off-by: Raphael Gallais-Pou Reviewed-by: Krzysztof Kozlowski --- Changes in v3: - Allow every properties instead of adding each properties to true as Rob suggested - Rewrite commit log to match changes Changes in v2: - Added this patch Fixes following warnings: arch/arm/boot/dts/st/stm32mp135f-dk.dtb: panel-rgb: 'height-mm', 'panel-timing', 'width-mm' do not match any of the regexes: 'pinctrl-[0-9]+' from schema $id: http://devicetree.org/schemas/display/panel/panel-simple.yaml# --- .../devicetree/bindings/display/panel/panel-simple.yaml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index 634a10c6f2dd..01c9153da3d3 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -344,15 +344,6 @@ properties: # Yes Optoelectronics YTC700TLAG-05-201C 7" TFT LCD panel - yes-optoelectronics,ytc700tlag-05-201c - backlight: true - ddc-i2c-bus: true - enable-gpios: true - port: true - power-supply: true - no-hpd: true - hpd-gpios: true - data-mapping: true - if: not: properties: @@ -363,7 +354,7 @@ then: properties: data-mapping: false -additionalProperties: false +unevaluatedProperties: false required: - compatible