| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/ |
| D | brcm,unimac-mdio.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/net/brcm,unimac-mdio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Broadcom UniMAC MDIO bus controller 10 - Doug Berger <opendmb@gmail.com> 11 - Florian Fainelli <f.fainelli@gmail.com> 12 - Rafał Miłecki <rafal@milecki.pl> 15 - $ref: mdio.yaml# 20 - brcm,genet-mdio-v1 [all …]
|
| D | brcm,asp-v2.0.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/brcm,asp-v2.0.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Justin Chen <justin.chen@broadcom.com> 11 - Florian Fainelli <florian.fainelli@broadcom.com> 18 - items: 19 - enum: 20 - brcm,bcm74165-asp 21 - const: brcm,asp-v2.1 [all …]
|
| D | brcm,bcmgenet.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Doug Berger <opendmb@gmail.com> 11 - Florian Fainelli <f.fainelli@gmail.com> 16 - brcm,genet-v1 17 - brcm,genet-v2 18 - brcm,genet-v3 19 - brcm,genet-v4 20 - brcm,genet-v5 [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
| D | brcm,unimac-mdio.txt | 1 * Broadcom UniMAC MDIO bus controller 4 - compatible: should one from "brcm,genet-mdio-v1", "brcm,genet-mdio-v2", 5 "brcm,genet-mdio-v3", "brcm,genet-mdio-v4", "brcm,genet-mdio-v5" or 6 "brcm,unimac-mdio" 7 - reg: address and length of the register set for the device, first one is the 9 larger than 16-bits MDIO transactions 10 - reg-names: name(s) of the register must be "mdio" and optional "mdio_indir_rw" 11 - #size-cells: must be 1 12 - #address-cells: must be 0 15 - interrupts: must be one if the interrupt is shared with the Ethernet MAC or [all …]
|
| /kernel/linux/linux-6.6/drivers/net/mdio/ |
| D | mdio-bcm-unimac.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Broadcom UniMAC MDIO bus controller driver 5 * Copyright (C) 2014-2017 Broadcom 17 #include <linux/platform_data/mdio-bcm-unimac.h> 50 * peripheral registers for CPU-native byte order. in unimac_mdio_readl() 53 return __raw_readl(priv->base + offset); in unimac_mdio_readl() 55 return readl_relaxed(priv->base + offset); in unimac_mdio_readl() 62 __raw_writel(val, priv->base + offset); in unimac_mdio_writel() 64 writel_relaxed(val, priv->base + offset); in unimac_mdio_writel() 91 } while (--timeout); in unimac_mdio_poll() [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # MDIO Layer Configuration 7 tristate "MDIO bus device drivers" 9 MDIO devices and driver infrastructure code. 20 loadable module or built-in. 27 FWNODE MDIO bus (Ethernet PHY) accessors 35 OpenFirmware MDIO bus (Ethernet PHY) accessors 42 ACPI MDIO bus (Ethernet PHY) accessors 50 tristate "Allwinner sun4i MDIO interface support" 53 This driver supports the MDIO interface found in the network [all …]
|
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 # Makefile for Linux MDIO bus drivers 4 obj-$(CONFIG_ACPI_MDIO) += acpi_mdio.o 5 obj-$(CONFIG_FWNODE_MDIO) += fwnode_mdio.o 6 obj-$(CONFIG_OF_MDIO) += of_mdio.o 8 obj-$(CONFIG_MDIO_ASPEED) += mdio-aspeed.o 9 obj-$(CONFIG_MDIO_BCM_IPROC) += mdio-bcm-iproc.o 10 obj-$(CONFIG_MDIO_BCM_UNIMAC) += mdio-bcm-unimac.o 11 obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o 12 obj-$(CONFIG_MDIO_CAVIUM) += mdio-cavium.o [all …]
|
| /kernel/linux/linux-5.10/drivers/net/mdio/ |
| D | mdio-bcm-unimac.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Broadcom UniMAC MDIO bus controller driver 5 * Copyright (C) 2014-2017 Broadcom 17 #include <linux/platform_data/mdio-bcm-unimac.h> 50 * peripheral registers for CPU-native byte order. in unimac_mdio_readl() 53 return __raw_readl(priv->base + offset); in unimac_mdio_readl() 55 return readl_relaxed(priv->base + offset); in unimac_mdio_readl() 62 __raw_writel(val, priv->base + offset); in unimac_mdio_writel() 64 writel_relaxed(val, priv->base + offset); in unimac_mdio_writel() 91 } while (--timeout); in unimac_mdio_poll() [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # MDIO Layer Configuration 7 tristate "MDIO bus device drivers" 9 MDIO devices and driver infrastructure code. 20 loadable module or built-in. 28 OpenFirmware MDIO bus (Ethernet PHY) accessors 36 tristate "Allwinner sun4i MDIO interface support" 39 This driver supports the MDIO interface found in the network 44 tristate "APM X-Gene SoC MDIO bus controller" 47 This module provides a driver for the MDIO busses found in the [all …]
|
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 # Makefile for Linux MDIO bus drivers 4 obj-$(CONFIG_OF_MDIO) += of_mdio.o 6 obj-$(CONFIG_MDIO_ASPEED) += mdio-aspeed.o 7 obj-$(CONFIG_MDIO_BCM_IPROC) += mdio-bcm-iproc.o 8 obj-$(CONFIG_MDIO_BCM_UNIMAC) += mdio-bcm-unimac.o 9 obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o 10 obj-$(CONFIG_MDIO_CAVIUM) += mdio-cavium.o 11 obj-$(CONFIG_MDIO_GPIO) += mdio-gpio.o 12 obj-$(CONFIG_MDIO_HISI_FEMAC) += mdio-hisi-femac.o [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/dsa/ |
| D | b53.txt | 6 - compatible: For external switch chips, compatible string must be exactly one 18 "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab" string 21 "brcm,bcm53010-srab" 22 "brcm,bcm53011-srab" 23 "brcm,bcm53012-srab" 24 "brcm,bcm53018-srab" 25 "brcm,bcm53019-srab" and the mandatory "brcm,bcm5301x-srab" string 28 "brcm,bcm11404-srab" 29 "brcm,bcm11407-srab" 30 "brcm,bcm11409-srab" [all …]
|
| /kernel/linux/linux-6.6/include/linux/platform_data/ |
| D | mdio-bcm-unimac.h | 11 #define UNIMAC_MDIO_DRV_NAME "unimac-mdio"
|
| /kernel/linux/linux-5.10/include/linux/platform_data/ |
| D | mdio-bcm-unimac.h | 11 #define UNIMAC_MDIO_DRV_NAME "unimac-mdio"
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/genet/ |
| D | bcmmii.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Broadcom GENET MDIO routines 5 * Copyright (c) 2014-2017 Broadcom 24 #include <linux/platform_data/mdio-bcm-unimac.h> 34 struct phy_device *phydev = dev->phydev; in bcmgenet_mii_setup() 38 if (priv->old_link != phydev->link) { in bcmgenet_mii_setup() 40 priv->old_link = phydev->link; in bcmgenet_mii_setup() 43 if (phydev->link) { in bcmgenet_mii_setup() 45 if (priv->old_speed != phydev->speed) { in bcmgenet_mii_setup() 47 priv->old_speed = phydev->speed; in bcmgenet_mii_setup() [all …]
|
| D | bcmgenet.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2014-2020 Broadcom 23 #include <linux/dma-mapping.h> 51 (TOTAL_DESC - priv->hw_params->rx_queues * priv->hw_params->rx_bds_per_q) 53 (TOTAL_DESC - priv->hw_params->tx_queues * priv->hw_params->tx_bds_per_q) 59 #define WORDS_PER_BD(p) (p->hw_params->words_per_bd) 62 #define GENET_TDMA_REG_OFF (priv->hw_params->tdma_offset + \ 65 #define GENET_RDMA_REG_OFF (priv->hw_params->rdma_offset + \ 74 * peripheral registers for CPU-native byte order. in bcmgenet_writel() 104 * the platform is explicitly configured for 64-bits/LPAE. in dmadesc_set_addr() [all …]
|
| D | bcmgenet.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2014-2020 Broadcom 78 u32 cnt_255; /* RO Rx/Tx 65-255 bytes packet */ 79 u32 cnt_511; /* RO Rx/Tx 256-511 bytes packet */ 80 u32 cnt_1023; /* RO Rx/Tx 512-1023 bytes packet */ 81 u32 cnt_1518; /* RO Rx/Tx 1024-1518 bytes packet */ 82 u32 cnt_mgv; /* RO Rx/Tx 1519-1522 good VLAN packet */ 83 u32 cnt_2047; /* RO Rx/Tx 1522-2047 bytes packet*/ 84 u32 cnt_4095; /* RO Rx/Tx 2048-4095 bytes packet*/ 85 u32 cnt_9216; /* RO Rx/Tx 4096-9216 bytes packet*/ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/genet/ |
| D | bcmmii.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Broadcom GENET MDIO routines 5 * Copyright (c) 2014-2017 Broadcom 24 #include <linux/platform_data/mdio-bcm-unimac.h> 31 struct phy_device *phydev = dev->phydev; in bcmgenet_mac_config() 35 if (phydev->speed == SPEED_1000) in bcmgenet_mac_config() 37 else if (phydev->speed == SPEED_100) in bcmgenet_mac_config() 44 if (phydev->duplex != DUPLEX_FULL) { in bcmgenet_mac_config() 49 if (priv->autoneg_pause) { in bcmgenet_mac_config() 52 if (phydev->autoneg) in bcmgenet_mac_config() [all …]
|
| D | bcmgenet.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2014-2020 Broadcom 19 #include "../unimac.h" 80 u32 cnt_255; /* RO Rx/Tx 65-255 bytes packet */ 81 u32 cnt_511; /* RO Rx/Tx 256-511 bytes packet */ 82 u32 cnt_1023; /* RO Rx/Tx 512-1023 bytes packet */ 83 u32 cnt_1518; /* RO Rx/Tx 1024-1518 bytes packet */ 84 u32 cnt_mgv; /* RO Rx/Tx 1519-1522 good VLAN packet */ 85 u32 cnt_2047; /* RO Rx/Tx 1522-2047 bytes packet*/ 86 u32 cnt_4095; /* RO Rx/Tx 2048-4095 bytes packet*/ [all …]
|
| D | bcmgenet.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2014-2020 Broadcom 23 #include <linux/dma-mapping.h> 51 (TOTAL_DESC - priv->hw_params->rx_queues * priv->hw_params->rx_bds_per_q) 53 (TOTAL_DESC - priv->hw_params->tx_queues * priv->hw_params->tx_bds_per_q) 59 #define WORDS_PER_BD(p) (p->hw_params->words_per_bd) 62 #define GENET_TDMA_REG_OFF (priv->hw_params->tdma_offset + \ 65 #define GENET_RDMA_REG_OFF (priv->hw_params->rdma_offset + \ 74 * peripheral registers for CPU-native byte order. in bcmgenet_writel() 104 * the platform is explicitly configured for 64-bits/LPAE. in dmadesc_set_addr() [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/broadcom/bcmbca/ |
| D | bcm4908.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 #include <dt-bindings/interrupt-controller/irq.h> 4 #include <dt-bindings/interrupt-controller/arm-gic.h> 5 #include <dt-bindings/phy/phy.h> 6 #include <dt-bindings/soc/bcm-pmb.h> 8 /dts-v1/; 11 interrupt-parent = <&gic>; 13 #address-cells = <2>; 14 #size-cells = <2>; 21 stdout-path = "serial0:115200n8"; [all …]
|
| /kernel/linux/linux-5.10/drivers/net/dsa/ |
| D | bcm_sf2.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 41 for (port = 0; port < ds->num_ports; port++) { in bcm_sf2_num_active_ports() 44 if (priv->port_sts[port].enabled) in bcm_sf2_num_active_ports() 65 if (ports_active == 0 || !priv->clk_mdiv) in bcm_sf2_recalc_clock() 74 new_rate = rate_table[ports_active - 1]; in bcm_sf2_recalc_clock() 75 clk_set_rate(priv->clk_mdiv, new_rate); in bcm_sf2_recalc_clock() 108 if (priv->type == BCM7445_DEVICE_ID) in bcm_sf2_imp_setup() 130 priv->port_sts[port].enabled = true; in bcm_sf2_imp_setup() 154 /* Use PHY-driven LED signaling */ in bcm_sf2_gphy_enable_set() 216 priv->port_sts[port].enabled = true; in bcm_sf2_port_setup() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/phy/ |
| D | broadcom.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 #include "bcm-phy-lib.h" 21 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask) 24 ((phydev)->drv->phy_id & ~((phydev)->drv->phy_id_mask)) 37 if (phydev->interface == PHY_INTERFACE_MODE_RGMII || in bcm54xx_config_clock_delay() 38 phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID) { in bcm54xx_config_clock_delay() 39 /* Disable RGMII RXC-RXD skew */ in bcm54xx_config_clock_delay() 42 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID || in bcm54xx_config_clock_delay() 43 phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID) { in bcm54xx_config_clock_delay() 44 /* Enable RGMII RXC-RXD skew */ in bcm54xx_config_clock_delay() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/dsa/ |
| D | bcm_sf2.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 37 switch (priv->type) { in bcm_sf2_reg_rgmii_cntrl() 76 switch (priv->type) { in bcm_sf2_reg_led_base() 99 switch (priv->type) { in bcm_sf2_port_override_offset() 108 WARN_ONCE(1, "Unsupported device: %d\n", priv->type); in bcm_sf2_port_override_offset() 121 for (port = 0; port < ds->num_ports; port++) { in bcm_sf2_num_active_ports() 124 if (priv->port_sts[port].enabled) in bcm_sf2_num_active_ports() 145 if (ports_active == 0 || !priv->clk_mdiv) in bcm_sf2_recalc_clock() 154 new_rate = rate_table[ports_active - 1]; in bcm_sf2_recalc_clock() 155 clk_set_rate(priv->clk_mdiv, new_rate); in bcm_sf2_recalc_clock() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/phy/ |
| D | broadcom.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 #include "bcm-phy-lib.h" 25 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask) 28 ((phydev)->drv->phy_id & ~((phydev)->drv->phy_id_mask)) 43 struct bcm54xx_phy_priv *priv = phydev->priv; in bcm54xx_phy_can_wakeup() 45 return phy_interrupt_is_valid(phydev) || priv->wake_irq >= 0; in bcm54xx_phy_can_wakeup() 55 if (phydev->interface == PHY_INTERFACE_MODE_RGMII || in bcm54xx_config_clock_delay() 56 phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID) { in bcm54xx_config_clock_delay() 57 /* Disable RGMII RXC-RXD skew */ in bcm54xx_config_clock_delay() 60 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID || in bcm54xx_config_clock_delay() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/asp2/ |
| D | bcmasp.c | 1 // SPDX-License-Identifier: GPL-2.0 25 priv->irq_mask &= ~mask; in _intr2_mask_clear() 31 priv->irq_mask |= mask; in _intr2_mask_set() 36 struct bcmasp_priv *priv = intf->parent; in bcmasp_enable_tx_irq() 39 _intr2_mask_clear(priv, ASP_INTR2_TX_DESC(intf->channel)); in bcmasp_enable_tx_irq() 41 _intr2_mask_set(priv, ASP_INTR2_TX_DESC(intf->channel)); in bcmasp_enable_tx_irq() 47 struct bcmasp_priv *priv = intf->parent; in bcmasp_enable_rx_irq() 50 _intr2_mask_clear(priv, ASP_INTR2_RX_ECH(intf->channel)); in bcmasp_enable_rx_irq() 52 _intr2_mask_set(priv, ASP_INTR2_RX_ECH(intf->channel)); in bcmasp_enable_rx_irq() 59 priv->irq_mask = 0xffffffff; in bcmasp_intr2_mask_set_all() [all …]
|