Lines Matching refs:tegra_phy
956 static int utmi_phy_probe(struct tegra_usb_phy *tegra_phy,
963 tegra_phy->is_ulpi_phy = false;
975 tegra_phy->pad_regs = devm_ioremap(&pdev->dev, res->start,
977 if (!tegra_phy->pad_regs) {
982 tegra_phy->config = devm_kzalloc(&pdev->dev, sizeof(*config),
984 if (!tegra_phy->config)
987 config = tegra_phy->config;
1019 if (tegra_phy->soc_config->requires_extra_tuning_parameters) {
1073 struct tegra_usb_phy *tegra_phy;
1081 tegra_phy = devm_kzalloc(&pdev->dev, sizeof(*tegra_phy), GFP_KERNEL);
1082 if (!tegra_phy)
1085 tegra_phy->soc_config = of_device_get_match_data(&pdev->dev);
1097 tegra_phy->regs = devm_ioremap(&pdev->dev, res->start,
1099 if (!tegra_phy->regs) {
1104 tegra_phy->is_legacy_phy =
1108 tegra_phy->mode = usb_get_dr_mode(&pdev->dev);
1110 tegra_phy->mode = USB_DR_MODE_HOST;
1112 if (tegra_phy->mode == USB_DR_MODE_UNKNOWN) {
1118 tegra_phy->vbus = devm_regulator_get(&pdev->dev, "vbus");
1119 if (IS_ERR(tegra_phy->vbus))
1120 return PTR_ERR(tegra_phy->vbus);
1122 tegra_phy->pll_u = devm_clk_get(&pdev->dev, "pll_u");
1123 err = PTR_ERR_OR_ZERO(tegra_phy->pll_u);
1132 err = utmi_phy_probe(tegra_phy, pdev);
1136 tegra_phy->pad_clk = devm_clk_get(&pdev->dev, "utmi-pads");
1137 err = PTR_ERR_OR_ZERO(tegra_phy->pad_clk);
1152 tegra_phy->pad_rst = reset;
1156 tegra_phy->is_ulpi_phy = true;
1158 tegra_phy->clk = devm_clk_get(&pdev->dev, "ulpi-link");
1159 err = PTR_ERR_OR_ZERO(tegra_phy->clk);
1176 tegra_phy->reset_gpio = gpiod;
1185 tegra_phy->ulpi = phy;
1186 tegra_phy->ulpi->io_priv = tegra_phy->regs + ULPI_VIEWPORT;
1195 tegra_phy->u_phy.dev = &pdev->dev;
1196 tegra_phy->u_phy.init = tegra_usb_phy_init;
1197 tegra_phy->u_phy.shutdown = tegra_usb_phy_shutdown;
1198 tegra_phy->u_phy.set_suspend = tegra_usb_phy_set_suspend;
1200 platform_set_drvdata(pdev, tegra_phy);
1202 return usb_add_phy_dev(&tegra_phy->u_phy);
1207 struct tegra_usb_phy *tegra_phy = platform_get_drvdata(pdev);
1209 usb_remove_phy(&tegra_phy->u_phy);