ARM: Kirkwood: Convert to pinctrl
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 9 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 9 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/9] ARM: Kirkwood: Convert to pinctrl
Quoted 9 lines · Thomas Petazzoni
Andrew,
Quoted 5 lines · Andrew Lunn
I guess it is too early to use gpio. I don't think the gpio driver has not been configured yet.
I need to think about this.
Quoted 7 lines
Quoted 1 line
What happens if you comment out these two
gpio_set_valuecalls?The problem is (probably, I haven't tested) that in
mach-kirkwood/board-dt.c, theof_platform_populate()function is called after all the board-specific init. So all the devices described in the DT, including GPIO banks, have not been registered yet. Most likely theof_platform_populate()should come before the board specific inits.
Thanks Thomas, i will play around with this.
I'm just wondering if we are going to get into ordering issues. These gpio operations are providing power to subsystems. We probably need that to happen before the driver is loaded. If we call of_platform_populate() too early, do we have the danger the driver probing is going to happen before the init routine can enable the power?
It seems like we want pinctrl/gpio working first, with pins hogged as specified in DT, then the board init() function, then the rest of DT setup.
Quoted 2 lines
Also there should probably be a
gpio_request()before thosegpio_set_value().
Yes. That worked before, but might break now. Most of the init() functions do actually make a gpip_request() call.
Andrew