> >> On Tue, Dec 10, 2013 at 4:26 PM, Alexander Shiyan <[email protected]> wrote:
> 
> >> I take it that bit-offset can be say 1024 and bit count
> >> 32 for a 32-bit register at syscon_base + 0x80?
> >
> > This can be represented in DT as (0x80 << 4).
> 
> That's better of course but you still have to read both the
> device tree and the driver and correlate to figure out
> what's going on.
> 
> >> I sort of like the syscon driver but I don't like the idea
> >> of encoding register offsets into the device tree, even
> >> less do I like the idea of encoding it in bit notation.
> >
> > I also have no idea how to present it differently.
> > Can try to specify the byte offset through the "reg" property?
> > The "bit-offset" will remain, but will point offset from the "reg" byte.
> 
> This does not help. I don't want the offset inside the
> device tree at all.

OK, let me show next version in a week or so.

---

Reply via email to