Lines Matching refs:mdiodev
31 ret = bus->write(bus, priv->mdiodev->addr, 0x1f, page); in mt7530_regmap_write()
35 ret = bus->write(bus, priv->mdiodev->addr, r, lo); in mt7530_regmap_write()
39 ret = bus->write(bus, priv->mdiodev->addr, 0x10, hi); in mt7530_regmap_write()
54 ret = bus->write(bus, priv->mdiodev->addr, 0x1f, page); in mt7530_regmap_read()
58 lo = bus->read(bus, priv->mdiodev->addr, r); in mt7530_regmap_read()
59 hi = bus->read(bus, priv->mdiodev->addr, 0x10); in mt7530_regmap_read()
140 mt7530_probe(struct mdio_device *mdiodev) in mt7530_probe() argument
147 dn = mdiodev->dev.of_node; in mt7530_probe()
149 priv = devm_kzalloc(&mdiodev->dev, sizeof(*priv), GFP_KERNEL); in mt7530_probe()
153 priv->bus = mdiodev->bus; in mt7530_probe()
154 priv->dev = &mdiodev->dev; in mt7530_probe()
155 priv->mdiodev = mdiodev; in mt7530_probe()
170 dev_info(&mdiodev->dev, "MT7530 adapts as multi-chip module\n"); in mt7530_probe()
172 priv->rstc = devm_reset_control_get(&mdiodev->dev, "mcm"); in mt7530_probe()
174 dev_err(&mdiodev->dev, "Couldn't get our reset line\n"); in mt7530_probe()
178 priv->reset = devm_gpiod_get_optional(&mdiodev->dev, "reset", in mt7530_probe()
181 dev_err(&mdiodev->dev, "Couldn't get our reset line\n"); in mt7530_probe()
187 priv->core_pwr = devm_regulator_get(&mdiodev->dev, "core"); in mt7530_probe()
191 priv->io_pwr = devm_regulator_get(&mdiodev->dev, "io"); in mt7530_probe()
196 regmap_config = devm_kzalloc(&mdiodev->dev, sizeof(*regmap_config), in mt7530_probe()
218 mt7530_remove(struct mdio_device *mdiodev) in mt7530_remove() argument
220 struct mt7530_priv *priv = dev_get_drvdata(&mdiodev->dev); in mt7530_remove()
242 static void mt7530_shutdown(struct mdio_device *mdiodev) in mt7530_shutdown() argument
244 struct mt7530_priv *priv = dev_get_drvdata(&mdiodev->dev); in mt7530_shutdown()
251 dev_set_drvdata(&mdiodev->dev, NULL); in mt7530_shutdown()