struct tegra_usb_cd *ucd)
{
struct device_node *np = pdev->dev.of_node;
+ u32 current_ua = 0;
if (!np)
return;
- of_property_read_u32(np, "nvidia,dcp-current-limit-ma",
- &ucd->dcp_current_limit_ma);
- of_property_read_u32(np, "nvidia,qc2-current-limit-ma",
- &ucd->qc2_current_limit_ma);
+ of_property_read_u32(np, "nvidia,dcp-current-limit-ua", ¤t_ua);
+ ucd->dcp_current_limit_ma = current_ua / 1000;
+ of_property_read_u32(np, "nvidia,qc2-current-limit-ua", ¤t_ua);
+ ucd->qc2_current_limit_ma = current_ua / 1000;
of_property_read_u32(np, "nvidia,qc2-input-voltage",
&ucd->qc2_voltage);
}