summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWyon Bi <bivvy.bi@rock-chips.com>2018-01-05 10:08:45 +0800
committerTao Huang <huangtao@rock-chips.com>2018-01-11 16:45:24 +0800
commitdffc88904250b7bffc0c3b5a7b3a667f55baa992 (patch)
tree461aa14267c842c3ceed3811a2467a60861f1229
parentfaa3764d61e7719d6c44446dc6855fdc04186fb1 (diff)
phy/rockchip: dphy: Add support for PX30
Change-Id: Ia7e29691f66fa10a5cdf1379b4eb419581ddda5f Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
-rw-r--r--Documentation/devicetree/bindings/phy/phy-rockchip-inno-mipi-dphy.txt1
-rw-r--r--drivers/phy/rockchip/phy-rockchip-inno-mipi-dphy.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-inno-mipi-dphy.txt b/Documentation/devicetree/bindings/phy/phy-rockchip-inno-mipi-dphy.txt
index 6e2cfdaf4b7b..e989ccc087d4 100644
--- a/Documentation/devicetree/bindings/phy/phy-rockchip-inno-mipi-dphy.txt
+++ b/Documentation/devicetree/bindings/phy/phy-rockchip-inno-mipi-dphy.txt
@@ -2,6 +2,7 @@ ROCKCHIP MIPI DPHY WITH INNO IP BLOCK
Required properties:
- compatible : must be one of:
+ "rockchip,px30-mipi-dphy";
"rockchip,rk3128-mipi-dphy";
"rockchip,rk3366-mipi-dphy";
"rockchip,rk3368-mipi-dphy";
diff --git a/drivers/phy/rockchip/phy-rockchip-inno-mipi-dphy.c b/drivers/phy/rockchip/phy-rockchip-inno-mipi-dphy.c
index 7597965ddfe2..7654df738b23 100644
--- a/drivers/phy/rockchip/phy-rockchip-inno-mipi-dphy.c
+++ b/drivers/phy/rockchip/phy-rockchip-inno-mipi-dphy.c
@@ -887,6 +887,11 @@ static int inno_mipi_dphy_remove(struct platform_device *pdev)
return 0;
}
+static const struct inno_video_phy_socdata px30_socdata = {
+ .has_h2p_clk = false,
+ .pinmux = false,
+};
+
static const struct inno_video_phy_socdata rk3128_socdata = {
.has_h2p_clk = true,
.pinmux = false,
@@ -903,6 +908,7 @@ static const struct inno_video_phy_socdata rk3368_socdata = {
};
static const struct of_device_id inno_mipi_dphy_of_match[] = {
+ { .compatible = "rockchip,px30-mipi-dphy", .data = &px30_socdata },
{ .compatible = "rockchip,rk3128-mipi-dphy", .data = &rk3128_socdata },
{ .compatible = "rockchip,rk3366-mipi-dphy", .data = &rk3366_socdata },
{ .compatible = "rockchip,rk3368-mipi-dphy", .data = &rk3368_socdata },