Re: [PATCH net-next v5 4/9] dt-bindings: mfd: Add SoC-e SWIP parent

From: Vasilij Strassheim

Date: Mon Nov 23 2026 - 12:59:55 EST


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";

>
> Best regards,
> Krzysztof
>
Many Thanks!
Vasilij