From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 30DAF2DF13D; Wed, 21 Jan 2026 14:14:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769004855; cv=none; b=KfA4271CPftG9Jpu7uA0T/kjQ00N8remxp+smCgy3QC5gBXoz+ymat9XSrgef3OoxuheoiWNuXtXtBliNFa6zhEy6bl+u34RIK+mS8e1sbeP9XzYiqj+psvjtoWOIjOzKadFRn1+thqZrMQGc9bg7vpW/fprbgwDUBHEa/nLAQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769004855; c=relaxed/simple; bh=Y/7M5txzQgTaQBXJXuGNgcHSTitWaotNSQWTwgoi/P8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YheDtiTyqIf10ZVm3d59/Pnqsn5bl15LIq+ra7xRRFk1hE7bmOvsYgm0av9LmNQ+cXO0NMsXI8wCIxf1cGgrsJhLquxj79sjkzifLvxg3UhUWDArmfwMe5L+/8kVDkzE0kiFs/Wpdt6A8oJVYKEnYmEvzCn+15OdgQw0FnrDyFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=CbFfAUW2; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="CbFfAUW2" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 29564C21A89; Wed, 21 Jan 2026 14:13:42 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 557D86070A; Wed, 21 Jan 2026 14:14:09 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 5D14E119B152E; Wed, 21 Jan 2026 15:13:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1769004847; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=jJAdXppBbAOIvtuneW6gr8WXXxU/lyeSburTzUqxCrI=; b=CbFfAUW26FQeqLMmADKrfn042P8OpRUkcoMywRGcVRQIj4RPFkNsJqohbnCTLqUNRPcShc xrAByGcR11i0cK/s3YHc5Id0v+RBcxzTg/Rt7noXa6pfUp47lVbD0Y73jbQPiBOw/LATgm xQe8+jFuvMqKhOWM9jw1aPohA9PcK3peRIsp4DawVDHQPorffVc0ZkOxet4OUwPBy1JVUw wwnSB9YHi5LBBUEgClaqJyJxhQuaJF15p+qRbGoXGchAJ7DfIcHdZWJMZWQHsYBbX8a/j+ jZW5pEi7kHlrdkhP5aWWSwbBod6XxTP32pLCM25qscz8Pee2tDeokCbEFsSaBg== Date: Wed, 21 Jan 2026 15:13:56 +0100 From: Herve Codina To: "Kory Maincent (TI.com)" Cc: Jyri Sarha , Tomi Valkeinen , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King , Bartosz Golaszewski , Tony Lindgren , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Markus Schneider-Pargmann , Bajjuri Praneeth , Luca Ceresoli , Louis Chauvet , Thomas Petazzoni , Miguel Gazquez , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Subject: Re: [PATCH v4 05/25] drm/tilcdc: Convert legacy panel binding via DT overlay at boot time Message-ID: <20260121151356.14d88273@bootlin.com> In-Reply-To: <20260116-feature_tilcdc-v4-5-2c1c22143087@bootlin.com> References: <20260116-feature_tilcdc-v4-0-2c1c22143087@bootlin.com> <20260116-feature_tilcdc-v4-5-2c1c22143087@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Hi Kory, On Fri, 16 Jan 2026 18:02:05 +0100 "Kory Maincent (TI.com)" wrote: > To maintain backward compatibility while removing the deprecated > tilcdc_panel driver, add a tilcdc_panel_legacy subdriver that converts > the legacy "ti,tilcdc,panel" devicetree binding to the standard > panel-dpi binding at early boot. > > The conversion uses an embedded device tree overlay that is applied and > modified during subsys_initcall. The process: > > - Apply embedded overlay to create a tilcdc-panel-dpi node with > port/endpoint connections to the LCDC > - Copy all properties from the legacy panel node to the new > tilcdc-panel-dpi node > - Copy display-timings from the legacy panel > - Convert legacy panel-info properties (invert-pxl-clk, sync-edge) to > standard display timing properties (pixelclk-active, syncclk-active) > - Disable the legacy panel by removing its compatible property to > prevent the deprecated driver from binding > > The result is a standard tilcdc-panel-dpi node with proper endpoints and > timing properties, allowing the DRM panel infrastructure to work with > legacy devicetrees without modification. > > Other legacy panel-info properties are not migrated as they consistently > use default values across all mainline devicetrees and can be hardcoded > in the tilcdc driver. > > This feature is optional via CONFIG_DRM_TILCDC_PANEL_LEGACY and should > only be enabled for systems with legacy devicetrees containing > "ti,tilcdc,panel" nodes. > > Suggested-by: Tomi Valkeinen > Link: https://lore.kernel.org/all/1d9a9269-bfda-4d43-938b-2df6b82b9369@ideasonboard.com/ > Signed-off-by: Kory Maincent (TI.com) > --- Looks good to me. Reviewed-by: Herve Codina Best regards, Hervé