diff options
author | Grygorii Strashko | 2014-09-03 20:05:33 +0300 |
---|---|---|
committer | Linus Walleij | 2014-09-16 14:40:05 -0700 |
commit | 5a3e3f88b0a10f8b5baf224ebda5916195fb8745 (patch) | |
tree | 1295a7f780877edd44cdb468763f4126ba0705d8 /firmware/ttusb-budget | |
parent | 2c341d62eb4b697793c29da51fda64328df5ff59 (diff) |
gpio: syscon: retrive syscon node and regs offsets from dt
This patch adds handling of new "gpio,syscon-dev" DT property,
which allows to specify syscon node and data/direction registers
offsets in DT.
"gpio,syscon-dev" has following format:
gpio,syscon-dev = <&syscon_dev data_reg_offset [direction_reg_offset]>;
where
- syscon_dev - phandle on syscon node
- data_reg_offset - offset of data register (in bytes)
- direction_reg_offset - offset of dirrection register (optional, in bytes)
for example:
gpio,syscon-dev = <&devctrl 0x254>;
In such way, the support of multiple Syscon GPIO devices is added.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'firmware/ttusb-budget')
0 files changed, 0 insertions, 0 deletions