• G
    gpio: syscon: retrive syscon node and regs offsets from dt · 5a3e3f88
    Grygorii Strashko 提交于
    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: NGrygorii Strashko <grygorii.strashko@ti.com>
    Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
    5a3e3f88
gpio-syscon.c 6.1 KB