Home
last modified time | relevance | path

Searched +full:cpm2 +full:- +full:mdio +full:- +full:bitbang (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/Documentation/devicetree/bindings/net/
Dfsl,cpm-mdio.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/net/fsl,cpm-mdio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Freescale CPM MDIO Device
10 - Frank Li <Frank.Li@nxp.com>
15 - enum:
16 - fsl,pq1-fec-mdio
17 - fsl,cpm2-mdio-bitbang
18 - items:
[all …]
/linux-6.12.1/drivers/net/ethernet/freescale/fs_enet/
Dmii-bitbang.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <linux/mdio-bitbang.h>
57 struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl); in mdio_dir() local
60 bb_set(bitbang->dir, bitbang->mdio_msk); in mdio_dir()
62 bb_clr(bitbang->dir, bitbang->mdio_msk); in mdio_dir()
65 in_be32(bitbang->dir); in mdio_dir()
70 struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl); in mdio_read() local
71 return bb_read(bitbang->dat, bitbang->mdio_msk); in mdio_read()
74 static inline void mdio(struct mdiobb_ctrl *ctrl, int what) in mdio() function
76 struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl); in mdio() local
[all …]
/linux-6.12.1/arch/powerpc/boot/dts/
Dmgcoge.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
9 /dts-v1/;
13 #address-cells = <1>;
14 #size-cells = <1>;
22 #address-cells = <1>;
23 #size-cells = <0>;
28 d-cache-line-size = <32>;
29 i-cache-line-size = <32>;
30 d-cache-size = <16384>;
31 i-cache-size = <16384>;
[all …]
Dep8248e.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
8 /dts-v1/;
12 #address-cells = <1>;
13 #size-cells = <1>;
16 planetcore-SMC1 = &smc1;
17 planetcore-SCC1 = &scc1;
25 #address-cells = <1>;
26 #size-cells = <0>;
31 d-cache-line-size = <32>;
32 i-cache-line-size = <32>;
[all …]
Dksi8560.dts15 /dts-v1/;
22 #address-cells = <1>;
23 #size-cells = <1>;
32 #address-cells = <1>;
33 #size-cells = <0>;
38 d-cache-line-size = <32>;
39 i-cache-line-size = <32>;
40 d-cache-size = <0x8000>; /* L1, 32K */
41 i-cache-size = <0x8000>; /* L1, 32K */
42 timebase-frequency = <0>; /* From U-boot */
[all …]
/linux-6.12.1/arch/powerpc/platforms/82xx/
Dep8248e.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 #include <linux/mdio-bitbang.h>
19 #include <asm/cpm2.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()
[all …]
/linux-6.12.1/drivers/net/mdio/
Dmdio-bitbang.c1 // SPDX-License-Identifier: GPL-2.0
3 * Bitbanged MDIO support.
8 * Based on CPM2 MDIO code which is:
18 #include <linux/mdio-bitbang.h>
43 /* MDIO must already be configured as output. */
46 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_send_bit()
48 ops->set_mdio_data(ctrl, val); in mdiobb_send_bit()
50 ops->set_mdc(ctrl, 1); in mdiobb_send_bit()
52 ops->set_mdc(ctrl, 0); in mdiobb_send_bit()
55 /* MDIO must already be configured as input. */
[all …]