Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3220227ybi; Mon, 10 Jun 2019 06:38:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAiMBaDJ45YNImPD9hMaL9IIpfIUTUvxc6HmJssGdt+tJ5fHOcfqVf/iGFlLKQCEiqWnLD X-Received: by 2002:a17:902:7592:: with SMTP id j18mr73398016pll.213.1560173891307; Mon, 10 Jun 2019 06:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560173891; cv=none; d=google.com; s=arc-20160816; b=bw7vMyMRE0PlXnW8YxkTCQQcmZ+6OVSB91Y2vNbJj6qLq2SENglzsGUSXJcMmiWdeI vFxKx58MNXA1StglECEfdJm6JKvESIeGVdbykwhEZrgDwVflopB3nR/t+cb7HBXG0wgQ bjO5C5lTUzGv9r1k3n4s/fgL7NDopnKuMtXZIBCtAjzDni6LPhaW4SQdLxHvyc7EHjsL qFDL29B+EbxQh2DJFoqCRypdKCk+U+pV1RwqbHx3ZFizw3ioYaLcWFgKeg58pgYqLkBN dZAelZl15AWW+dmPH4oWC+so2LZIIhgyLZsggL5Hb87BjaLLMKVnobrDFp+25OVCXGJv TeVQ== 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; bh=YI80HFnKhwfC06RagYAUP7ThPG5kbxVc9JBgg7X0bw4=; b=f3HnarW41OExrMg2XSHgcdWYlbzfSxu6D46zv+wpTLKEPbAGbkfuep5cMjVb/Hub86 Awd1/jOh5JrU7nEzIrEyyv/vJoaYHjdDTXd2yP3WNlq8dBzBvwNsmfTk5Mc4+cX7QCFU cO/aAneAxVj+MbMrljReHHDmwEF/9siL2z95iG48XxFjgBBSMOK2nVPJwB7MeHEG3Hb5 Yj1cqXdGGXkg16ueZzsWN2jXFXkHvP5dJMNaOLmJA4xXSBeegMjG/piWpxh7qUpaDNxp 7tmL6SVTP04M5j3PCxojyuwovD30pQt79KCJm5t5qgXUWSxYBa/7rWoG5OotmwhOWLRj JWwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=GRCoQxzs; 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 g190si9405875pgc.1.2019.06.10.06.37.55; Mon, 10 Jun 2019 06:38:11 -0700 (PDT) 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=fail header.i=@lunn.ch header.s=20171124 header.b=GRCoQxzs; 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 S2390322AbfFJNZ7 (ORCPT + 99 others); Mon, 10 Jun 2019 09:25:59 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:41360 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388848AbfFJNZ6 (ORCPT ); Mon, 10 Jun 2019 09:25:58 -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=YI80HFnKhwfC06RagYAUP7ThPG5kbxVc9JBgg7X0bw4=; b=GRCoQxzsfFqofI/UoDR47FyGeh PXcWJC0FwW5udvg5zB6I1T1LiChU8rv8Jthx+vt8ENT0ibn9T3tlEYZ0FXRYnP3ryf1pXwTWnmJCv gOtGl5LRYrKCfS6iAGy680Rc8vL0QfqpdtYcupc3fDaOQSXeQ3e+62boTKbSztAhwzmc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1haKJ0-0006kC-Nt; Mon, 10 Jun 2019 15:25:46 +0200 Date: Mon, 10 Jun 2019 15:25:46 +0200 From: Andrew Lunn To: Martin Blumenstingl Cc: Maxime Ripard , netdev@vger.kernel.org, linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, devicetree@vger.kernel.org, Neil Armstrong , khilman@baylibre.com, linux-kernel@vger.kernel.org, davem@davemloft.net, linux-arm-kernel@lists.infradead.org Subject: Re: [RFC next v1 0/5] stmmac: honor the GPIO flags for the PHY reset GPIO Message-ID: <20190610132546.GE8247@lunn.ch> References: <20190609180621.7607-1-martin.blumenstingl@googlemail.com> <20190609204510.GB8247@lunn.ch> <20190610114700.tymqzzax334ahtz4@flea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 > if anyone else (just like me) doesn't know about it, there are generic > bindings defined here: [0] > > I just tested this on my X96 Max by defining the following properties > inside the PHY node: > reset-delay-us = <10000>; > reset-assert-us = <10000>; > reset-deassert-us = <10000>; > reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; > > that means I don't need any stmmac patches which seems nice. > instead I can submit a patch to mark the snps,reset-gpio properties in > the dt-bindings deprecated (and refer to the generic bindings instead) > what do you think? Hi Martin I know Linus wants to replace all users of old GPIO numbers with gpio descriptors. So your patches have value, even if you don't need them. One other things to watch out for. We have generic code at two levels. Either the GPIO is per PHY, and the properties should be in the PHY node, or the reset is for all PHYs of an MDIO bus, and then the properties should be in the MDIO node. Andrew