Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1745801ybz; Thu, 16 Apr 2020 14:56:36 -0700 (PDT) X-Google-Smtp-Source: APiQypIvVXrvEzYL8gYtHxyqIeNlXayN+YO8o+iI6xz8O/m0zgRR+D1sMpHFUovrW4/MiHzFZ8DS X-Received: by 2002:a17:906:4cd9:: with SMTP id q25mr143273ejt.126.1587074196467; Thu, 16 Apr 2020 14:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587074196; cv=none; d=google.com; s=arc-20160816; b=V1/ppkjHy52BrpP8cN9BQAto6nx/uG4w2lXwE8f64CzPaMlVwpPb9Tp2FICdLkhscW uwqRfXGhWO2Td0aZQeOiCyZ89tyeTmRlkm2h+YiNn2zbAUCYmWHNAQYsskT9409VF00M ifGaisvFHHaKfTJjjniZfG5IrebdY3OHgekhlb6X1dDubHQe3qYDiWvwBQ4/mqUf+NoV 5K7yL6tOdtS8pFGNO56c6zWNZM9GRUpHOGLY7pyS6Miw12jiQA5+P1ohTnpJOiWYW3xM TMyCzS7Hgcuaj/w1kBM8MuddxLYPZxH0t+TW1XdIMfnc98w4QFayRWdWAmLxhxbUZ9Qf Xn3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=sJoGlhke6RR1kM1TPJ0UiaTv4A4MkV9oORpm3epxYVo=; b=s9jbnSgzza9UPHShDSanLN7sHpG28DJicM7EKfXl/tXhmNWQWT3zQe98/kaxXx+NI6 NkIzcywe2XzuMSeNPtyQJPfH+G9zSZgweVmhKlUYxA9y0Lg+ts7G19WGtnO2HgGBsBu3 uTcroI3RWz56nwvsvIMBD/FhscUMnGh6lDq4Ka3s+p1y+UFsD6iIFttO7qKnDmhzoqHy BB/ZoXAFBAZ6nfU3iHZ2btswdexVt9TRVY64Hm2qX3OFss/MD0HSKqT5oUDHuclRF6Qb 1tm3vuMHxPtmynj3WAFML9cht9jeGtXNMO8KcPEzip93YgCKDcNxXw/mlo0AsadsVuiO mDLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=nZ3mWs5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce3si15426936edb.286.2020.04.16.14.55.44; Thu, 16 Apr 2020 14:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=nZ3mWs5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728259AbgDPVyW (ORCPT + 99 others); Thu, 16 Apr 2020 17:54:22 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:42718 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725272AbgDPVyW (ORCPT ); Thu, 16 Apr 2020 17:54:22 -0400 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:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=sJoGlhke6RR1kM1TPJ0UiaTv4A4MkV9oORpm3epxYVo=; b=nZ3mWs5Mhk/fuDnxYopkcIKFaE LshpNurBHLFjJUZxbiuJacFvfKjdEEOgJeVcPm7Rrn1WS20bJJ8PUwAXd+IKXuBFVpnS3sWr91Hfr G2BtgK95aGgvhkCtY0nDAau4JvHXufNdeHebUHj4R4BqodB35M2iPaivoSO7q07zPp6k=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jPCSa-0039j7-Qz; Thu, 16 Apr 2020 23:54:12 +0200 Date: Thu, 16 Apr 2020 23:54:12 +0200 From: Andrew Lunn To: Jernej Skrabec Cc: robh+dt@kernel.org, f.fainelli@gmail.com, hkallweit1@gmail.com, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux@armlinux.org.uk, mripard@kernel.org, linux-kernel@vger.kernel.org, wens@csie.org, lee.jones@linaro.org, davem@davemloft.net, linux-arm-kernel@lists.infradead.org Subject: Re: [RFC PATCH 0/4] net: mfd: AC200 Ethernet PHY Message-ID: <20200416215412.GD744226@lunn.ch> References: <20200416185758.1388148-1-jernej.skrabec@siol.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200416185758.1388148-1-jernej.skrabec@siol.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 16, 2020 at 08:57:54PM +0200, Jernej Skrabec wrote: > This is attempt to support Ethernet PHY on AC200 MFD chip. I'm sending > this as RFC because I stumbled on a problem how to properly describe it > in DT. Proper DT documentation will be added later, once DT issue is > solved. > > Before Ethernet PHY can be actually used, few things must happen: > 1. 24 MHz clock must be enabled and connected to input pin of this > chip. In this case, PWM is set to generate 24 MHz signal with 50% > duty cycle. > 2. Chip must be put out of reset through I2C > 3. Ethernet PHY must be enabled and configured through I2C Hi Jernej This is going to be interesting to describe in DT. At what point does the PHY start responding to MDIO request? In particular, you can read the ID registers 2 and 3? You list above what is needed to make it usable. But we are also interested in what is required to make is probe'able on the MDIO bus. We have more flexibility if we can first probe it, and then later make it usable. Thanks Andrew