| Message ID | 20240903153157.918185-6-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRB5WX3S3AMGQEMBZTF3A@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com
[209.85.128.70])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B23D13F1F3
for <linux-amarula@patchwork.amarulasolutions.com>;
Tue, 3 Sep 2024 17:32:06 +0200 (CEST)
Received: by mail-wm1-f70.google.com with SMTP id
5b1f17b1804b1-428040f49f9sf50771575e9.0
for <linux-amarula@patchwork.amarulasolutions.com>;
Tue, 03 Sep 2024 08:32:06 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1725377526; cv=pass;
d=google.com; s=arc-20240605;
b=g3GsdNRzFAuH4Ue7vzW4sw71bkcBOo51I8OBtYF6difMO6RrNvNT8qz0dWlT8ZslEl
gxQ35CZ1rQ08yUF6NKpYf/YD+IQP9cdB78KcgXM7qzkuw7WTwxZEH4q/Zy5f7dNaReaU
KrgWiara9j1CCzuNl7L7CknnofiD8S2etNMeP2sqkWMg6xnYJtdsKJkLOiTuVpesVT2L
y1wS+TdhSSDrln0oycWPaolS6yot3fFmWQS21AlPa8sIWq7S9C41NkpkvpS4ldZifcai
XvAKW7DgJkzDeug9NdnmpSo9LQeDG6VF/UgyYGp4LZ2C+TcGmMC5kl85ADN5LQzdsMdP
Pilg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:to:from:dkim-signature;
bh=IALQ0sBBnDCChC3p8U4CWOLf9EnTU9B6KmIspbG4Azw=;
fh=Z3Rf++9T1E9aagR5Gxdk+S6qWhmsoL/lYXaOIr/PcDA=;
b=Q7Y0S6EP0MecmPj5ezBMF14/8sEtbS3Opz0OK2AHccEhep5S9Hf2B4LxRro8i7ECAt
hz5cEB9UJA5N8Xa8x2T7Z3NI/O18rBylIjqHU7QTo1n5GOKWfhIxcuiabSMWhi5EP+EC
drimiZ5Ju43JDGVIVaPGlSCgxxQ8hRILm58wzwjles5xqcSdTTWaEArqnDsin9nZtTJR
Ne8pi8/P5hEnHJNNIdLrGosDcIbxal34YUnJCcDLVTJrzhrNzR3Wz4/DM5TG9u0FxvD+
3im3uSjp6lu1Hrd3MpvRJLY/+AYikDEG9HBRVYR007l5vbbARWyjigCJ5xpqaZB3zqm8
xJ/A==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=ncdE0qXP;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1725377526; x=1725982326;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:references:in-reply-to:message-id
:date:subject:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=IALQ0sBBnDCChC3p8U4CWOLf9EnTU9B6KmIspbG4Azw=;
b=Iecb4AvcRVcfYy9DQNTfdq5COf/2zEvsa+yRhXl2rOBl5UlVqaUvkycfVm4hLmDJDE
ipgPqZxLFL6GyktCeBDWiIbbbwmPThZ4bZFZGOI5bFN8uLi20HVXf1wa1tFfgSRqqXCK
oVlZ2eZtkDE8HpgD7VRParMRiNVD00DQZ65gA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1725377526; x=1725982326;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:to:from:x-beenthere
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=IALQ0sBBnDCChC3p8U4CWOLf9EnTU9B6KmIspbG4Azw=;
b=oUil8zgmKwB/9oK+EFZhw9LlqO0aLdtIjtGGJjE6f9dYXXB89MKOaTv17E5FWzuPPT
TJjHzh4xsDKzLNxYFw7qOeNdZ1L5Z5isGSeeGmJDarBKfNmoaAKYYn/lGWmonlvspkFz
ATXeDKw4+z1EiWlmOY+XXFQhVBI/rm0dEjfgOGPfUr6dARxpt96z/5cO1Py20SKtqQaA
nl6SiJU8ufi1bE+ymZCIQdVbqMo1PDUW2Sc7+RUQMw9fs7tR91FNbU6Y0Lr1xaWryLG0
9Fr6ejBH5zOyUs2bMfNwqOxAehrnuYGOc236Wcm4UPPhlIB8NGuWe0+96cmLbAHMSfxb
0Vew==
X-Forwarded-Encrypted: i=2;
AJvYcCXMrnu3YrPdFnMebWlHTRmQLTmu2+LBCigvAy97GGmXlVjoDPOzIWIez5pUt4rmPNLlpoq6xxrwFm4D8zq2@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YyZxUUdpkNpcALbLU//+L8HL7OK56x91/BQuvRz2aAo0/R7BC8O
z7xX/FvzxyOZ4wHg7hq9bGmFmYnH3sqY2Hzux202iKvth7SMte6O+k9jneJ8dOStXw==
X-Google-Smtp-Source:
AGHT+IFhbzwQFA/jhXsxjuKbvkFaVLMLaGKidRx++SbPB3Nxco9MBk/HtSA2RqToxdc5SwPDUJmgWA==
X-Received: by 2002:a05:600c:1f90:b0:429:dc88:7e65 with SMTP id
5b1f17b1804b1-42bb02ecb7emr131920175e9.12.1725377526295;
Tue, 03 Sep 2024 08:32:06 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:a05:600c:4ec6:b0:428:1007:62f6 with SMTP id
5b1f17b1804b1-42bb2a12028ls32459495e9.2.-pod-prod-08-eu; Tue, 03 Sep 2024
08:32:05 -0700 (PDT)
X-Received: by 2002:a05:600c:1914:b0:426:8884:2c58 with SMTP id
5b1f17b1804b1-42bb02c10bemr150136425e9.4.1725377524813;
Tue, 03 Sep 2024 08:32:04 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1725377524; cv=none;
d=google.com; s=arc-20160816;
b=bmcOQgzaDlpaP9qK3XjA80Bja9AmxMbsGkuDBUIhIq5H7w0xFgegEG6zAjt0k/NxLt
+CkbWZ4ry3PkPLnuA4Fu7u2BKrwSbcvGTaPrHD5YnXblPhe+E0+XqruxYFJKV5kzDaE1
zUtMnQSb78pr9Y+c8apOGkpSsNxoc/NW5QU71YI01gEdEGw4q+S6oXWKJulDmtQER4lx
o0v9+RChVhjEfeTuDWUZJtPypcPmW+7FZr0wlIZeksMcNlm3Fz5IrFl2gIZviiKK+ZXq
pkmZJEvwB9dBPDOefkUoGdrgZAVxOiU8iQyGVRIoaMaBfe/KGY8gUpY/I7EhZbGtipKY
g4Vw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:to:from:dkim-signature;
bh=L0OD9jL8YR+KiYTpNEU29Kv4SUYLBAcHzNdkWwMN8Q8=;
fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=;
b=NmRye3v9lIfG5E+Y1xfefGbsS42zYkjtxawcpzdZpXj6yANhtu5W6BbJ9XDJ38agcn
AhJbHi5pNsNNHy8v406MZ9O12hyZzphNpZT1nsGP9fVOBvizRotsbG2bCvhjk6AH3TJF
UVsjiUc3fYp9XBgx8t/ULxRi/afj/epRwUxUwmyGKiAxZ+4N5hSs8PKXqB4T/60VEcE/
AbS1PUNpf91UHAPxRL2cpk+TTgXXig4DSlRSBkQT82Jei51tZotCFTnJSu6RW/FcHJsT
NsMrhOpgGtJkornan14AX9WycG+tD5KXpsvjVc6l6383m7ciTVrX9V6Dv8NYI6fJgf2l
eBEw==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=ncdE0qXP;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
5b1f17b1804b1-42bb70b39acsor46197835e9.12.2024.09.03.08.32.04
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Tue, 03 Sep 2024 08:32:04 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a05:600c:5110:b0:42b:afe3:e9f4 with SMTP id
5b1f17b1804b1-42bb02c10b2mr135309485e9.3.1725377524024;
Tue, 03 Sep 2024 08:32:04 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.42.65])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-42baf1b0c18sm192963055e9.37.2024.09.03.08.32.02
for <linux-amarula@amarulasolutions.com>
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 03 Sep 2024 08:32:03 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: linux-amarula@amarulasolutions.com
Subject: [PATCH 06/10] drm/panel: synaptics-r63353: don't re-activate the
panel if already setup
Date: Tue, 3 Sep 2024 17:31:53 +0200
Message-ID: <20240903153157.918185-6-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20240903153157.918185-1-dario.binacchi@amarulasolutions.com>
References: <20240903153157.918185-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=ncdE0qXP;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
[01/10] pmdomain: core: fix "sd_count" field setting
|
|
Commit Message
Dario Binacchi
Sept. 3, 2024, 3:31 p.m. UTC
The patch does not re-execute the hardware initialization/activation
procedure for the panel if it is already operational.
This feature is crucial when supporting the simple framebuffer, as the
controller has already been initialized by the bootloader.
Co-Developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
drivers/gpu/drm/panel/panel-synaptics-r63353.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/panel/panel-synaptics-r63353.c b/drivers/gpu/drm/panel/panel-synaptics-r63353.c index 169c629746c7..93e3ed545b34 100644 --- a/drivers/gpu/drm/panel/panel-synaptics-r63353.c +++ b/drivers/gpu/drm/panel/panel-synaptics-r63353.c @@ -258,6 +258,8 @@ static int r63353_panel_probe(struct mipi_dsi_device *dsi) int ret = 0; struct device *dev = &dsi->dev; struct r63353_panel *panel; + bool initialized; + enum gpiod_flags rflags; panel = devm_kzalloc(&dsi->dev, sizeof(*panel), GFP_KERNEL); if (!panel) @@ -282,7 +284,9 @@ static int r63353_panel_probe(struct mipi_dsi_device *dsi) if (IS_ERR(panel->avdd)) return PTR_ERR(panel->avdd); - panel->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); + initialized = of_property_read_bool(dev->of_node, "syna,boot-on"); + rflags = initialized ? GPIOD_ASIS : GPIOD_OUT_LOW; + panel->reset_gpio = devm_gpiod_get(dev, "reset", rflags); if (IS_ERR(panel->reset_gpio)) { dev_err(dev, "failed to get RESET GPIO\n"); return PTR_ERR(panel->reset_gpio); @@ -297,6 +301,10 @@ static int r63353_panel_probe(struct mipi_dsi_device *dsi) return ret; drm_panel_add(&panel->base); + if (initialized) { + r63353_panel_power_on(panel); + panel->base.prepared = true; + } ret = mipi_dsi_attach(dsi); if (ret < 0) {