net: mdio: Add BCM6368 MDIO mux bus controller
Subsystems (4)
v2 cover net: mdio: Add BCM6368 MDIO mux bus controller
This controller is present on BCM6318, BCM6328, BCM6362, BCM6368 and BCM63268 SoCs.
v2: add changes suggested by Andrew Lunn and Jakub Kicinski.
Álvaro Fernández Rojas (2):
dt-bindings: net: Add bcm6368-mdio-mux bindings
net: mdio: Add BCM6368 MDIO mux bus controller
.../bindings/net/brcm,bcm6368-mdio-mux.yaml | 76 ++++++++ drivers/net/mdio/Kconfig | 11 ++ drivers/net/mdio/Makefile | 1 + drivers/net/mdio/mdio-mux-bcm6368.c | 183 ++++++++++++++++++ 4 files changed, 271 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm6368-mdio-mux.yaml create mode 100644 drivers/net/mdio/mdio-mux-bcm6368.c
Signature · 1 line
2.20.1
PATCH v2 1/2 dt-bindings: net: Add bcm6368-mdio-mux bindings
Add documentations for bcm6368 mdio mux driver.
---
v2: remove unneeded clocks property
.../bindings/net/brcm,bcm6368-mdio-mux.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm6368-mdio-mux.yaml
Documentation/devicetree/bindings/net/brcm,bcm6368-mdio-mux.yaml new file +76 -0
@@ -0,0 +1,76 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/brcm,bcm6368-mdio-mux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM6368 MDIO bus multiplexer + +maintainers: + - Álvaro Fernández Rojas <[email protected]> + +description: + This MDIO bus multiplexer defines buses that could be internal as well as + external to SoCs. When child bus is selected, one needs to select these two + properties as well to generate desired MDIO transaction on appropriate bus. + +allOf: + - $ref: "mdio.yaml#" + +properties: + compatible: + const: brcm,bcm6368-mdio-mux + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +patternProperties: + '^mdio@[0-1]$': + type: object + properties: + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + required: + - reg + - "#address-cells" + - "#size-cells" + +unevaluatedProperties: false + +examples: + - | + mdio0: mdio@10e000b0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm6368-mdio-mux"; + reg = <0x10e000b0 0x6>; + + mdio_int: mdio@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + mdio_ext: mdio@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + };
Signature · 1 line
2.20.1
PATCH v2 2/2 net: mdio: Add BCM6368 MDIO mux bus controller
In reply to Álvaro Fernández RojasThis controller is present on BCM6318, BCM6328, BCM6362, BCM6368 and BCM63268 SoCs.
---
v2: add missing module author, description and license.
drivers/net/mdio/Kconfig | 11 ++ drivers/net/mdio/Makefile | 1 + drivers/net/mdio/mdio-mux-bcm6368.c | 183 ++++++++++++++++++++++++++++ 3 files changed, 195 insertions(+) create mode 100644 drivers/net/mdio/mdio-mux-bcm6368.c
drivers/net/mdio/Kconfig +11 -0
@@ -200,6 +200,17 @@ config MDIO_BUS_MUX_MESON_G12A the amlogic g12a SoC. The multiplexers connects either the external or the internal MDIO bus to the parent bus. +config MDIO_BUS_MUX_BCM6368 + tristate "Broadcom BCM6368 MDIO bus multiplexers" + depends on OF && OF_MDIO && (BMIPS_GENERIC || COMPILE_TEST) + select MDIO_BUS_MUX + default BMIPS_GENERIC + help + This module provides a driver for MDIO bus multiplexers found in + BCM6368 based Broadcom SoCs. This multiplexer connects one of several + child MDIO bus to a parent bus. Buses could be internal as well as + external and selection logic lies inside the same multiplexer. + config MDIO_BUS_MUX_BCM_IPROC tristate "Broadcom iProc based MDIO bus multiplexers" depends on OF && OF_MDIO && (ARCH_BCM_IPROC || COMPILE_TEST)
drivers/net/mdio/Makefile +1 -0
@@ -22,6 +22,7 @@ obj-$(CONFIG_MDIO_THUNDER) += mdio-thunder.o obj-$(CONFIG_MDIO_XGENE) += mdio-xgene.o obj-$(CONFIG_MDIO_BUS_MUX) += mdio-mux.o +obj-$(CONFIG_MDIO_BUS_MUX_BCM6368) += mdio-mux-bcm6368.o obj-$(CONFIG_MDIO_BUS_MUX_BCM_IPROC) += mdio-mux-bcm-iproc.o obj-$(CONFIG_MDIO_BUS_MUX_GPIO) += mdio-mux-gpio.o obj-$(CONFIG_MDIO_BUS_MUX_MESON_G12A) += mdio-mux-meson-g12a.o
drivers/net/mdio/mdio-mux-bcm6368.c new file +184 -0
184 lines not on this page · raw message
Signature · 1 line
2.20.1
This series was applied to netdev/net-next.git (refs/heads/master):
Hello:
This series was applied to netdev/net-next.git (refs/heads/master):
Quoted 10 lines · On Mon, 15 Mar 2021 16:45:26 +0100 you wrote:
This controller is present on BCM6318, BCM6328, BCM6362, BCM6368 and BCM63268 SoCs.
v2: add changes suggested by Andrew Lunn and Jakub Kicinski.
Álvaro Fernández Rojas (2):
dt-bindings: net: Add bcm6368-mdio-mux bindings
net: mdio: Add BCM6368 MDIO mux bus controller[...]
Here is the summary with links:
- [v2,net-next,1/2] dt-bindings: net: Add bcm6368-mdio-mux bindings
https://git.kernel.org/netdev/net-next/c/da6557edb9f3 - [v2,net-next,2/2] net: mdio: Add BCM6368 MDIO mux bus controller https://git.kernel.org/netdev/net-next/c/e239756717b5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html