return PTR_ERR(priv->sctrl);
}
- priv->usb31misc = syscon_regmap_lookup_by_phandle(dev->of_node,
- "hisilicon,usb31-misc-syscon");
+ /* node of hi3670 phy is a sub-node of usb3_otg_bc */
+ priv->usb31misc = syscon_node_to_regmap(dev->parent->of_node);
if (IS_ERR(priv->usb31misc)) {
- dev_err(dev, "no hisilicon,usb31-misc-syscon\n");
+ dev_err(dev, "no hisilicon,usb3-otg-bc-syscon\n");
return PTR_ERR(priv->usb31misc);
}
- if (of_property_read_u32(dev->of_node, "eye-diagram-param",
+ if (of_property_read_u32(dev->of_node, "hisilicon,eye-diagram-param",
&priv->eye_diagram_param))
priv->eye_diagram_param = KIRIN970_USB_DEFAULT_PHY_PARAM;
- if (of_property_read_u32(dev->of_node, "usb3-phy-tx-vboost-lvl",
+ if (of_property_read_u32(dev->of_node, "hisilicon,tx-vboost-lvl",
&priv->tx_vboost_lvl))
priv->eye_diagram_param = KIRIN970_USB_DEFAULT_PHY_VBOOST;