* [PATCH] gpio: Convert to use APIs which support live DT
@ 2020-09-09 16:26 Patrick Delaunay
2020-09-10 13:38 ` Simon Glass
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Patrick Delaunay @ 2020-09-09 16:26 UTC (permalink / raw)
To: u-boot
Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the
driver can support live DT.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---
drivers/gpio/gpio-uclass.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c
index 9c53299b6a..1d3255ca60 100644
--- a/drivers/gpio/gpio-uclass.c
+++ b/drivers/gpio/gpio-uclass.c
@@ -1098,9 +1098,8 @@ int gpio_get_list_count(struct udevice *dev, const char *list_name)
{
int ret;
- ret = fdtdec_parse_phandle_with_args(gd->fdt_blob, dev_of_offset(dev),
- list_name, "#gpio-cells", 0, -1,
- NULL);
+ ret = dev_read_phandle_with_args(dev, list_name, "#gpio-cells", 0, -1,
+ NULL);
if (ret) {
debug("%s: Node '%s', property '%s', GPIO count failed: %d\n",
__func__, dev->name, list_name, ret);
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] gpio: Convert to use APIs which support live DT
2020-09-09 16:26 [PATCH] gpio: Convert to use APIs which support live DT Patrick Delaunay
@ 2020-09-10 13:38 ` Simon Glass
2020-09-11 4:00 ` Heiko Schocher
2020-12-02 21:21 ` Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2020-09-10 13:38 UTC (permalink / raw)
To: u-boot
On Wed, 9 Sep 2020 at 10:26, Patrick Delaunay <patrick.delaunay@st.com> wrote:
>
> Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the
> driver can support live DT.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---
>
> drivers/gpio/gpio-uclass.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] gpio: Convert to use APIs which support live DT
2020-09-09 16:26 [PATCH] gpio: Convert to use APIs which support live DT Patrick Delaunay
2020-09-10 13:38 ` Simon Glass
@ 2020-09-11 4:00 ` Heiko Schocher
2020-12-02 21:21 ` Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Heiko Schocher @ 2020-09-11 4:00 UTC (permalink / raw)
To: u-boot
Hello Patrick,
Am 09.09.2020 um 18:26 schrieb Patrick Delaunay:
> Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the
> driver can support live DT.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---
>
> drivers/gpio/gpio-uclass.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
Reviewed-by: Heiko Schocher <hs@denx.de>
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] gpio: Convert to use APIs which support live DT
2020-09-09 16:26 [PATCH] gpio: Convert to use APIs which support live DT Patrick Delaunay
2020-09-10 13:38 ` Simon Glass
2020-09-11 4:00 ` Heiko Schocher
@ 2020-12-02 21:21 ` Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2020-12-02 21:21 UTC (permalink / raw)
To: u-boot
On Wed, Sep 09, 2020 at 06:26:16PM +0200, Patrick Delaunay wrote:
> Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the
> driver can support live DT.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Heiko Schocher <hs@denx.de>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201202/dc08f6f6/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-12-02 21:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-09 16:26 [PATCH] gpio: Convert to use APIs which support live DT Patrick Delaunay
2020-09-10 13:38 ` Simon Glass
2020-09-11 4:00 ` Heiko Schocher
2020-12-02 21:21 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox