On 19.05.22 14:17, Ahmad Fatoum wrote:
> Hello Frank,
> 
> On 19.05.22 12:59, Frank Wunderlich wrote:
>> Hi,
>>
>> I try to create a basic driver for rk808 pmic/iodomains. I've noticed that 
>> first the iodomain driver is probed and then the rk808 on,but i need it 
>> reversed as rk808 registers regulators linked in iodomain via devicetree.
>>
>> How can i defer iodomain probing till rk808 is ready (regulators available 
>> defined as phandles in iodomain dt node)? Currently i get always ENODEV 
>> (property does not exist or regulator is not ready yet)....
>>
>> This is my current (dirty) source:
>> https://github.com/frank-w/barebox-r2pro/commits/r2pro-iodomain
> 
> While I don't know what iodomains are, I had ported the rk808 driver to 
> barebox for
> use with the Rock Pi N10. I haven't come around to upstream it, because I 
> haven't
> figured out why I can't use the existing regmap helpers like Linux does.
> 
> I have sent you the patches as a reply to your mail. Perhaps they'll
> save you some effort.

I see now that Kconfig/Makefile parts are missing, but I trust you can easily 
add those.
Also, you'll need this patch: 
https://lore.barebox.org/barebox/20220114084728.311277-1-a.fat...@pengutronix.de/
(preferably after incorporating Sascha's feedback).

Cheers,
Ahmad

> 
> Cheers,
> Ahmad
> 
> 
>> regards Frank
>>
>> _______________________________________________
>> barebox mailing list
>> barebox@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/barebox
>>
> 
> 


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
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

Reply via email to