From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C56243F0A7; Wed, 29 Jul 2026 09:08:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.200.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785316088; cv=none; b=ClS37qO16lyZbv5cwajvQ5JyURgEBIOpFEhyo513YBVsybJoRHhFI4N4n+Aj72PIKP4VVidvi9QEt4jdUJn0nF5qJAQE1h4lB/rOmbt1B5mWk5Uyiev+LmMlACiJS2Ef1XllneT2kwSm/wvfARvfIxErlC3gR9bYM+MS/77uvY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785316088; c=relaxed/simple; bh=FeWRkHXQ1svZpi0TsNA8arekpGNLV+TTspmU/cNiMJI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VMUY0wVW9MJnTkT2VUYn1hqXpE1TfHuRrKfDsGl5RQ4xkLNuu6ORIGSDXeAoyGGAHVY2qQ910bkrbHzIBfvvJPcu4RjdSIyMkxd7jsCdXYgV4wHOgX+qaAsFqgi7xmJTe6iFvo3CwsIrk2kXezvvkKCRktQHSNcuWUVXY3IlWWA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.200.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de (drehscheibe.grey.stw.pengutronix.de [IPv6:2a0a:edc0:0:c01:1d::a2]) (Authenticated sender: relay-from-drehscheibe.grey.stw.pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id 5CA29202AEF; Wed, 29 Jul 2026 11:08:04 +0200 (CEST) Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wp0Gi-001rJe-0w; Wed, 29 Jul 2026 11:08:04 +0200 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1wp0Gi-0000000CNmZ-0ibf; Wed, 29 Jul 2026 11:08:04 +0200 Date: Wed, 29 Jul 2026 11:08:04 +0200 From: Oleksij Rempel To: Jonas Jelonek Cc: Kory Maincent , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Golle , =?utf-8?B?QmrDuHJu?= Mork Subject: Re: [PATCH net-next v10 1/4] dt-bindings: net: pse-pd: add bindings for Realtek PSE MCU Message-ID: References: <20260728084307.2129515-1-jelonek.jonas@gmail.com> <20260728084307.2129515-2-jelonek.jonas@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20260728084307.2129515-2-jelonek.jonas@gmail.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain On Tue, Jul 28, 2026 at 08:43:03AM +0000, Jonas Jelonek wrote: > Add a binding for the microcontroller (MCU) that fronts the PSE silicon > on a range of managed Realtek-based switches. The host talks only to the > MCU, over I2C/SMBus or UART, using a fixed message-based protocol; the > PSE chips behind it never appear on the bus. > > The device is the MCU together with its Realtek firmware: the firmware > and its host protocol are what the binding describes, not the > general-purpose microcontroller they run on. The PSE silicon behind the > MCU (Realtek or Broadcom) is reported by the MCU and detected at runtime, > so it is not described here - hence the 'realtek' vendor prefix. > > Two protocol generations exist, both Realtek's, selected by the > compatible: gen1 on older boards (fronting Broadcom PSE silicon) and gen2, > the altered protocol used with Realtek's own PSE silicon. On an I2C > attachment the framing the MCU firmware expects is part of the compatible > as well - '-smbus' or raw '-i2c'; a UART attachment carries no framing > suffix, as the transport is given by the parent serial node. > > Each board additionally carries a device-specific compatible that falls > back to one of the protocol compatibles above. Drivers bind on the > protocol compatible; the device-specific string identifies the board and > reserves a place for a future per-board quirk without having to retrofit > device trees already in the field. > > Signed-off-by: Jonas Jelonek Reviewed-by: Oleksij Rempel -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |