[U-Boot] [PATCH v2] Add single register pin controller driver

Masahiro Yamada yamada.masahiro at socionext.com
Fri Feb 10 04:35:13 UTC 2017


Hi Felix,

2017-02-09 18:47 GMT+09:00 Felix Brack <fb at ltec.ch>:
>
>> device_probe()
>
> From 'pinctrl-uclass.c::device_probe()':
>
> ---
> /*
>  * Process pinctrl for everything except the root device, and
>  * continue regardless of the result of pinctrl. Don't process pinctrl
>  * settings for pinctrl devices since the device may not yet be
>  * probed.
>  */
> if (dev->parent && device_get_uclass_id(dev) != UCLASS_PINCTRL)
>         pinctrl_select_state(dev, "default");
> ---
>
> The comment says it all. This is where 'periph' originates.


That's right.
Then, the "dev" in device_probe() represents
the peripheral, such as i2c.

Not a pin-config node, like i2c0_pins.


-- 
Best Regards
Masahiro Yamada


More information about the U-Boot mailing list