From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80154352F9B for ; Wed, 4 Mar 2026 16:15:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772640903; cv=none; b=fE0ng8spbcUujAq0QGheZaMbpZlzgpLSrhbOVP2KNHXrQ3s/U6G2J/JE0Tugvdrgf6eao10tZ6Apt7FH6VQGf/oo5IujlaXZP+xVlT8BQi7y1kCKVy333Rj17fSc2qwqaRmHqqGAc4PuWW8J8zLkW10vIc3NY+mQEawOjhM/w7I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772640903; c=relaxed/simple; bh=jwbDEATg8fW9vDaRDhRzDHXH7o9vAPHP/aATjZNU17s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E2lu1My0H5bVR4775il6KkxuotqMKOTzhPpnaZjye3mk1U8+SO2naDjhMK4m76YkYbjdkr0OF/7d/QTSx9CtOacDWfo/3bhy+nBlAfiT36mu+y9Mx4JnDaJsUltqZxnWl4t+6idHArDToCLTLWFaw0ILJrqjqL96HyJDHbSPKAQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DkQaVkAT; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DkQaVkAT" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-439b7d4a843so249938f8f.3 for ; Wed, 04 Mar 2026 08:15:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772640901; x=1773245701; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=te21XJbMFTrGPZV/E8Xfa+RlFYp/4cGGtQTDWYMXpZ0=; b=DkQaVkAT/r90BXfqvwqwNKmpWcaLeOG31JWL1M/jmsr3PHdR++GKGnP/fXoiI3s/cY BEehehNkrNmAcLUeKxYWqcHe3wXfDoWN2VmM3MY6iemaaG6cwpb7/3XikFcME8NtNYGR 9Ws5LB1MqehvegXpmDSpmZ2rvug1frJOBp7FOQx3hA9BhAXGIPCtj+it+pqgpplGlIZL VhE8EoYyriwEIsgRnUS66Z/YLW0LQnkyvOBSVx4DR/dRFsxKnL7Vxcu6y8+frV6cDCi+ d4lGoDdFkFkX3wxOk+9NmaX+ZBvgk1QF5bWaN9CMZJ96dSI+E7ArWpNhBlwdKiJHVgkm C7BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772640901; x=1773245701; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=te21XJbMFTrGPZV/E8Xfa+RlFYp/4cGGtQTDWYMXpZ0=; b=NR/b+Ug567yR6vY18n97B7NeI7Tu6PSlsaNG4qkIfIPyO7aC7+3lm4RuYq+2CZI80C G1qt7+nodsipZ6OK9ByyoEh8Yx+OPXr56B8/aP3Cr919qxmL5zCJKf9cLf/nMPwpooBI uivM7ZXzG5nPTC2mz/oMhEKKimAN+iIcnIYN4G6/qoRfLys2WqPuJVADtz3HPLgYGof9 MfP2Et/MlXkYoN00+pWlGCigG8/SOif/5hSm9ccM/s08NWYjaJS9g2u1pzy5QPKOqEjO 2Zh45BhvMr4O3xg3UP5SZoEvmkKqbfzbUzrfV4FGW/82DxuwsDbeNIWucagDOss1R+h7 W3Nw== X-Forwarded-Encrypted: i=1; AJvYcCVFw01U2GX7gDuIDpSzfDg2SCVqU9iPrG+FmukDt1JiXDaHDzhVCRJqEtvkjgZmF7NVIp/UBfc=@vger.kernel.org X-Gm-Message-State: AOJu0Yxvmn7virvF8+Qugj//Km6Ps+NGM99VnAL/KMzr7RwpSWb9QQci UhAlTaPywIV+zyOpcn29WPPOvQoabeyjFeRWExF4hBg1GJzJcGVkO23/ X-Gm-Gg: ATEYQzw4lGGeeaB/uk7QJuCEpZPrNneBlyZ53eR5GOxz4TaX5elN9F9P2XhVbKBsaTY SVj9ZHaGFq9rdqIv7nAV+fV/uqUlGygrFkVc25mVF+6fOBkgJNuacPl0MDpATsomHa0Kt7/mpbk hHybtkHrpVSukIkxX6ainuppeS/OqtVXQDjmgovi6AMyl3EdScTdBB9Ye8NjUMFfaEJGiSjPTAD ffI9JkpOCiuY9wdjDYxaEU/+0rmPdQdFnHNcHtWZdpldRQbRKsvUM6GInU9os/ZzuXhL37sBaFB MYWgf0N1RTbOHqMC/xGQzSPs0yNeZjyndt5Q3/JtHU9ntojFLng6VwyTFq8nRHuJZmpKD8YVsWX l7c59FihcRqrdbOZGNopqYYgggmwl2+S7U1eM6UzsXh8KirjZtAoYIOufAB0JXg5ksbpBWu7pIK B5AHZiZvH+sJ4MZ9I= X-Received: by 2002:a05:600c:a07:b0:477:7bd8:8f2d with SMTP id 5b1f17b1804b1-4851988f040mr29274045e9.8.1772640900632; Wed, 04 Mar 2026 08:15:00 -0800 (PST) Received: from skbuf ([2a02:2f04:d00e:3600:3896:e6f1:29a3:961b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4851881264fsm56343555e9.14.2026.03.04.08.14.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2026 08:15:00 -0800 (PST) Date: Wed, 4 Mar 2026 18:14:57 +0200 From: Vladimir Oltean To: Jens Emil Schulz Ostergaard Cc: Conor Dooley , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Woojung Huh , Russell King , Steen Hegelund , Daniel Machon , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH net-next 2/8] dt-bindings: net: lan9645x: add LAN9645X switch bindings Message-ID: <20260304161457.l6tkxix6sgube3qc@skbuf> References: <20260303-dsa_lan9645x_switch_driver_base-v1-0-bff8ca1396f5@microchip.com> <20260303-dsa_lan9645x_switch_driver_base-v1-2-bff8ca1396f5@microchip.com> <20260303-disperser-clone-512efa99f26c@spud> <65fd5f46f1f996dd5f4df2de2efb52c8fa3575b3.camel@microchip.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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <65fd5f46f1f996dd5f4df2de2efb52c8fa3575b3.camel@microchip.com> On Wed, Mar 04, 2026 at 05:10:11PM +0100, Jens Emil Schulz Ostergaard wrote: > On Tue, 2026-03-03 at 18:56 +0000, Conor Dooley wrote: > > On Tue, Mar 03, 2026 at 01:22:28PM +0100, Jens Emil Schulz Østergaard wrote: > > > +examples: > > > + - | > > > + soc { > > > + #address-cells = <1>; > > > + #size-cells = <0>; > > > + > > > + ethernet-switch@0 { > > > + reg = <0>; > > > > Also, this is an odd example, why are you at address 0 on a "soc" bus, > > which usually means that this device on an AXI/AHB bus, and 0 is very > > unusual for that. Obviously the example doesn't have to match the real > > user, but this stands out. > > I may have some follow up questions I think depending on your answer. > > The intended way to bind this driver is via a parent MFD driver which sets > up the SPI register protocol, initiates regmaps and distributes them to child > devices (like this DSA driver). > > Similar to mscc,vsc7512 in drivers/mfd/ocelot-spi.c. > > This MFD would be the soc node. All child nodes perform register IO over > spi, using the regmaps requested from this parent so I think the addresses > on the bus are purely ornamental. Should I write the smallest register > address in all regions used by the DSA driver instead? They are not ornamental, they should be the same addresses you'd put if Linux had direct access to the SoC interconnect for MMIO, rather than to an SPI bridge to the SoC interconnect. Or at least I don't see why it wouldn't be that way.