From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796207209; b=M+pcz9GU9YI6jMruXfiPFuEayKNij25rVNA7C9Se0A04UdE3btP14ARCqiwIQ7A+MBRB oAblSSCjNDthafUE3X+SW83etcAZNS5kUmqe2ok8yOrIS+XQetjOp8MPxpVKFRnaQcHzx IYytbNTWGccnvJ3Q8JeZRpAT3pPZfvIlYYTkMgHDQ88Sczppdpe5HXZpeN1PfioDAc3WW kH9Gq40f8NgH7qYIPVuQD4KNwr7FAYGQIhsUUHogyVsHFFdb2E8IfgmeHPeaHLqDtyfcj j+/iI+CqOMReMwMjpXfJ39j4fUrfilHzvwnC2qGj/yJd0WJtuonM4ypU/qWPCOtAPXQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796207209; h=DMARC-Filter:Date:DKIM-Signature:DKIM-Signature:From:To:Cc:Subject: Message-ID:In-Reply-To:References:Organization:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=odtDkPPK7b6RZZnrPLVWGzUAY5P3mY4m3lU9XPKv+6o=; b=sp5kMWPDogBDTMcx3ljf/X5cKYAM9IVZ9tkqJQ3zePlnCGiW2aJq+izHwSf8NN6754VX ZeTmzz4N7jEnBQ6nx3eMbKHVmZZnHhvPqfg4NcnsLcjkIR0Js9rf8ueoO987m7R2Zjb2g XVxHWDA3vpIMwVjwKEBVM0uwEQq6/cweHDnSp8r3LQP82exda5ieHMNJ3mw4QziEZIRAM B8ox1ZOQ0tSygsQOVkUQFbFlO130UYxt/uI2w650Vp2ROn1z3NGv6hnk7BwvH1qcjNFbt h3y04iNFOvK40n77Ors3ltYnNggqdWQOXfTKgQfPA3YuTtF/YLkXKjJmv9T9MYfLScw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=KEeaYU14; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b="4/p1hiNS"; arc=none smtp.remote-ip=193.142.43.55 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62D2F606A322; Wed, 2 Dec 2026 10:26:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 62D2F606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=KEeaYU14; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=4/p1hiNS Date: Wed, 2 Dec 2026 11:26:44 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1796207205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=odtDkPPK7b6RZZnrPLVWGzUAY5P3mY4m3lU9XPKv+6o=; b=KEeaYU14H2BJr8TU9bZKgwNpv/vv0ysUpqglXQ3Z8PByyAWY+znlIS7BIKSfzO6fNX2N03 PWDrb+sa3XFeVxLX7jG3D31AChpoQKa+UrMHciKxwIxYejaEczCwQyS6XgcjQDh/eEJli1 sDS6m5WsPTIh90gihmNLbS9KJc7JJ7paT/FuMfS40y6LptEzqsfOC/aELa2n4CBncVpdLr d8Pvg2NxXn3aHLdQf6jLcWJnGTuwGBdMcltfJcv6uRjOgmm5aB4PaSSWVWcgRltLH11BdF JnNX8vmvI9Ic8pQWBMANMBJfIox6pGIOV3h8GGPZm8vgkANBfOp07Zgd5mdTaA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1796207205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=odtDkPPK7b6RZZnrPLVWGzUAY5P3mY4m3lU9XPKv+6o=; b=4/p1hiNSMrrYhziVSZ8uDXaoGCXXCoOiarCzltYuvYps5Z5v74PHABz4pdOBoA0YnJ0lKY ByHWNnF35VbRSJAg== From: Benedikt Spranger To: Rob Herring Cc: Vasilij Strassheim , Krzysztof Kozlowski , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Simon Horman , Russell King , Andrew Lunn , Heiner Kallweit , Eric Dumazet , Lee Jones , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, mfd@lists.linux.dev, Martin Kaistra Subject: Re: [PATCH net-next v5 4/9] dt-bindings: mfd: Add SoC-e SWIP parent Message-ID: <20261202112644.483fd845@mitra> In-Reply-To: <20261201224803.GA3882869-robh@kernel.org> References: <20261120-devel-vstrassheim-soce-dsa-ml-v5-0-5de9225715e6@linutronix.de> <20261120-devel-vstrassheim-soce-dsa-ml-v5-4-5de9225715e6@linutronix.de> <20261121-lurking-bulky-crab-b9619f@quoll> <4d56bd92d27429c3ac2cbcefac74c0327b3b3af8.camel@linutronix.de> <20261201224803.GA3882869-robh@kernel.org> Organization: Linutronix GmbH X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 1 Dec 2026 16:48:03 -0600 Rob Herring 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