Re: [PATCH net-next v5 4/9] dt-bindings: mfd: Add SoC-e SWIP parent
From: Rob Herring
Date: Tue Dec 01 2026 - 17:48:15 EST
On Mon, Nov 23, 2026 at 06:59:48PM +0100, Vasilij Strassheim wrote:
> On Sat, 2026-11-21 at 11:19 +0100, Krzysztof Kozlowski wrote:
> > On Fri, Nov 20, 2026 at 03:52:21PM +0100, Vasilij Strassheim wrote:
> > > +examples:
> > > + - |
> > > + ip-core@80020000 {
> > > + compatible = "soce,swip";
> > > + reg = <0x80020000 0x10000>;
> > > + ranges = <0x0 0x80020000 0x10000>;
> > > + #address-cells = <1>;
> > > + #size-cells = <1>;
> > > +
> > > + ethernet-switch@0 {
> > > + compatible = "soce,swip-switch-00-04-0c-10";
> > > + reg = <0x0 0x10000>;
> >
> > You have conflicting address spaces - this covers all other children -
> > which suggests this is artificial split of device nodes. Basically
> > comments from last version are valid. If some split of device nodes
> > makes your driver easier, it might be fine, but only under the
> > constraint of proper hardware representation. It's not proper hardware
> > representation anymore.
>
> Yes, there is a conflicting address space here. I used the full IP-core
> range for the switch child as a shortcut, because the switch registers
> are interleaved with register areas belonging to other child functions.
>
> However, that does not properly represent the hardware. Sorry for that.
>
> 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. 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.
Rob