From nobody Fri Dec 19 00:27:25 2025 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 087CB1A83E2; Thu, 24 Apr 2025 15:08:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745507317; cv=none; b=h3wVptGt2j+tw+8REny8nc10ULpLva+huQK6fjLtx4sLugMBF5XCM37H7RhvzVMTJWkBdkdQA+Wgf+jzPQs9ZEgBXVrIM/FmF0nmYWMc4qLbzRwkTftfFxUaVkQV3Mn51iqgIPD/g9SXHyDhDTWq5NRJhi1+6JuNY91qDLNqBtM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745507317; c=relaxed/simple; bh=z6b0mzrpF2aZNgQo9qIcpvObLgZx1nJObxipm36NDhs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Q/ZP5kb4IilaerI8YtMFQE1Vdka4uZCEkD/2ZoN4NLgqSTZtNLyrnmx581OjfC8k32zPaj+prNVVvoZBfL6tJwlkc8ikgbx9A9KWoPvKAkTRBGJYJOkNyKM0ooPGOgDttEaALTxv7IKLkcCDXJFc9MeKm1BcpD2m+ihxz55jGqs= 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=k2BAAqgy; arc=none smtp.client-ip=217.70.183.201 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="k2BAAqgy" Received: by mail.gandi.net (Postfix) with ESMTPSA id DE74E43B28; Thu, 24 Apr 2025 15:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1745507306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+Dknd1WYoRwFoYs5Ic/5aWkOPzzA922MzeBd+WtZEH0=; b=k2BAAqgyV2SHRY0iWQSduWkBsJXxJ5+pnZZlO5ME8V3jG7ubHVgZksTqDnsBjipOjRnsM1 570PSjO/zio9dFb/0K/2PEmzzO7Vgauilp8tNiwBla0g3yc6fRgwJpePnB4nVCkW/pniBA 1DwT5m2XH1s8SFoGrETpazF1v9CUhPXn7Dq5kanC5sha4Frt3UFUMb3Ihcjre4thNqZdbA pxHID0xubAknh4+Sn3ghEkDMRJNdKnN/Lg6TJBVuWKLL0Pn/PvUfrndGB1vo7HPsnlrVrn Yt20jC51t4UNTyr2he0XMk2ugr91uOICr7QKj+887HD4chY/dcx+Z1B90qwiZQ== From: Kory Maincent Date: Thu, 24 Apr 2025 17:07:41 +0200 Subject: [PATCH RFC v2 3/5] drm/panel: ilitek-ili9881c: Add support for two-lane configuration 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: quoted-printable Message-Id: <20250424-feature_sfto340xc-v2-3-ff7da6192df2@bootlin.com> References: <20250424-feature_sfto340xc-v2-0-ff7da6192df2@bootlin.com> In-Reply-To: <20250424-feature_sfto340xc-v2-0-ff7da6192df2@bootlin.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Laurent Pinchart Cc: Thomas Petazzoni , Miquel Raynal , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Kory Maincent X-Mailer: b4 0.14.2 X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvgeeljeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhfffugggtgffkfhgjvfevofesthejredtredtjeenucfhrhhomhepmfhorhihucforghinhgtvghnthcuoehkohhrhidrmhgrihhntggvnhhtsegsohhothhlihhnrdgtohhmqeenucggtffrrghtthgvrhhnpeevgfdvgfektefgfefggeekudfggffhtdfffedtueetheejtddvledvvdelhedtveenucfkphepledtrdekledrudeifedruddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeltddrkeelrdduieefrdduvdejpdhhvghloheplgduvdejrddtrddurddungdpmhgrihhlfhhrohhmpehkohhrhidrmhgrihhntggvnhhtsegsohhothhlihhnrdgtohhmpdhnsggprhgtphhtthhopedukedprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehrohgshheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepughrihdquggvvhgvlheslhhishhtshdrfhhrvggvuggvshhkthhophdrohhrghdprhgtphhtthhopegtohhnohhrodgutheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepuggvvhhitggvthhrvggvsehvghgvr hdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepqhhuihgtpghjvghsshiihhgrnhesqhhuihgtihhntgdrtghomhdprhgtphhtthhopehmihhquhgvlhdrrhgrhihnrghlsegsohhothhlihhnrdgtohhmpdhrtghpthhtohepkhhorhihrdhmrghinhgtvghnthessghoohhtlhhinhdrtghomh X-GND-Sasl: kory.maincent@bootlin.com Enable support for two-lane configuration which is done by setting the LANSEL_SW_EN and LANSEL_SW bits in the Pad Control register. Use the data-lanes device tree parameter to configure the number of lanes. The default configuration remains set to four lanes. Signed-off-by: Kory Maincent --- Change in v2: - Read the data-lanes parameter from the port endpoint and use drm_of_get_data_lanes_count instead of of_property_read_u32. --- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 33 +++++++++++++++++++++++= ++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/dr= m/panel/panel-ilitek-ili9881c.c index 28cd7560e5db1d5734b10babdb4e4e553c6e07d0..2e38dea28336f445cb6a074dbbe= c006f0659287a 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c @@ -16,6 +16,7 @@ =20 #include #include +#include #include =20 #include