Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp638459rdb; Tue, 23 Jan 2024 10:00:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqo5qLr2EWCV5vFuoR/6v+DEbHwxiN44v+w1k6dWu6DcVrUu8cEKf1qkqSCALDKUwsylqC X-Received: by 2002:a05:6e02:58d:b0:360:ccb2:4323 with SMTP id c13-20020a056e02058d00b00360ccb24323mr250598ils.34.1706032848440; Tue, 23 Jan 2024 10:00:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706032848; cv=pass; d=google.com; s=arc-20160816; b=oNbFhvKe7SjGS84XAbJhV33umOJWdyUOSrJ3uc7Zm0YV3Ae6kSW9604R2lSTybVOAF 895TlL1CaRl1F3Jsrrn82zMaCFRG0K8aPn55wpuxg54zEMPrSdU+NSD+XOTG439AMYpl hfk5a+j+X8tQdwQPQ/yW/ItAHu1Mz4VnQ35Q+9324+m+vLAC5001cJKRbN3U2eOzbh/e V3q9/viTU4zAw/AVAP5Gpd91zx7z2Q3C7EClTsK0oew7aPoWEshOZIZkpjDp76OchA23 5BcpHT+Ayo3No84UQ4FS49X96WYwvfRwZcYB3M83fvRM0hIhJZaWbzmYdUbF4aKHg83u ZePA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=B/2hHzkuQ9wWcKUuhzt5SkH9HMMQlzQD5Ynkq/2Y300=; fh=x46mKBHmKSHexnV73vklVp4Tnumwotw9Lwi/8zpQLPY=; b=UVBhoQHrYFyJoAoqaurlWUtkEZqSNkXNYhK1VzjWalw5QxeXHya4DH7lKoLGm2/Kk3 f6HgEmDp6720S4FjyLJEGQH0OxpLerdVuN/oLX+HI/9V4ph12z2CuIUPWzf5pKdE6pJ5 McwIOEIMjdX5j4cQHVCH3y9zMcvh7WBZkxzMzTvW3w3mPPgZYmo2G/ZCOBnIhMhWTOQ3 SnvAo/RPVzgyskyLfhBYrKl6o0FKEtMF4tk0UiqMNLl8fgudBw5Tc9CdldjQMVXG/QoG nTp6ndD00YfhC2Z0lA1GFKEoc2otp+skklqQmbW1XBLAcV/ca0f+LztHrev/OP/0mVc+ E8Qg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=r3GNIFzq; arc=pass (i=1 spf=pass spfdomain=pschenker.ch dkim=pass dkdomain=pschenker.ch dmarc=pass fromdomain=pschenker.ch); spf=pass (google.com: domain of linux-kernel+bounces-35781-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35781-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=pschenker.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i194-20020a636dcb000000b005cfbf482ca3si6068080pgc.500.2024.01.23.10.00.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 10:00:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35781-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=r3GNIFzq; arc=pass (i=1 spf=pass spfdomain=pschenker.ch dkim=pass dkdomain=pschenker.ch dmarc=pass fromdomain=pschenker.ch); spf=pass (google.com: domain of linux-kernel+bounces-35781-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35781-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=pschenker.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 48E2BB24C4A for ; Tue, 23 Jan 2024 17:30:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FCB68003F; Tue, 23 Jan 2024 17:30:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=pschenker.ch header.i=@pschenker.ch header.b="r3GNIFzq" Received: from smtp-190e.mail.infomaniak.ch (smtp-190e.mail.infomaniak.ch [185.125.25.14]) (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 562F18002F; Tue, 23 Jan 2024 17:30:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.25.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706031024; cv=none; b=gjKSPK9DUnTVEpPhpbltAxgFKwwYHbzok8T31+3zz81WITtyROGgEcaUgvVcGRJjo9VxzDtWKH1smFR5xvnakBezFUdmucsBF0sQRW0VmpA5HVeG1AZ17o1lpiG/txzbeT6GdyT7qV65YDAu6zQ4IZXZiLd4vxP/qQjuul8P4gU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706031024; c=relaxed/simple; bh=B/2hHzkuQ9wWcKUuhzt5SkH9HMMQlzQD5Ynkq/2Y300=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=CpPS8NzItWI4eElOupUN3w3yZOzGUb9qh2276WjXfC96oJvPZbW88lXA64R6dm3Ah6DjLZOQxS7ND03lc12FA+tAoAteeLj11U0iMwtRUS1RROXcfQI3R1TRAnRY13f1VlNlCb98YEnxh1PMhCVXWc1hIa0CcRXc3/raEAnMXRI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pschenker.ch; spf=pass smtp.mailfrom=pschenker.ch; dkim=pass (1024-bit key) header.d=pschenker.ch header.i=@pschenker.ch header.b=r3GNIFzq; arc=none smtp.client-ip=185.125.25.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pschenker.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pschenker.ch Received: from smtp-3-0000.mail.infomaniak.ch (unknown [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4TKDcp0b5TzMpvNJ; Tue, 23 Jan 2024 18:30:18 +0100 (CET) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4TKDcn1hJ8z3Y; Tue, 23 Jan 2024 18:30:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1706031017; bh=B/2hHzkuQ9wWcKUuhzt5SkH9HMMQlzQD5Ynkq/2Y300=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=r3GNIFzq199rrRUz3Q+VVI9tMMH+D+WPkOabnP676ohv2UrLZHWP3jCISbXlvO5cX S2VmIeRjmW1D4Bet8OaC1QJ38m9C9q2MngZ4Xh2ctki/PjbLEuA+mryQalTGWUvduc K22L9YMggk5A/o3EywJ1O5Q6+c5VZ60ExwhACc5Q= Message-ID: <979b1e77b5bb62463d52e7b9d3f9ca1415f4006a.camel@pschenker.ch> Subject: Re: [PATCH net-next v1 1/2] dt-bindings: net: dsa: Add KSZ8567 switch support From: Philippe Schenker To: Conor Dooley Cc: netdev@vger.kernel.org, Paolo Abeni , Conor Dooley , Woojung Huh , Vladimir Oltean , linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, Marek Vasut , Florian Fainelli , devicetree@vger.kernel.org, Eric Dumazet , "David S . Miller" , Krzysztof Kozlowski , Jakub Kicinski , Andrew Lunn , Rob Herring Date: Tue, 23 Jan 2024 18:30:16 +0100 In-Reply-To: <20240123-atlas-dart-7e955e7e24e5@spud> References: <20240123135014.614858-1-dev@pschenker.ch> <20240123-ripening-tabby-b97785375990@spud> <20240123-atlas-dart-7e955e7e24e5@spud> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Infomaniak-Routing: alpha On Tue, 2024-01-23 at 17:23 +0000, Conor Dooley wrote: > On Tue, Jan 23, 2024 at 05:17:53PM +0100, Philippe Schenker wrote: > >=20 > >=20 > > On Tue, 2024-01-23 at 16:06 +0000, Conor Dooley wrote: > > > On Tue, Jan 23, 2024 at 02:50:13PM +0100, Philippe Schenker > > > wrote: > > > > From: Philippe Schenker > > > >=20 > > > > This commit adds the dt-binding for KSZ8567, a robust 7-port > > > > Ethernet switch. The KSZ8567 features two RGMII/MII/RMII > > > > interfaces, > > > > each capable of gigabit speeds, complemented by five 10/100 > > > > Mbps > > > > MAC/PHYs. > > > >=20 > > > > Signed-off-by: Philippe Schenker > > > > > > >=20 > > > This device has all the same constraints as the other ones in > > > this > > > binding, why is it not compatible with any of them? If it isn't, > > > the > > > compatible should mention why it is not. > >=20 > > Hi Conor, Thanks for your message! > >=20 > > I need the compatible to make sure the correct ID of the switch is > > being set in the driver as well as its features. >=20 > Are the features of this switch such that a driver for another ksz > switch would not work (even in a limited capacity) with the 8567? > Things like the register map changing or some feature being removed > are > examples of why it may not work. Yes the ksz dsa driver is made so that it checks the ID of the attached chip and refuses to work if it doesn't match. [1] It is a very similar chip and uses the same regmap as KSZ9567 but with lower phy-speeds on its 5 switch ports. The two upstream CPU ports are gigabit capable. All this information is set-up in the second patch of this series. [2] I will include a description to the second series. Thanks for your feedback. Philippe [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/dri= vers/net/dsa/microchip/ksz_common.c?h=3Dv6.8-rc1#n3181 [2] https://patchwork.kernel.org/project/netdevbpf/patch/20240123135014.614858-= 2-dev@pschenker.ch/ >=20 > > You mean I shall mention the reason in the commit-message, or > > where? >=20 > Yes. >=20 > Thanks, > Conor >=20 > > > > =C2=A0Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml = | > > > > 1 + > > > > =C2=A01 file changed, 1 insertion(+) > > > >=20 > > > > diff --git > > > > a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml > > > > b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml > > > > index c963dc09e8e1..52acc15ebcbf 100644 > > > > --- > > > > a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml > > > > +++ > > > > b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml > > > > @@ -31,6 +31,7 @@ properties: > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - microchip,ksz9893 > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - microchip,ksz9563 > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - microchip,ksz8563 > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - microchip,ksz8567 > > > > =C2=A0 > > > > =C2=A0=C2=A0 reset-gpios: > > > > =C2=A0=C2=A0=C2=A0=C2=A0 description: > > > > --=20 > > > > 2.34.1 > > > >=20