Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4582350pxb; Tue, 22 Feb 2022 01:48:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKIwAYLQg/6UeJrJp8txbdMERTiymnaoaZIyN6irhkWLaVkEyV9iZtZ5UQhB6La4toUCCX X-Received: by 2002:a05:6402:298e:b0:412:fdea:fea1 with SMTP id eq14-20020a056402298e00b00412fdeafea1mr10152049edb.344.1645523337523; Tue, 22 Feb 2022 01:48:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645523337; cv=none; d=google.com; s=arc-20160816; b=yc29lKO1K5ZK3U2Ju0C2jFOj6EWJ/hCjw8IJf4K8iypE5jBovWEBONXVxmh8dUTHoj oBQ45pv58Ae6iDfKoqGFR12X+jnJ7y1wugAXeBEu7ztDM3Lz6heVTO2TSD/ZceXIW/zq +A5C3mOspz1AkDuC70vzbRnoMA9l4CbHaDEVvz9L0qOxmjF/cacbI3vKyuVIU4Imqf/B 1ghhXHZ2okiQjNmA+zcLXzEP3efZ0wnybhLX+aOKbNyvukv9yEQcfIgv/mRvRSEeLGNW WymWkz8tr9UbUvvPr+N+nl1+q58cmfhUSEx9n9OAEVUkzf5n9ynUsE5E/Ey/eGrtMWIv IKdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=W+fmOCb56NZVpaqqf1Z42IP4bJHPnZUVGUrK3OMEjMM=; b=U3LT0itsoyC+Ceb7ZsT2w8yytCTVZV/bui7RjOcoH7bxhfZDMgD0FVSB4zLofXaPBH TvkYt5EoYvjzB+BocVo3QEtmXo6i7j2VdAIIPTOFn0K6gxiETLLnxs2L5n0bpfJwWliA vAvZw2Vx0n3I90feKwJe9382pOUxS4ZWl495R37JvBUSohKQfCzXn9+doryiRQqjccyw 6Y3JsafE29CXShRV1RV4oFU8ZvLaYymlukspbPYchX7LyV1kqpub1V/wVuKj6zqGnDS1 0EVGtL7TvVQ3gBvye/scf7KSFOhEEbzWPlCcYsj032JmCiWpsClAEUVj6OM8VElI6cjd QW8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BQtwwIoz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id er23si10795842edb.607.2022.02.22.01.48.35; Tue, 22 Feb 2022 01:48:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BQtwwIoz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230141AbiBVJV1 (ORCPT + 99 others); Tue, 22 Feb 2022 04:21:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbiBVJVZ (ORCPT ); Tue, 22 Feb 2022 04:21:25 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0EBF149B9F; Tue, 22 Feb 2022 01:21:00 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id c6so32480106edk.12; Tue, 22 Feb 2022 01:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W+fmOCb56NZVpaqqf1Z42IP4bJHPnZUVGUrK3OMEjMM=; b=BQtwwIozKsncjtjtlGVgl9d3JmfLYqaJDPzIBLZ/vVdf9W5lHFcfnaA7VsfNDBMdUV 8UbiaD6LmVR7S5ZmGb71oUZ6+7fRCDfxxntR31v5njPoYkmt2mRf5mL99ZGC/0fx40l9 4kroNisVs8iJWFKcmieBTejfgsSvhhCiPXVTaR5NqQ6Ov2ZrrzFmOdAtcAHQuRIdUI2H fu61aYcfzPTSoycavPl6HMAWN0pxZMeIpIXjGZIucJJaYkMiRl9ukexON9aEBBQFcFTJ gNyrSJS/b/J4wRBvDaPGcDGbW9PmLTEZyVqEHR+v43546oV1yksOqiVcsuxwzPXo0SPw Wbaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W+fmOCb56NZVpaqqf1Z42IP4bJHPnZUVGUrK3OMEjMM=; b=XmQHWCg5O9rqlzaFah1rwVYQ7JKSVA6la52edY7lxbVrX0clefSzRWMqDDEwFpy0xt bdPLK6WrjLk8L+4sqOtoT+VzT1zcAdPmNPxzEYidAxJrhA2X4fG21cACIa1xX0EY5ok/ 6Z28j9wjfGMMLTFZSwpFeKnSfYMu2gAGKuNBX0v0SyfY2IMY+bWPt4iB2anXW/kPIS/u cA6I9vobnX+KTR3/8IfvjK4Gu1dzdYHak0gI9VdnWl7CzOEr7G6e3riRJEKZB+8Ek2qX nniA6XV1uzzTyaIv7HZByP7bMJ5eWXt3D6/+cVwGXYYiS3E/aQUpte4S2p9u+CeoX2eZ Ki4Q== X-Gm-Message-State: AOAM533PWeiSAs72soQ3riOs5/bDX70MKK6/0Q6GClTSWSaIS83gaEld MvqVgHZ0W+F+m4p/tuhK7Bslu4l3iPyj3G9Tj4M= X-Received: by 2002:a05:6402:5107:b0:412:8530:3ba9 with SMTP id m7-20020a056402510700b0041285303ba9mr25450809edd.264.1645521659276; Tue, 22 Feb 2022 01:20:59 -0800 (PST) MIME-Version: 1.0 References: <20220221162652.103834-1-clement.leger@bootlin.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 22 Feb 2022 10:20:23 +0100 Message-ID: Subject: Re: [RFC 00/10] add support for fwnode in i2c mux system and sfp To: Andrew Lunn Cc: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Andy Shevchenko , 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 Mailing List , ACPI Devel Maling List , linux-i2c , netdev , Thomas Petazzoni , Alexandre Belloni Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, Feb 22, 2022 at 9:57 AM Andrew Lunn wrote: > > > > In the DT world, we avoid snow flakes. Once you define a binding, it > > > is expected every following board will use it. So what i believe you > > > are doing here is defining how i2c muxes are described in APCI. > > > > Linux kernel has already established description of I2C muxes in ACPI: > > https://www.kernel.org/doc/html/latest/firmware-guide/acpi/i2c-muxes.html > > > > I'm not sure we want another one. > > Agreed. This implementation needs to make use of that. Thanks for > pointing it out. I don't know the ACPI world, are there any other > overlaps with existing ACPI bindings? Besides ACPI specification, which defines _CRS resources, such as I2C, SPI, GPIO, and other peripheral connections, in the Linux kernel we have already established these [1]. I hope it's all here, since in the past not everything got documented and there were some documentation patches in time. On top of that there are some Microsoft documents on enumeration that Linux follows, such as USB embedded devices [2]. There is also a PCI FW specification that defines how PCI bus devices, bridges, etc have to be represented in ACPI, including additional tables, such as MCFG. [1]: https://www.kernel.org/doc/html/latest/firmware-guide/acpi/enumeration.html [2]: https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/other-acpi-namespace-objects#acpi-namespace-hierarchy-and-_adr-for-embedded-usb-devices -- With Best Regards, Andy Shevchenko