Lines Matching +full:mdio +full:- +full:pin
1 // SPDX-License-Identifier: GPL-2.0-or-later
12 #include <linux/mdio-bitbang.h>
49 struct device_node *np = of_find_compatible_node(NULL, NULL, "fsl,pq2-pic"); in ep8248e_pic_init()
51 printk(KERN_ERR "PIC init: can not find cpm-pic node\n"); in ep8248e_pic_init()
116 node = of_get_parent(ofdev->dev.of_node); in ep8248e_mdio_probe()
119 return -ENODEV; in ep8248e_mdio_probe()
121 ret = of_address_to_resource(ofdev->dev.of_node, 0, &res); in ep8248e_mdio_probe()
127 return -ENOMEM; in ep8248e_mdio_probe()
129 bus->name = "ep8248e-mdio-bitbang"; in ep8248e_mdio_probe()
130 bus->parent = &ofdev->dev; in ep8248e_mdio_probe()
131 snprintf(bus->id, MII_BUS_ID_SIZE, "%x", res.start); in ep8248e_mdio_probe()
133 ret = of_mdiobus_register(bus, ofdev->dev.of_node); in ep8248e_mdio_probe()
145 .compatible = "fsl,ep8248e-mdio-bitbang",
152 .name = "ep8248e-mdio-bitbang",
160 int port, pin, flags; member
230 const struct cpm_pin *pin = &ep8248e_pins[i]; in init_ioports() local
231 cpm2_set_pin(pin->port, pin->pin, pin->flags); in init_ioports()
254 clrbits32(&cpm2_immr->im_siu_conf.siu_82xx.sc_bcr, MPC82XX_BCR_PLDP); in ep8248e_setup_arch()
257 of_find_compatible_node(NULL, NULL, "fsl,ep8248e-bcsr"); in ep8248e_setup_arch()
282 { .compatible = "simple-bus", },
283 { .compatible = "fsl,ep8248e-bcsr", },