Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1076617pxm; Wed, 23 Feb 2022 17:30:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4lKM1iCAK7MnFrIYNamc7WoCp8yzwOp1FP36Nr0fzo1D4ESKiMhbXaKLIqGM4GRC8ZLnz X-Received: by 2002:a63:2fc1:0:b0:374:9f30:9559 with SMTP id v184-20020a632fc1000000b003749f309559mr452491pgv.278.1645666239834; Wed, 23 Feb 2022 17:30:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645666239; cv=none; d=google.com; s=arc-20160816; b=IhohFTITKhNwLyJNeJKUDepJOCwDWhGqC7y3XTUtxnQdFf6uJ23bqrhmODFdgYZ9wP 39/e6mH7DRI6le8vrlRMq+ZS39xaZ9JL2ypd1+VfNutjG/+eFsbcC69WT6uyf3hhX04K 1r10jKd2nZyUIqnSNuB9RjIC+oZbKj+7kD8hfS5OxheQHFjikDyYB3HnrFRjbFK3lKMi occ2tjniAkJ1KnaSzGSBml8TNmgv9Cid3LgnmccpERZf567qxDkCN/MnigPfP3L8Z4pl 7nVN0TU+jfs9Y7Pwq7aWJ/ajhVhd3xxdgrGtoJY5W+U18z6YjxHHBRi/xi501948m/Q4 ap/A== 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=Y3cPCCzqUPIPn9nEmJpNNgtEll+qnNIz/bFbYhrBaUY=; b=zZdTRy3NfF49qKHruEiRSIC4CO/fItDH9vnwa07b2ugLJwNj3rNLbzt4eHJGp+KRNt lK0syzJjyaCLFr8kU+WfxsUKA/7gbOA43O/xnRwmxtqAd/lITNfplP2wN92NBH/i59bf 7pkOKTY6uLfn7bJaonPYu4xGIhAp6yHNfg+rggK9Cf+vIcu3w6az+y6AR4HNP4/pkgS4 GMqmc+j2vWaN4YYEF+Lklz7+EKLKKrGS4f4YyE3HP6MUUlDcTQtArYBmsq/3a65QQmYG rGVH4hWs2IC23EDddnSaNnl5Uhxt13Qc7L7Ztvc2cqFJKiCv/IGuHb6Ai8ioN2WSZCfw HVAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=FaagR1m7; 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 pj14si1097609pjb.63.2022.02.23.17.30.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:30:39 -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=FaagR1m7; 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 637A3268359; Wed, 23 Feb 2022 17:11:15 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239896AbiBWPYc (ORCPT + 99 others); Wed, 23 Feb 2022 10:24:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238086AbiBWPYa (ORCPT ); Wed, 23 Feb 2022 10:24:30 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4168E1EEC1; Wed, 23 Feb 2022 07:24:01 -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=Y3cPCCzqUPIPn9nEmJpNNgtEll+qnNIz/bFbYhrBaUY=; b=FaagR1m7eCvnv/6xMnWjMyHqo/ clGiZt6ku58JEvcgzGplpmXyGZ/5hkAE9aE3bbR833M7dXWsZ2KiblzR1BZSLjuKkhhxWtvW6LaX/ Ktt0VCqbl/CdofQQ/dh0p+rT2WH3WiCEap5xEp/WffLogRvxAnx/gE7bYZg5zIYX4Se8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nMtUY-007oY2-4B; Wed, 23 Feb 2022 16:23:46 +0100 Date: Wed, 23 Feb 2022 16:23:46 +0100 From: Andrew Lunn To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= Cc: Hans de Goede , "Russell King (Oracle)" , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J . Wysocki" , Wolfram Sang , Peter Rosin , 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> <4d611fe8-b82a-1709-507a-56be94263688@redhat.com> <20220223151436.4798e5ad@fixe.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220223151436.4798e5ad@fixe.home> 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 > As Russell asked, I'm also really interested if someone has a solution > to reuse device-tree description (overlays ?) to describe such > hardware. However, the fact that CONFIG_OF isn't enabled on x86 config > seems a bit complicated on this side. It does work, intel even used it for one of there tiny x86 SoCs. Maybe it was Newton? If you search around you can find maybe a Linux Plumbers presentation about DT and x86. You can probably use a udev rule, triggered by the PCIe device ID to load the DT overlay. Do you actually need anything from the host other than PCIe? It sounds like this card is pretty self contained, so you won't need phandles pointing to the host i2c bus, or the hosts GPIOs? You only need phandles to your own i2c bus, your own GPIOs? That will make the overlay much simpler. Andrew