Thread (39 messages) flat view 39 messages, 5 authors, 2012-10-11

Re: [PATCH 02/16] pinctrl: exynos: Parse wakeup-eint parameters from DT

From: Linus Walleij <hidden>
Date: 2012-10-10 07:18:51
Also in: linux-arm-kernel, linux-samsung-soc

On Mon, Oct 8, 2012 at 10:39 AM, Tomasz Figa [off-list ref] wrote:
This patch converts the pinctrl-exynos driver to parse wakeup interrupt
count and register offsets from device tree. It reduces the amount of
static platform-specific data and facilitates adding further SoC
variants to pinctrl-samsung driver.
So these are:
+       ret = of_property_read_u32(wkup_np, "samsung,weint-count", &val);
+       ret = of_property_read_u32(wkup_np, "samsung,weint-con", &val);
+       ret = of_property_read_u32(wkup_np, "samsung,weint-mask", &val);
+       ret = of_property_read_u32(wkup_np, "samsung,weint-pend", &val);
Are these all four register offsets?

I don't think it's proper for the device tree to contain register offsets.

Base address, "regs" property, yes. Individual registers, no. That just
makes the code hard to read and compare to the datasheet.

Or what are you aiming at here?

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