[PATCH] ARM: i.MX8MP: add Koenig+Bauer Alphajet board

Marco Felsch m.felsch at pengutronix.de
Thu Jun 1 01:40:02 PDT 2023


Hi Sascha,

On 23-06-01, Sascha Hauer wrote:
> On Thu, Jun 01, 2023 at 09:40:29AM +0200, Johannes Zink wrote:

...

> > +#define EQOS_PWR_PIN IMX_GPIO_NR(1, 5) /* ENET_PWREN# */
> > +static void setup_ethernet_phy(void)
> > +{
> > +	u32 val;
> > +
> > +	of_device_ensure_probed_by_alias("gpio0");
> > +
> > +	if (gpio_direction_output(EQOS_PWR_PIN, 0))
> > +	{
> > +		pr_err("eqos phy power: failed to request pin\n");
> > +		return;
> > +	}
> 
> Should this be a fixed regulator in dt?

Sorry for stepping in here. I think the problem was that neither the
kernel nor the barebox EQOS driver support the regulator feature. But
you're right this should be the correct solution.

Regards,
  Marco



More information about the barebox mailing list