UPSTREAM: phy: rockchip-usb: add compatible values for rk3066a and rk3188
authorHeiko Stuebner <heiko@sntech.de>
Thu, 19 Nov 2015 21:22:25 +0000 (22:22 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 25 Feb 2016 08:11:17 +0000 (16:11 +0800)
We need custom handling for these two socs in the driver shortly,
so add the necessary compatible values to binding and driver.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
(cherry picked from commit c2bfc3b88813ab8711317a19f5c9cd74aeaf536c)

Change-Id: I63cf61e12b1f3bb56856accc38949c6cd8c0ce8e

Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt
drivers/phy/phy-rockchip-usb.c

index 826454ac43bb6c1cee88bfe7aa505cf1cacd5635..9b37242fb8d3e53e3590855c7e80d9c8bc8c052e 100644 (file)
@@ -1,7 +1,10 @@
 ROCKCHIP USB2 PHY
 
 Required properties:
- - compatible: rockchip,rk3288-usb-phy
+ - compatible: matching the soc type, one of
+     "rockchip,rk3066a-usb-phy"
+     "rockchip,rk3188-usb-phy"
+     "rockchip,rk3288-usb-phy"
  - rockchip,grf : phandle to the syscon managing the "general
    register files"
  - #address-cells: should be 1
index ff3ac3379c6111b88124574a0f7764e40a8463fb..16cd533b21f0aefa2bca9f40fd9c9e5d6814d043 100644 (file)
@@ -176,6 +176,8 @@ static int rockchip_usb_phy_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id rockchip_usb_phy_dt_ids[] = {
+       { .compatible = "rockchip,rk3066a-usb-phy" },
+       { .compatible = "rockchip,rk3188-usb-phy" },
        { .compatible = "rockchip,rk3288-usb-phy" },
        {}
 };