On Tue, 1 Dec 2026 16:48:03 -0600 Rob Herring <ro…@kernel.org> wrote:
> > I will describe the individual register regions for switch in the > > next version: > > > > reg = <0x0 0x50>, <0xb00 0x1200>, > > <0x3000 0x14>, <0x3200 0x400>; > > reg-names = "global", "switch", "ports", "statistics";
> > I still don't think this is correct. Correct me if I'm wrong, but > your MDIO controller/mux is not a separate h/w block from the switch.
Depends on the definition of "separate". If the question is: "Can I use the MDIO controller standalone?" The answer is yes. On the other hand, the MDIO controller, the switch-IP, the I2C controller, etc. are behind the same address decoder and part of the same FPGA bitstream blob. And these IP blocks can be separately switched on and off by the FPGA build configuration, i.e. they can be compiled in and out. Our goal is to handle the different IPs inside the FPGA by there own to be able to share as many driver code as we can.
> So again, "soce,swip" and "soce,swip-switch-00-04-0c-10" nodes should > be merged. For mdio mux, either it can be a child of the switch or > not in DT at all and instantiated from the switch driver.
OK. We can do that. And the I2C controller, the interrupt controler or the future 507th incarnation of the D-CAN IP, which someone compiled in? To enlighten this: The board we are working with is a PLC. This PLC has an extension bus. There are modules available for this extension bus, like analog IO, digital IO, power measurement, PWM, and also some communication modules. This bus is capable of transporting a CAN signal, so why not add some glue logic and a transceiver in the module? The heavy stuff can be done by putting a D-CAN IP in the FPGA behind the existing addressdecoder. Should that D-CAN IP be part of the switch? Hopefully this example makes clear that we can look at our FPGA like a breadboard. The base part (MFD) simply contains an addressdecoder and some configuration space to detect what is on our breadboard. The "chips" on our breadboard are the different IPs, which can be individually used in that bitstream. Therefore: different "chip" (IP) -> different MFD cell If that is not the intended view on how to deal with this kind of hardware devices, please let us know. Regards Benedikt Spranger