From: Michael Trimarchi <michael@amarulasolutions.com>
To: "Thierry Reding" <thierry.reding@gmail.com>,
"Sam Ravnborg" <sam@ravnborg.org>,
"David Airlie" <airlied@linux.ie>,
"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Heiko Stübner" <heiko@sntech.de>
Cc: devicetree@vger.kernel.org, Daniel Vetter <daniel@ffwll.ch>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: [PATCH 4/5] drm/panel: ilitek-ili9881c: Make gpio-reset optional
Date: Sat, 16 Oct 2021 10:22:31 +0000 [thread overview]
Message-ID: <20211016102232.202119-5-michael@amarulasolutions.com> (raw)
In-Reply-To: <20211016102232.202119-1-michael@amarulasolutions.com>
Depends in how logic is connected to the board the gpio is
not stricly required.
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
---
.../devicetree/bindings/display/panel/ilitek,ili9881c.yaml | 1 -
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml b/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml
index 2d4a5643a785..07789d554889 100644
--- a/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml
+++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml
@@ -27,7 +27,6 @@ required:
- compatible
- power-supply
- reg
- - reset-gpios
additionalProperties: false
diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
index d1f20758ed08..103a16018975 100644
--- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
+++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
@@ -883,7 +883,7 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi)
return PTR_ERR(ctx->power);
}
- ctx->reset = devm_gpiod_get(&dsi->dev, "reset", GPIOD_OUT_LOW);
+ ctx->reset = devm_gpiod_get_optional(&dsi->dev, "reset", GPIOD_OUT_LOW);
if (IS_ERR(ctx->reset)) {
dev_err(&dsi->dev, "Couldn't get our reset GPIO\n");
return PTR_ERR(ctx->reset);
--
2.25.1
next prev parent reply other threads:[~2021-10-16 10:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-16 10:22 [PATCH 0/5] Add support for Wanchanglong panel used in px30-evb v11 Michael Trimarchi
2021-10-16 10:22 ` [PATCH 1/5] dt-bindings: vendor-prefix: add Wanchanglong Electronics Technology Michael Trimarchi
2021-10-16 10:22 ` [PATCH 2/5] drm/panel: ilitek-ili9881d: add support for Wanchanglong W552946ABA panel Michael Trimarchi
2021-10-16 10:22 ` [PATCH 3/5] dt-bindings: ili9881c: add compatible string for Wanchanglong w552946aba Michael Trimarchi
2021-10-16 10:22 ` Michael Trimarchi [this message]
2021-10-16 10:22 ` [PATCH 5/5] drm/bridge: dw-mipi-dsi: Fix dsi registration during drm probing Michael Trimarchi
[not found] ` <YWrEqStMPYuzUoUn@ravnborg.org>
2021-10-16 13:32 ` Michael Nazzareno Trimarchi
2021-10-16 14:30 ` Michael Nazzareno Trimarchi
[not found] ` <YWrFIz08A8ZVKXvi@ravnborg.org>
2021-11-04 13:19 ` [PATCH 0/5] Add support for Wanchanglong panel used in px30-evb v11 Michael Nazzareno Trimarchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211016102232.202119-5-michael@amarulasolutions.com \
--to=michael@amarulasolutions.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=heiko@sntech.de \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.org \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®