From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0629CC369AB for ; Fri, 18 Apr 2025 09:06:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1LODpW59RyDH7h3ZIvqn9KHid7mkClVKSG/86SmQNPw=; b=a0i62lFsZhNdLbXtmNbYhc4KNb W/S+vXHArygoqQpeZF2MFdMi5loay4lcKax6uy9XR5nejZjL5R0Lej6xkaDgoN8obLFqYv/Y4jJIi 1gQY/WH+KHHecL0e38izTQsBfWUsJeUZjWXJkflwOl4vM+ZIdruN7Syf7XAGpo71bxqQLwRHLHXZG brAa+QcMD0ltTwtpKYy5qqlEgmK9rvEHJPiH1Iz5qUe5v4VHpRufWX2FPCGmam++Awbhwe+MRyfba jnUskcQeyzeNrYQf5nq0cmQOm8uQw5PCeJOtFPwF55OJ3cpFGQTOv1jXVJYR+P1Y7D9KMU5Cu3PL4 HIzFTqZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u5hfV-0000000FiGc-28Za; Fri, 18 Apr 2025 09:05:53 +0000 Received: from mx.denx.de ([2a03:4000:64:cc:545d:19ff:fe05:8172]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u5hbC-0000000FhVb-1KRO for linux-arm-kernel@lists.infradead.org; Fri, 18 Apr 2025 09:01:27 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CC642102E6336; Fri, 18 Apr 2025 11:01:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=mx-20241105; t=1744966883; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=1LODpW59RyDH7h3ZIvqn9KHid7mkClVKSG/86SmQNPw=; b=Otj7vOEpjjF7gWOeUvYT1YhAkKogTqAUbZdCbz62wihYTh0G1+htCizqDjtD5l/wA6yWZw i+Lm8tgSc5pSWuiQF3ZQgNltEVT5zIBdXPyJA7Af+K95AU9E9/ASQowpQCQ58SS1GJXH9T 8qWnFlvHL6xy9H/OC8+QM/w/qKzt3jjhf17x9ll2ZUy5vTekLuTo465TaCratUX2C3Ziqf y/MkDqzka0RKet4E8beVgWdCL9lr1qLfB/1ZGMdplySu0yj2LGrkbVh5QQ8DpQt/+K1ZxW SDWxHoE+sGX9OyxdC2rZHHzgF/FDlNtayIw+NvLxrs5CAI9pzTLPG0pkrm3LYw== Date: Fri, 18 Apr 2025 11:01:16 +0200 From: Lukasz Majewski To: Stefan Wahren Cc: Andrew Lunn , davem@davemloft.net, Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Richard Cochran , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Simon Horman Subject: Re: [net-next v6 1/7] dt-bindings: net: Add MTIP L2 switch description Message-ID: <20250418110116.6179d8b5@wsk> In-Reply-To: References: <20250418060716.3498031-1-lukma@denx.de> <20250418060716.3498031-2-lukma@denx.de> Organization: denx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/7vFZWx1R8BN07Jfliry9yAD"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250418_020126_661639_3C940051 X-CRM114-Status: GOOD ( 28.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --Sig_/7vFZWx1R8BN07Jfliry9yAD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Stefan, > Am 18.04.25 um 08:07 schrieb Lukasz Majewski: > > This patch provides description of the MTIP L2 switch available in > > some NXP's SOCs - e.g. imx287. > > > > Signed-off-by: Lukasz Majewski > > --- > > Changes for v2: > > - Rename the file to match exactly the compatible > > (nxp,imx287-mtip-switch) > > > > Changes for v3: > > - Remove '-' from const:'nxp,imx287-mtip-switch' > > - Use '^port@[12]+$' for port patternProperties > > - Drop status =3D "okay"; > > - Provide proper indentation for 'example' binding (replace 8 > > spaces with 4 spaces) > > - Remove smsc,disable-energy-detect; property > > - Remove interrupt-parent and interrupts properties as not required > > - Remove #address-cells and #size-cells from required properties > > check > > - remove description from reg: > > - Add $ref: ethernet-switch.yaml# > > > > Changes for v4: > > - Use $ref: ethernet-switch.yaml#/$defs/ethernet-ports and remove > > already referenced properties > > - Rename file to nxp,imx28-mtip-switch.yaml > > > > Changes for v5: > > - Provide proper description for 'ethernet-port' node > > > > Changes for v6: > > - Proper usage of > > $ref: > > ethernet-switch.yaml#/$defs/ethernet-ports/patternProperties when > > specifying the 'ethernet-ports' property > > - Add description and check for interrupt-names property > > --- > > .../bindings/net/nxp,imx28-mtip-switch.yaml | 148 > > ++++++++++++++++++ 1 file changed, 148 insertions(+) > > create mode 100644 > > Documentation/devicetree/bindings/net/nxp,imx28-mtip-switch.yaml > > > > diff --git > > a/Documentation/devicetree/bindings/net/nxp,imx28-mtip-switch.yaml > > b/Documentation/devicetree/bindings/net/nxp,imx28-mtip-switch.yaml > > new file mode 100644 index 000000000000..3e2d724074d5 --- /dev/null > > +++ > > b/Documentation/devicetree/bindings/net/nxp,imx28-mtip-switch.yaml > > @@ -0,0 +1,148 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR > > BSD-2-Clause) +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/net/nxp,imx28-mtip-switch.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: NXP SoC Ethernet Switch Controller (L2 MoreThanIP switch) > > + > > +maintainers: > > + - Lukasz Majewski > > + > > +description: > > + The 2-port switch ethernet subsystem provides ethernet packet > > (L2) > > + communication and can be configured as an ethernet switch. It > > provides the > > + reduced media independent interface (RMII), the management data > > input > > + output (MDIO) for physical layer device (PHY) management. > > + > > +properties: > > + compatible: > > + const: nxp,imx28-mtip-switch > > + > > + reg: > > + maxItems: 1 > > + > > + phy-supply: > > + description: > > + Regulator that powers Ethernet PHYs. > > + > > + clocks: > > + items: > > + - description: Register accessing clock > > + - description: Bus access clock > > + - description: Output clock for external device - e.g. PHY > > source clock > > + - description: IEEE1588 timer clock > > + > > + clock-names: > > + items: > > + - const: ipg > > + - const: ahb > > + - const: enet_out > > + - const: ptp > > + > > + interrupts: > > + items: > > + - description: Switch interrupt > > + - description: ENET0 interrupt > > + - description: ENET1 interrupt > > + > > + interrupt-names: > > + items: > > + - const: mtipl2sw =20 > Sorry for nitpicking, but could we name it similiar to something from=20 > the i.MX28 reference manual like "switch" or "enet_switch" I think that "enet_switch" may be OK. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/7vFZWx1R8BN07Jfliry9yAD Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAmgCFNwACgkQAR8vZIA0 zr2puQgAkx2OqWOU6OUJqUpgOxkCPyyhhTyvDgEGBINxAqRunRFKsHsGk3C0lYAA EO1xkhxuaMaN5IwB8G70geq9Dw5xGv5jMqZUaGjMtIz7aKehInA5220pz5uLO+Es qQYwOaQ5yXnK6qq41NbN990K23S3wUPn4rr/B1UifLFpFe1LRM4yA3pKVaYYumVa T8bOyyzzpLVshGJU01x5xmRvg4Za3CaxRGiR0vHS6CjnDCz6zcpRIUdi36oW/22C Cp4XZbAvi+3ckxwmMaRW6wSVpEUMb7GXvQFdT5nIxm82990Lh5JA2drKt5SF49me 95Xspq3uyD4oESdTyNhRYoPY07KRZA== =UHBk -----END PGP SIGNATURE----- --Sig_/7vFZWx1R8BN07Jfliry9yAD--