All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/pl111: Deprecate the pads from the DT binding
@ 2019-07-24 13:49 ` Linus Walleij
  0 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2019-07-24 13:49 UTC (permalink / raw)
  To: dri-devel, Maarten Lankhorst, Maxime Ripard, Sean Paul
  Cc: devicetree, Pawel Moll, Liviu Dudau, Sam Ravnborg, linux-arm-kernel

The pads were an earlier workaround for the internal image
pipeline in the Linux fbdev subsystem. As we move to generic
definition of display properties and drivers that no longer
need this to work, deprecate this property.

Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Liviu Dudau <Liviu.Dudau@arm.com>
Cc: devicetree@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 Documentation/devicetree/bindings/display/arm,pl11x.txt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/arm,pl11x.txt b/Documentation/devicetree/bindings/display/arm,pl11x.txt
index 572fa2773ec4..3f977e72a200 100644
--- a/Documentation/devicetree/bindings/display/arm,pl11x.txt
+++ b/Documentation/devicetree/bindings/display/arm,pl11x.txt
@@ -39,9 +39,11 @@ Required sub-nodes:
 
 - port: describes LCD panel signals, following the common binding
 	for video transmitter interfaces; see
-	Documentation/devicetree/bindings/media/video-interfaces.txt;
-	when it is a TFT panel, the port's endpoint must define the
-	following property:
+	Documentation/devicetree/bindings/media/video-interfaces.txt
+
+Deprecated properties:
+	The port's endbpoint subnode had this, now deprecated property
+	in the past. Drivers should be able to survive without it:
 
 	- arm,pl11x,tft-r0g0b0-pads: an array of three 32-bit values,
 		defining the way CLD pads are wired up; first value
@@ -80,7 +82,6 @@ Example:
 		port {
 			clcd_pads: endpoint {
 				remote-endpoint = <&clcd_panel>;
-				arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
 			};
 		};
 
-- 
2.21.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 1/2] drm/pl111: Deprecate the pads from the DT binding
@ 2019-07-24 13:49 ` Linus Walleij
  0 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2019-07-24 13:49 UTC (permalink / raw)
  To: dri-devel, Maarten Lankhorst, Maxime Ripard, Sean Paul
  Cc: devicetree, Pawel Moll, Linus Walleij, Liviu Dudau, Sam Ravnborg,
	linux-arm-kernel

The pads were an earlier workaround for the internal image
pipeline in the Linux fbdev subsystem. As we move to generic
definition of display properties and drivers that no longer
need this to work, deprecate this property.

Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Liviu Dudau <Liviu.Dudau@arm.com>
Cc: devicetree@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 Documentation/devicetree/bindings/display/arm,pl11x.txt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/arm,pl11x.txt b/Documentation/devicetree/bindings/display/arm,pl11x.txt
index 572fa2773ec4..3f977e72a200 100644
--- a/Documentation/devicetree/bindings/display/arm,pl11x.txt
+++ b/Documentation/devicetree/bindings/display/arm,pl11x.txt
@@ -39,9 +39,11 @@ Required sub-nodes:
 
 - port: describes LCD panel signals, following the common binding
 	for video transmitter interfaces; see
-	Documentation/devicetree/bindings/media/video-interfaces.txt;
-	when it is a TFT panel, the port's endpoint must define the
-	following property:
+	Documentation/devicetree/bindings/media/video-interfaces.txt
+
+Deprecated properties:
+	The port's endbpoint subnode had this, now deprecated property
+	in the past. Drivers should be able to survive without it:
 
 	- arm,pl11x,tft-r0g0b0-pads: an array of three 32-bit values,
 		defining the way CLD pads are wired up; first value
@@ -80,7 +82,6 @@ Example:
 		port {
 			clcd_pads: endpoint {
 				remote-endpoint = <&clcd_panel>;
-				arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
 			};
 		};
 
-- 
2.21.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] drm/pl111: Drop special pads config check
  2019-07-24 13:49 ` Linus Walleij
@ 2019-07-24 13:49   ` Linus Walleij
  -1 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2019-07-24 13:49 UTC (permalink / raw)
  To: dri-devel, Maarten Lankhorst, Maxime Ripard, Sean Paul
  Cc: Liviu Dudau, Linus Walleij, Sam Ravnborg, Pawel Moll, linux-arm-kernel

This drops the check of the surplus "pads" configuration
from the device tree that is completely unused in the DRM
driver.

This was only used to work around limitations in the earlier
fbdev driver.

Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpu/drm/pl111/pl111_display.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/drivers/gpu/drm/pl111/pl111_display.c b/drivers/gpu/drm/pl111/pl111_display.c
index e42fb6353623..8595a676b084 100644
--- a/drivers/gpu/drm/pl111/pl111_display.c
+++ b/drivers/gpu/drm/pl111/pl111_display.c
@@ -572,24 +572,8 @@ int pl111_display_init(struct drm_device *drm)
 {
 	struct pl111_drm_dev_private *priv = drm->dev_private;
 	struct device *dev = drm->dev;
-	struct device_node *endpoint;
-	u32 tft_r0b0g0[3];
 	int ret;
 
-	endpoint = of_graph_get_next_endpoint(dev->of_node, NULL);
-	if (!endpoint)
-		return -ENODEV;
-
-	if (of_property_read_u32_array(endpoint,
-				       "arm,pl11x,tft-r0g0b0-pads",
-				       tft_r0b0g0,
-				       ARRAY_SIZE(tft_r0b0g0)) != 0) {
-		dev_err(dev, "arm,pl11x,tft-r0g0b0-pads should be 3 ints\n");
-		of_node_put(endpoint);
-		return -ENOENT;
-	}
-	of_node_put(endpoint);
-
 	ret = pl111_init_clock_divider(drm);
 	if (ret)
 		return ret;
-- 
2.21.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] drm/pl111: Drop special pads config check
@ 2019-07-24 13:49   ` Linus Walleij
  0 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2019-07-24 13:49 UTC (permalink / raw)
  To: dri-devel, Maarten Lankhorst, Maxime Ripard, Sean Paul
  Cc: Liviu Dudau, Sam Ravnborg, Pawel Moll, linux-arm-kernel

This drops the check of the surplus "pads" configuration
from the device tree that is completely unused in the DRM
driver.

This was only used to work around limitations in the earlier
fbdev driver.

Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpu/drm/pl111/pl111_display.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/drivers/gpu/drm/pl111/pl111_display.c b/drivers/gpu/drm/pl111/pl111_display.c
index e42fb6353623..8595a676b084 100644
--- a/drivers/gpu/drm/pl111/pl111_display.c
+++ b/drivers/gpu/drm/pl111/pl111_display.c
@@ -572,24 +572,8 @@ int pl111_display_init(struct drm_device *drm)
 {
 	struct pl111_drm_dev_private *priv = drm->dev_private;
 	struct device *dev = drm->dev;
-	struct device_node *endpoint;
-	u32 tft_r0b0g0[3];
 	int ret;
 
-	endpoint = of_graph_get_next_endpoint(dev->of_node, NULL);
-	if (!endpoint)
-		return -ENODEV;
-
-	if (of_property_read_u32_array(endpoint,
-				       "arm,pl11x,tft-r0g0b0-pads",
-				       tft_r0b0g0,
-				       ARRAY_SIZE(tft_r0b0g0)) != 0) {
-		dev_err(dev, "arm,pl11x,tft-r0g0b0-pads should be 3 ints\n");
-		of_node_put(endpoint);
-		return -ENOENT;
-	}
-	of_node_put(endpoint);
-
 	ret = pl111_init_clock_divider(drm);
 	if (ret)
 		return ret;
-- 
2.21.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] drm/pl111: Deprecate the pads from the DT binding
  2019-07-24 13:49 ` Linus Walleij
@ 2019-07-24 18:49   ` Sam Ravnborg
  -1 siblings, 0 replies; 8+ messages in thread
From: Sam Ravnborg @ 2019-07-24 18:49 UTC (permalink / raw)
  To: Linus Walleij
  Cc: devicetree, Pawel Moll, Maxime Ripard, Liviu Dudau, dri-devel,
	Sean Paul, linux-arm-kernel

Hi Linus.

On Wed, Jul 24, 2019 at 03:49:58PM +0200, Linus Walleij wrote:
> The pads were an earlier workaround for the internal image
> pipeline in the Linux fbdev subsystem. As we move to generic
> definition of display properties and drivers that no longer
> need this to work, deprecate this property.
> 
> Cc: Sam Ravnborg <sam@ravnborg.org>
> Cc: Pawel Moll <pawel.moll@arm.com>
> Cc: Liviu Dudau <Liviu.Dudau@arm.com>
> Cc: devicetree@vger.kernel.org
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Acked-by: Sam Ravnborg <sam@ravnborg.org>
> ---
>  Documentation/devicetree/bindings/display/arm,pl11x.txt | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/display/arm,pl11x.txt b/Documentation/devicetree/bindings/display/arm,pl11x.txt
> index 572fa2773ec4..3f977e72a200 100644
> --- a/Documentation/devicetree/bindings/display/arm,pl11x.txt
> +++ b/Documentation/devicetree/bindings/display/arm,pl11x.txt
> @@ -39,9 +39,11 @@ Required sub-nodes:
>  
>  - port: describes LCD panel signals, following the common binding
>  	for video transmitter interfaces; see
> -	Documentation/devicetree/bindings/media/video-interfaces.txt;
> -	when it is a TFT panel, the port's endpoint must define the
> -	following property:
> +	Documentation/devicetree/bindings/media/video-interfaces.txt
> +
> +Deprecated properties:
> +	The port's endbpoint subnode had this, now deprecated property
> +	in the past. Drivers should be able to survive without it:
>  
>  	- arm,pl11x,tft-r0g0b0-pads: an array of three 32-bit values,
>  		defining the way CLD pads are wired up; first value
> @@ -80,7 +82,6 @@ Example:
>  		port {
>  			clcd_pads: endpoint {
>  				remote-endpoint = <&clcd_panel>;
> -				arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
>  			};
>  		};
>  
> -- 
> 2.21.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] drm/pl111: Deprecate the pads from the DT binding
@ 2019-07-24 18:49   ` Sam Ravnborg
  0 siblings, 0 replies; 8+ messages in thread
From: Sam Ravnborg @ 2019-07-24 18:49 UTC (permalink / raw)
  To: Linus Walleij
  Cc: devicetree, Pawel Moll, Maxime Ripard, Liviu Dudau,
	Maarten Lankhorst, dri-devel, Sean Paul, linux-arm-kernel

Hi Linus.

On Wed, Jul 24, 2019 at 03:49:58PM +0200, Linus Walleij wrote:
> The pads were an earlier workaround for the internal image
> pipeline in the Linux fbdev subsystem. As we move to generic
> definition of display properties and drivers that no longer
> need this to work, deprecate this property.
> 
> Cc: Sam Ravnborg <sam@ravnborg.org>
> Cc: Pawel Moll <pawel.moll@arm.com>
> Cc: Liviu Dudau <Liviu.Dudau@arm.com>
> Cc: devicetree@vger.kernel.org
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Acked-by: Sam Ravnborg <sam@ravnborg.org>
> ---
>  Documentation/devicetree/bindings/display/arm,pl11x.txt | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/display/arm,pl11x.txt b/Documentation/devicetree/bindings/display/arm,pl11x.txt
> index 572fa2773ec4..3f977e72a200 100644
> --- a/Documentation/devicetree/bindings/display/arm,pl11x.txt
> +++ b/Documentation/devicetree/bindings/display/arm,pl11x.txt
> @@ -39,9 +39,11 @@ Required sub-nodes:
>  
>  - port: describes LCD panel signals, following the common binding
>  	for video transmitter interfaces; see
> -	Documentation/devicetree/bindings/media/video-interfaces.txt;
> -	when it is a TFT panel, the port's endpoint must define the
> -	following property:
> +	Documentation/devicetree/bindings/media/video-interfaces.txt
> +
> +Deprecated properties:
> +	The port's endbpoint subnode had this, now deprecated property
> +	in the past. Drivers should be able to survive without it:
>  
>  	- arm,pl11x,tft-r0g0b0-pads: an array of three 32-bit values,
>  		defining the way CLD pads are wired up; first value
> @@ -80,7 +82,6 @@ Example:
>  		port {
>  			clcd_pads: endpoint {
>  				remote-endpoint = <&clcd_panel>;
> -				arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
>  			};
>  		};
>  
> -- 
> 2.21.0

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] drm/pl111: Drop special pads config check
  2019-07-24 13:49   ` Linus Walleij
@ 2019-07-24 18:54     ` Sam Ravnborg
  -1 siblings, 0 replies; 8+ messages in thread
From: Sam Ravnborg @ 2019-07-24 18:54 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Pawel Moll, Maxime Ripard, Liviu Dudau, Maarten Lankhorst,
	dri-devel, Sean Paul, linux-arm-kernel

On Wed, Jul 24, 2019 at 03:49:59PM +0200, Linus Walleij wrote:
> This drops the check of the surplus "pads" configuration
> from the device tree that is completely unused in the DRM
> driver.
> 
> This was only used to work around limitations in the earlier
> fbdev driver.
> 
> Cc: Sam Ravnborg <sam@ravnborg.org>
> Cc: Pawel Moll <pawel.moll@arm.com>
> Cc: Liviu Dudau <Liviu.Dudau@arm.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Always good to delete code.

Reviewed-by: Sam Ravnborg <sam@ravnborg.org>

> ---
>  drivers/gpu/drm/pl111/pl111_display.c | 16 ----------------
>  1 file changed, 16 deletions(-)
> 
> diff --git a/drivers/gpu/drm/pl111/pl111_display.c b/drivers/gpu/drm/pl111/pl111_display.c
> index e42fb6353623..8595a676b084 100644
> --- a/drivers/gpu/drm/pl111/pl111_display.c
> +++ b/drivers/gpu/drm/pl111/pl111_display.c
> @@ -572,24 +572,8 @@ int pl111_display_init(struct drm_device *drm)
>  {
>  	struct pl111_drm_dev_private *priv = drm->dev_private;
>  	struct device *dev = drm->dev;
> -	struct device_node *endpoint;
> -	u32 tft_r0b0g0[3];
>  	int ret;
>  
> -	endpoint = of_graph_get_next_endpoint(dev->of_node, NULL);
> -	if (!endpoint)
> -		return -ENODEV;
> -
> -	if (of_property_read_u32_array(endpoint,
> -				       "arm,pl11x,tft-r0g0b0-pads",
> -				       tft_r0b0g0,
> -				       ARRAY_SIZE(tft_r0b0g0)) != 0) {
> -		dev_err(dev, "arm,pl11x,tft-r0g0b0-pads should be 3 ints\n");
> -		of_node_put(endpoint);
> -		return -ENOENT;
> -	}
> -	of_node_put(endpoint);
> -
>  	ret = pl111_init_clock_divider(drm);
>  	if (ret)
>  		return ret;
> -- 
> 2.21.0

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] drm/pl111: Drop special pads config check
@ 2019-07-24 18:54     ` Sam Ravnborg
  0 siblings, 0 replies; 8+ messages in thread
From: Sam Ravnborg @ 2019-07-24 18:54 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Pawel Moll, Maxime Ripard, Liviu Dudau, dri-devel, Sean Paul,
	linux-arm-kernel

On Wed, Jul 24, 2019 at 03:49:59PM +0200, Linus Walleij wrote:
> This drops the check of the surplus "pads" configuration
> from the device tree that is completely unused in the DRM
> driver.
> 
> This was only used to work around limitations in the earlier
> fbdev driver.
> 
> Cc: Sam Ravnborg <sam@ravnborg.org>
> Cc: Pawel Moll <pawel.moll@arm.com>
> Cc: Liviu Dudau <Liviu.Dudau@arm.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Always good to delete code.

Reviewed-by: Sam Ravnborg <sam@ravnborg.org>

> ---
>  drivers/gpu/drm/pl111/pl111_display.c | 16 ----------------
>  1 file changed, 16 deletions(-)
> 
> diff --git a/drivers/gpu/drm/pl111/pl111_display.c b/drivers/gpu/drm/pl111/pl111_display.c
> index e42fb6353623..8595a676b084 100644
> --- a/drivers/gpu/drm/pl111/pl111_display.c
> +++ b/drivers/gpu/drm/pl111/pl111_display.c
> @@ -572,24 +572,8 @@ int pl111_display_init(struct drm_device *drm)
>  {
>  	struct pl111_drm_dev_private *priv = drm->dev_private;
>  	struct device *dev = drm->dev;
> -	struct device_node *endpoint;
> -	u32 tft_r0b0g0[3];
>  	int ret;
>  
> -	endpoint = of_graph_get_next_endpoint(dev->of_node, NULL);
> -	if (!endpoint)
> -		return -ENODEV;
> -
> -	if (of_property_read_u32_array(endpoint,
> -				       "arm,pl11x,tft-r0g0b0-pads",
> -				       tft_r0b0g0,
> -				       ARRAY_SIZE(tft_r0b0g0)) != 0) {
> -		dev_err(dev, "arm,pl11x,tft-r0g0b0-pads should be 3 ints\n");
> -		of_node_put(endpoint);
> -		return -ENOENT;
> -	}
> -	of_node_put(endpoint);
> -
>  	ret = pl111_init_clock_divider(drm);
>  	if (ret)
>  		return ret;
> -- 
> 2.21.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-07-24 18:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-24 13:49 [PATCH 1/2] drm/pl111: Deprecate the pads from the DT binding Linus Walleij
2019-07-24 13:49 ` Linus Walleij
2019-07-24 13:49 ` [PATCH 2/2] drm/pl111: Drop special pads config check Linus Walleij
2019-07-24 13:49   ` Linus Walleij
2019-07-24 18:54   ` Sam Ravnborg
2019-07-24 18:54     ` Sam Ravnborg
2019-07-24 18:49 ` [PATCH 1/2] drm/pl111: Deprecate the pads from the DT binding Sam Ravnborg
2019-07-24 18:49   ` Sam Ravnborg

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.