]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: syscon: Add a DT property to set value width
authorDamien Riegel <damien.riegel@savoirfairelinux.com>
Mon, 30 Nov 2015 15:59:47 +0000 (10:59 -0500)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Jan 2016 06:08:02 +0000 (06:08 +0000)
commit3d37fcf7f112774086da0dd2cfab66660d66f5af
tree10c070efe52d35d68b6080a9894c7e73632bf80c
parentab4742297d7e3f3e8831e1d9d7e424863da5c2b8
mfd: syscon: Add a DT property to set value width

Currently syscon has a fixed configuration of 32 bits for register and
values widths. In some cases, it would be desirable to be able to
customize the value width.

For example, certain boards (like the ones manufactured by Technologic
Systems) have a FPGA that is memory-mapped, but its registers are only
16-bit wide.

This patch adds an optional "reg-io-width" DT binding for syscon that
allows to change the width for the data bus (i.e. val_bits). If this
property is provided, it will also set the register stride to
reg-io-width's value. If not provided, the default configuration is
used.

Signed-off-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/devicetree/bindings/mfd/syscon.txt
drivers/mfd/syscon.c