mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] soc: imx: gpcv2: skip registering devices for unavailable power domains
@ 2019-10-30 11:16 Lucas Stach
  2019-10-30 11:16 ` [PATCH 2/2] ARM: zii-imx8mq-dev: disable GPU and VPU power domain in DT Lucas Stach
  0 siblings, 1 reply; 3+ messages in thread
From: Lucas Stach @ 2019-10-30 11:16 UTC (permalink / raw)
  To: barebox

Allows to disable domains in the DT, as we don't need all of them in
Barebox.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/soc/imx/gpcv2.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
index bc373ecf40cc..7d33e8297829 100644
--- a/drivers/soc/imx/gpcv2.c
+++ b/drivers/soc/imx/gpcv2.c
@@ -449,6 +449,10 @@ static int imx_gpcv2_probe(struct device_d *dev)
 		struct device_d *pd_dev;
 		struct imx_pgc_domain *domain;
 		u32 domain_index;
+
+		if (!of_device_is_available(np))
+			continue;
+
 		ret = of_property_read_u32(np, "reg", &domain_index);
 		if (ret) {
 			dev_err(dev, "Failed to read 'reg' property\n");
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 2/2] ARM: zii-imx8mq-dev: disable GPU and VPU power domain in DT
  2019-10-30 11:16 [PATCH 1/2] soc: imx: gpcv2: skip registering devices for unavailable power domains Lucas Stach
@ 2019-10-30 11:16 ` Lucas Stach
  2019-11-04  8:11   ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Lucas Stach @ 2019-10-30 11:16 UTC (permalink / raw)
  To: barebox

In Barebox we don't have a driver for the PMIC powering those domains,
so we get a "probe permanently deferred" warning for those domains. As
they are not actually used in Barebox, we can just disable them to get
rid of the warning.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 arch/arm/dts/imx8mq-zii-ultra.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/dts/imx8mq-zii-ultra.dtsi b/arch/arm/dts/imx8mq-zii-ultra.dtsi
index 6180f21ab0a4..bde70901a331 100644
--- a/arch/arm/dts/imx8mq-zii-ultra.dtsi
+++ b/arch/arm/dts/imx8mq-zii-ultra.dtsi
@@ -56,6 +56,14 @@
 	};
 };
 
+&pgc_gpu {
+	status = "disabled";
+};
+
+&pgc_vpu {
+	status = "disabled";
+};
+
 &i210 {
 	nvmem-cells = <&mac_address_1>;
 	nvmem-cell-names = "mac-address";
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 2/2] ARM: zii-imx8mq-dev: disable GPU and VPU power domain in DT
  2019-10-30 11:16 ` [PATCH 2/2] ARM: zii-imx8mq-dev: disable GPU and VPU power domain in DT Lucas Stach
@ 2019-11-04  8:11   ` Sascha Hauer
  0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2019-11-04  8:11 UTC (permalink / raw)
  To: Lucas Stach; +Cc: barebox

On Wed, Oct 30, 2019 at 12:16:40PM +0100, Lucas Stach wrote:
> In Barebox we don't have a driver for the PMIC powering those domains,
> so we get a "probe permanently deferred" warning for those domains. As
> they are not actually used in Barebox, we can just disable them to get
> rid of the warning.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  arch/arm/dts/imx8mq-zii-ultra.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/arch/arm/dts/imx8mq-zii-ultra.dtsi b/arch/arm/dts/imx8mq-zii-ultra.dtsi
> index 6180f21ab0a4..bde70901a331 100644
> --- a/arch/arm/dts/imx8mq-zii-ultra.dtsi
> +++ b/arch/arm/dts/imx8mq-zii-ultra.dtsi
> @@ -56,6 +56,14 @@
>  	};
>  };
>  
> +&pgc_gpu {
> +	status = "disabled";
> +};
> +
> +&pgc_vpu {
> +	status = "disabled";
> +};

This breaks GPU support under Linux when started with the barebox device
tree, right? Is there a better solution?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-11-04  8:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-30 11:16 [PATCH 1/2] soc: imx: gpcv2: skip registering devices for unavailable power domains Lucas Stach
2019-10-30 11:16 ` [PATCH 2/2] ARM: zii-imx8mq-dev: disable GPU and VPU power domain in DT Lucas Stach
2019-11-04  8:11   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox