Received: by 10.223.176.46 with SMTP id f43csp1966453wra; Sun, 21 Jan 2018 08:14:46 -0800 (PST) X-Google-Smtp-Source: AH8x224I4pyeMEzaIHB7pQ4hou8DVAV2z2Vf/TvOqKNDDZHKk1b+tabi14PCShVw46/8D6Tv2Idt X-Received: by 10.98.192.10 with SMTP id x10mr5697860pff.27.1516551285921; Sun, 21 Jan 2018 08:14:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516551285; cv=none; d=google.com; s=arc-20160816; b=w9lgf01atb3PaMqvErgZ93YdxXQ3c81PJBu4PW6MHQ0zjqAQpOIsYR4Q2sTV0Ame72 M0DpPGjdtCWFZboIizHPI8IJGcnSu6LzX19Ph+dkHMhSG3R8SoTizuHAbjns5slsuHPg 7XzJrNiW20Y8/gsbroe0OFtsOKWc2S3zQhKBQY0qCJXB/RqnJ1GC+6TUwWqpguetZvf1 1LjXSl4VN0pHDxcE+s4qktcs3NaL3/4WOIZBlFNo1IpIvOk9YTFGFReCQcg793XERovk 2LUozGZduuAdGezNKhLf0TIEnkQ9aIExcurw/668pgAzVyKOom3OVWn/XvvFHjmwHFSc cUUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=i/sstasa48ERijPwCRXHzrPfgOSfsiq9EASv6SaACUU=; b=gYUGSMiVMqpqXWS8funq3M/pB9lE+MJUAd/F9t+P041bnbmksYOLrR7Dd5r2cZQyx3 W3m1uhaTr5SLi7SahYrMjHXHC2GZ98uUCUEWyZ87N6roVO6S/26Soow0T74E1Tj9OFvo b7NHLSDeVr+9cCy08IQpwG+x01KLO18/7fbW+ZJ82F4rv0Ah3Y1LuMgl/i8zm5F9D3DE 2xpbLvDYbxrPeBWTaUQxenYVwN680JPvXeZv+8F+8tuH3z6sD74O65aK6K46yeKqttLo QWu8nK83NI5c+pROQ1izn0qsRVqI+NEblPJT0Ad7WuEPvxg8Xuak/Q26+HlX75kw35Xz o0og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wSVTqtjj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2-v6si2647880pli.19.2018.01.21.08.14.32; Sun, 21 Jan 2018 08:14:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wSVTqtjj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751214AbeAUQOE (ORCPT + 99 others); Sun, 21 Jan 2018 11:14:04 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:57912 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750832AbeAUQOC (ORCPT ); Sun, 21 Jan 2018 11:14:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=i/sstasa48ERijPwCRXHzrPfgOSfsiq9EASv6SaACUU=; b=wSVTqtjjIDgE3ksUSdGOeF4OHgQyeoAJphdtdAI7tBMC9r+y6cqf2jxW07GEYvgMUbrK2GJ447xa4ZfngjjccjrBY+wCJuMFg+IDhzwRqS+Ian96S/Arj6PRiY7EQtPd1SrdetQR8Ummh7xjRBYSwdx5N3DJeWCCtfHMN2bG1H4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1edIFD-0002Ae-5N; Sun, 21 Jan 2018 17:13:19 +0100 Date: Sun, 21 Jan 2018 17:13:19 +0100 From: Andrew Lunn To: Mika Westerberg Cc: Marcin Wojtas , Lorenzo Pieralisi , Graeme Gregory , Ard Biesheuvel , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "" , "David S. Miller" , Russell King - ARM Linux , "Rafael J. Wysocki" , Florian Fainelli , Antoine T?nart , Thomas Petazzoni , Gregory CLEMENT , Ezequiel Garcia , Nadav Haklai , Neta Zur Hershkovits , Grzegorz Jaszczyk , Tomasz Nowicki , Hanjun Guo , Sudeep Holla Subject: Re: [net-next: PATCH 0/8] Armada 7k/8k PP2 ACPI support Message-ID: <20180121161319.GA8017@lunn.ch> References: <20180109101941.GD31502@xora-haswell> <20180109130012.GA27447@lunn.ch> <20180118123141.GA2839@e107981-ln.cambridge.arm.com> <20180118130026.GG32299@lunn.ch> <20180120195246.GC27654@lahna.fi.intel.com> <20180121010840.GB1217@lunn.ch> <20180121102700.GF27654@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180121102700.GF27654@lahna.fi.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Right. So if you need to have some additional "parameters" with the > connection, then I suppose you may want to go with the GenericSerialBus > route. However, looking at the sample device tree description: > > davinci_mdio: ethernet@5c030000 { > compatible = "ti,davinci_mdio"; > reg = <0x5c030000 0x1000>; > #address-cells = <1>; > #size-cells = <0>; > > reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; > reset-delay-us = <2>; > > ethphy0: ethernet-phy@1 { > reg = <1>; > }; > > ethphy1: ethernet-phy@3 { > reg = <3>; > }; > }; > > would pretty much translate directly to this in ACPI if you don't need > any additional attributes: > > Device (ETH0) { > Name (_ADR, /* PCI address of the NIC */) > > Device (PHY0) { > Name (_ADR, 1) > ... > } > > Device (PHY1) { > Name (_ADR, 3) > ... > } > } > > which looks pretty simple to me. You can also use _DSM and _DSD here to > pass information (like the protocol number) for the PHY devices to Linux. I'm not particularly worried about that simple case. Other than, i don't want people to think that is all that is required. For a more full example, take a look at vf610-zii-dev-rev-b.dts. The Freescale FEC Ethernet controller provides the base MDIO device, mdio1. On top of this is an MDIO mux, using a few GPIO lines to enable/disable 3 child MDIO busses. Each of these busses has an Ethernet Switch. The Ethernet switch exports up to two MDIO busses, and on these busses are Ethernet PHYs which are embedded inside the switch. The Ethernet switches are also interrupt controllers, with the PHYs having interrupt properties which point back to the interrupt controller in the switch. So i'm interested in an ACPI proposal which supports this board. Andrew