* [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT
@ 2020-09-09 15:44 Patrick Delaunay
2020-09-09 15:44 ` [PATCH 2/2] video: stm32_dsi: " Patrick Delaunay
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Patrick Delaunay @ 2020-09-09 15:44 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/video/stm32/stm32_ltdc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c
index 2f3427a32e..7fff735930 100644
--- a/drivers/video/stm32/stm32_ltdc.c
+++ b/drivers/video/stm32/stm32_ltdc.c
@@ -366,8 +366,7 @@ static int stm32_ltdc_probe(struct udevice *dev)
ret = panel_get_display_timing(panel, &timings);
if (ret) {
- ret = fdtdec_decode_display_timing(gd->fdt_blob,
- dev_of_offset(panel),
+ ret = ofnode_decode_display_timing(dev_ofnode(panel),
0, &timings);
if (ret) {
dev_err(dev, "decode display timing error %d\n", ret);
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] video: stm32_dsi: Convert to use APIs which support live DT
2020-09-09 15:44 [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT Patrick Delaunay
@ 2020-09-09 15:44 ` Patrick Delaunay
2020-09-10 13:38 ` Simon Glass
` (2 more replies)
2020-09-10 14:06 ` [PATCH 1/2] video: stm32_ltdc: " Yannick FERTRE
` (2 subsequent siblings)
3 siblings, 3 replies; 8+ messages in thread
From: Patrick Delaunay @ 2020-09-09 15:44 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/video/stm32/stm32_dsi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c
index 283151398b..9d5abacc2b 100644
--- a/drivers/video/stm32/stm32_dsi.c
+++ b/drivers/video/stm32/stm32_dsi.c
@@ -359,8 +359,7 @@ static int stm32_dsi_attach(struct udevice *dev)
ret = panel_get_display_timing(priv->panel, &timings);
if (ret) {
- ret = fdtdec_decode_display_timing(gd->fdt_blob,
- dev_of_offset(priv->panel),
+ ret = ofnode_decode_display_timing(dev_ofnode(priv->panel),
0, &timings);
if (ret) {
dev_err(dev, "decode display timing error %d\n", ret);
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] video: stm32_dsi: Convert to use APIs which support live DT
2020-09-09 15:44 ` [PATCH 2/2] video: stm32_dsi: " Patrick Delaunay
@ 2020-09-10 13:38 ` Simon Glass
2020-09-10 14:06 ` Yannick FERTRE
2020-10-02 13:10 ` Patrick DELAUNAY
2 siblings, 0 replies; 8+ messages in thread
From: Simon Glass @ 2020-09-10 13:38 UTC (permalink / raw)
To: u-boot
On Wed, 9 Sep 2020 at 09:44, 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/video/stm32/stm32_dsi.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT
2020-09-09 15:44 [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT Patrick Delaunay
2020-09-09 15:44 ` [PATCH 2/2] video: stm32_dsi: " Patrick Delaunay
@ 2020-09-10 14:06 ` Yannick FERTRE
2020-10-02 9:43 ` Patrice CHOTARD
2020-10-02 13:09 ` Patrick DELAUNAY
3 siblings, 0 replies; 8+ messages in thread
From: Yannick FERTRE @ 2020-09-10 14:06 UTC (permalink / raw)
To: u-boot
Reviewed-by: Yannick Fertr? <yannick.fertre@st.com>
On 9/9/20 5:44 PM, 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>
> ---
>
> drivers/video/stm32/stm32_ltdc.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c
> index 2f3427a32e..7fff735930 100644
> --- a/drivers/video/stm32/stm32_ltdc.c
> +++ b/drivers/video/stm32/stm32_ltdc.c
> @@ -366,8 +366,7 @@ static int stm32_ltdc_probe(struct udevice *dev)
>
> ret = panel_get_display_timing(panel, &timings);
> if (ret) {
> - ret = fdtdec_decode_display_timing(gd->fdt_blob,
> - dev_of_offset(panel),
> + ret = ofnode_decode_display_timing(dev_ofnode(panel),
> 0, &timings);
> if (ret) {
> dev_err(dev, "decode display timing error %d\n", ret);
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] video: stm32_dsi: Convert to use APIs which support live DT
2020-09-09 15:44 ` [PATCH 2/2] video: stm32_dsi: " Patrick Delaunay
2020-09-10 13:38 ` Simon Glass
@ 2020-09-10 14:06 ` Yannick FERTRE
2020-10-02 13:10 ` Patrick DELAUNAY
2 siblings, 0 replies; 8+ messages in thread
From: Yannick FERTRE @ 2020-09-10 14:06 UTC (permalink / raw)
To: u-boot
Reviewed-by: Yannick Fertr? <yannick.fertre@st.com>
On 9/9/20 5:44 PM, 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>
> ---
>
> drivers/video/stm32/stm32_dsi.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c
> index 283151398b..9d5abacc2b 100644
> --- a/drivers/video/stm32/stm32_dsi.c
> +++ b/drivers/video/stm32/stm32_dsi.c
> @@ -359,8 +359,7 @@ static int stm32_dsi_attach(struct udevice *dev)
>
> ret = panel_get_display_timing(priv->panel, &timings);
> if (ret) {
> - ret = fdtdec_decode_display_timing(gd->fdt_blob,
> - dev_of_offset(priv->panel),
> + ret = ofnode_decode_display_timing(dev_ofnode(priv->panel),
> 0, &timings);
> if (ret) {
> dev_err(dev, "decode display timing error %d\n", ret);
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT
2020-09-09 15:44 [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT Patrick Delaunay
2020-09-09 15:44 ` [PATCH 2/2] video: stm32_dsi: " Patrick Delaunay
2020-09-10 14:06 ` [PATCH 1/2] video: stm32_ltdc: " Yannick FERTRE
@ 2020-10-02 9:43 ` Patrice CHOTARD
2020-10-02 13:09 ` Patrick DELAUNAY
3 siblings, 0 replies; 8+ messages in thread
From: Patrice CHOTARD @ 2020-10-02 9:43 UTC (permalink / raw)
To: u-boot
Hi Patrick
On 9/9/20 5:44 PM, 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>
> ---
>
> drivers/video/stm32/stm32_ltdc.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c
> index 2f3427a32e..7fff735930 100644
> --- a/drivers/video/stm32/stm32_ltdc.c
> +++ b/drivers/video/stm32/stm32_ltdc.c
> @@ -366,8 +366,7 @@ static int stm32_ltdc_probe(struct udevice *dev)
>
> ret = panel_get_display_timing(panel, &timings);
> if (ret) {
> - ret = fdtdec_decode_display_timing(gd->fdt_blob,
> - dev_of_offset(panel),
> + ret = ofnode_decode_display_timing(dev_ofnode(panel),
> 0, &timings);
> if (ret) {
> dev_err(dev, "decode display timing error %d\n", ret);
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Thanks
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT
2020-09-09 15:44 [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT Patrick Delaunay
` (2 preceding siblings ...)
2020-10-02 9:43 ` Patrice CHOTARD
@ 2020-10-02 13:09 ` Patrick DELAUNAY
3 siblings, 0 replies; 8+ messages in thread
From: Patrick DELAUNAY @ 2020-10-02 13:09 UTC (permalink / raw)
To: u-boot
Hi,
> From: Patrick DELAUNAY <patrick.delaunay@st.com>
> Sent: mercredi 9 septembre 2020 17:44
>
> 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/video/stm32/stm32_ltdc.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
Applied to u-boot-stm/next, thanks!
Regards
Patrick
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] video: stm32_dsi: Convert to use APIs which support live DT
2020-09-09 15:44 ` [PATCH 2/2] video: stm32_dsi: " Patrick Delaunay
2020-09-10 13:38 ` Simon Glass
2020-09-10 14:06 ` Yannick FERTRE
@ 2020-10-02 13:10 ` Patrick DELAUNAY
2 siblings, 0 replies; 8+ messages in thread
From: Patrick DELAUNAY @ 2020-10-02 13:10 UTC (permalink / raw)
To: u-boot
Hi,
> From: Patrick DELAUNAY <patrick.delaunay@st.com>
> Sent: mercredi 9 septembre 2020 17:44
>
> 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/video/stm32/stm32_dsi.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
Applied to u-boot-stm/next, thanks!
Regards
Patrick
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-10-02 13:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-09 15:44 [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT Patrick Delaunay
2020-09-09 15:44 ` [PATCH 2/2] video: stm32_dsi: " Patrick Delaunay
2020-09-10 13:38 ` Simon Glass
2020-09-10 14:06 ` Yannick FERTRE
2020-10-02 13:10 ` Patrick DELAUNAY
2020-09-10 14:06 ` [PATCH 1/2] video: stm32_ltdc: " Yannick FERTRE
2020-10-02 9:43 ` Patrice CHOTARD
2020-10-02 13:09 ` Patrick DELAUNAY
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.