OSDN Git Service

phy: phy-stih407-usb: Pass sysconfig register offsets via syscfg property.
authorPeter Griffin <peter.griffin@linaro.org>
Wed, 7 Jan 2015 15:04:06 +0000 (15:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Jan 2015 23:53:33 +0000 (18:53 -0500)
commit937127fe13e1394305fdd9c9150b52651ab8ba6c
treeb706e3c3002bd4988d0bb476584f098b5f50e47c
parentfb57720daf6e56ba453414b5e8dd9cb3c0c80257
phy: phy-stih407-usb: Pass sysconfig register offsets via syscfg property.

Based on Arnds review comments here https://lkml.org/lkml/2014/11/13/161,
update the phy driver to not use the reg property to access the sysconfig
register offsets.

This is because other phy's (miphy28, miphy365) have a combination of
memory mapped registers and sysconfig control regs, and we shouldn't
be mixing address spaces in the reg property. In addition we would
ideally like the sysconfig offsets to be passed via DT in a uniform way.

This new method will also allow us to support devices which have sysconfig
registers in different banks more easily and it is also analagous to how
keystone and bcm7745 platforms pass there syscon offsets in DT.

This breaks DT compatibility, but this platform is considered WIP, and
is only used by a few developers who are upstreaming support for it.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/phy/phy-stih407-usb.txt
drivers/phy/phy-stih407-usb.c