Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1065476pxm; Wed, 23 Feb 2022 17:12:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsNYr8TWc9DRMX911nr3ov/8I7HFhBED+YchK+HKtD8PC5cWlcNooOQs8BdWzIg7rdZxvo X-Received: by 2002:a17:902:eb8b:b0:14d:7f5b:94e2 with SMTP id q11-20020a170902eb8b00b0014d7f5b94e2mr466626plg.49.1645665151089; Wed, 23 Feb 2022 17:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645665151; cv=none; d=google.com; s=arc-20160816; b=eM68gSUagBAmKFYDaPwgjPwbS9H9frEf+as09vNovmZwrR4LTtZhW5cp6BqmhLLpZd xKgI2LE6WMckHzC7om3wZSqNc5ITgNRWVi7d3xpMDssFfDLIBJ/mUmiZ3YPYCMhM2lnG dbWJKlYZ7x0pv65yHuulnpfLcfbcqHcwQf1fb6RCacO+ygzNdFAZjUGxWoSBQUh8+DQM TYx70T/A5LNRWG97zx5Ga/0crR6Gi9GENFgvVmn3rLHw6Q0hx2TAH10AjDGIfk462zwU z9A1c2fcr+oeR62KMfs+NvKceKxnbBbKcyyFxTRdh8E0q5wsjGF6S3xhb60e6vBODt3B ai0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=l65YBP0/Ao5VqwBl6JqRspKSljrEgHu0Gb3hdhIP+fk=; b=0oMfneEGxjNbW6hF3WOq328oqkwXJFgyhk4OwgkIEGw2PpecRTZlD9qYLm41KQFiQJ qDeWmCfxJfZEb5e7vmpX/uvCsrNG+Vp7HXasEW7kGafUJehIbRusopu23GfFkUXDragz gn0++RuZLeqX70m3UdCfD7td1rZDB0SPNy/yupUVIVSWy+v05Wyi8T4SubNBmLxF1Hvy njnCxGSxSlF75rS/nspkFj8Uop/Ns+D9O4ftnUXbVpxwwWlbTLudav9xCc5MG131ipfp 597OlAdaIBE6tBAsmxxFzEOqrNNpMM7e/Up/nBazqA8/WnGyf2LGn9uqgnWywF+59DlC 2Fdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EHF8GZ43; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d23si1026310plr.301.2022.02.23.17.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:12:31 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EHF8GZ43; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9803215D3B8; Wed, 23 Feb 2022 16:59:22 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240472AbiBWMcW (ORCPT + 99 others); Wed, 23 Feb 2022 07:32:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231575AbiBWMcU (ORCPT ); Wed, 23 Feb 2022 07:32:20 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EB4989CCD; Wed, 23 Feb 2022 04:31:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=l65YBP0/Ao5VqwBl6JqRspKSljrEgHu0Gb3hdhIP+fk=; b=EHF8GZ43BfeA3j4U/oSe40Zu66 8FI5J/s9exDY25bMTZfaUNgz0Fm7vZm+/d2NfBWBSXaisVDLi2qV0Du2/tfbXFitf1NMGz2ioj7ha nH5wntdSeV97wxL6spnxYbqWdOyeXWpZcHUsz2vIlfPe7xpcBucYtMjtdMKSgn6Hw4EA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nMqo0-007n0F-72; Wed, 23 Feb 2022 13:31:40 +0100 Date: Wed, 23 Feb 2022 13:31:40 +0100 From: Andrew Lunn To: Hans de Goede Cc: Andy Shevchenko , =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J . Wysocki" , Wolfram Sang , Peter Rosin , Russell King , Heiner Kallweit , "David S . Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-i2c@vger.kernel.org, netdev@vger.kernel.org, Thomas Petazzoni , Alexandre Belloni Subject: Re: [RFC 10/10] net: sfp: add support for fwnode Message-ID: References: <20220221162652.103834-1-clement.leger@bootlin.com> <20220221162652.103834-11-clement.leger@bootlin.com> <20220222142513.026ad98c@fixe.home> <888f9f1a-ca5a-1250-1423-6c012ec773e2@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <888f9f1a-ca5a-1250-1423-6c012ec773e2@redhat.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > If I understand this series correctly then this is about a PCI-E card > which has an I2C controller on the card and behind that I2C-controller > there are a couple if I2C muxes + I2C clients. They are not i2c clients in the normal sense. The i2c bus connects to an SFP cage. You can hot plug different sort of network modules into the cage. So for example fibre optic modules or copper modules. The modules have an 'at24' like block of memory, which is a mix of EEPROM and status values. For copper modules, there is an MDIO over I2C protocol which allows access to the Copper Ethernet PHY inside the module. The current device tree binding is that you have a node for the SFP cage, which includes a phandle to the i2c bus, plus a list of GPIOs connected to pins on the SFP cage. The SFP driver will then directly access the memory, maybe instantiate an mdio-over-i2c device if needed, and control the GPIOs. The Ethernet driver then has an OF node with a phandle pointing to the SFP device. The whole design of this is based around the hardware being a collection of standard parts, i2c bus, i2c mux, gpio controller, ethernet controller, each with their own driver as part of a linux subsystem, and then having some glue to put all the parts together. And at the moment, that glue is DT. > Note the above all relies on my interpretation of this patch set, > which may be wrong, since as said the patch-set does seem to be > lacking when it comes to documentation / motivation of the patches. I think some examples from DT will help with this. Andrew