Thread (50 messages) 50 messages, 4 authors, 2017-01-27

[PATCH v3 01/13] soc: samsung: pmu: Provide global function to get PMU regmap

From: Linus Walleij <hidden>
Date: 2017-01-26 15:54:06
Also in: linux-gpio, linux-pm, linux-samsung-soc

On Thu, Jan 26, 2017 at 11:22 AM, Marek Szyprowski
[off-list ref] wrote:
syscon_regmap_lookup_by_compatible() requires to have a compatible string
hardcoded in the client driver. This might be used, but will require to have
(and maintain) a duplicated list of PMU compatibles in pin control driver.
There is a little problem with exynos4212 and exynos4412, which have same
pinctrl compatible (samsung,exynos4x12-pinctrl), but separate PMU
compatibles
I actually used this approach with the ARM reference designs:
drivers/mtd/maps/physmap_of_versatile.c
drivers/video/fbdev/amba-clcd-versatile.c

It made sense to me, because for each compatible I anyways
needed the .data field to distinguish between the different
system controllers, because they are of course all slightly
idiomatic.

I guess in your case you can distinguish how to use the syscon
by the pinctrl compatible instead.

Oh well.

I guess I'm OK with this then. I'll try to pull it in and see what
happens.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help