From: Grygorii Strashko Date: Wed, 3 Sep 2014 17:05:33 +0000 (+0300) Subject: gpio: syscon: retrive syscon node and regs offsets from dt X-Git-Tag: fixes-against-v3.18-rc2~140^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a3e3f88b0a10f8b5baf224ebda5916195fb8745;p=pandora-kernel.git 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 Signed-off-by: Linus Walleij --- Reading git-diff-tree failed