OSDN Git Service

phy: phy-stih407-usb: Pass sysconfig register offsets via syscfg property.
authorPeter Griffin <peter.griffin@linaro.org>
Fri, 16 Jan 2015 15:04:11 +0000 (16:04 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 21 Jan 2015 09:53:06 +0000 (15:23 +0530)
commit5402d927ae96bd1413ecc6bac966fd8b6d3b8159
tree499b3ce01207348e6d8f41afd5a9eb72aebf62ba
parentde6e0f84bebc0daadca46e735f4b2be3e006d05d
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: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Documentation/devicetree/bindings/phy/phy-stih407-usb.txt
drivers/phy/phy-stih407-usb.c