Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4309406ybl; Tue, 20 Aug 2019 09:58:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxL/gcJ7HW52pxHOpBl3i+xJYBf8/bLH+QsfBA1KeYtlxyAL4kJq27xComOTNSFXYDMCWk X-Received: by 2002:a17:90a:7d04:: with SMTP id g4mr946571pjl.41.1566320314586; Tue, 20 Aug 2019 09:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566320314; cv=none; d=google.com; s=arc-20160816; b=hlZFP1MGdchK+2rMYP8Ek+ejJng1h9uH0Nqrth9K4ISPn3JpRrjDDK4YDXKZ9hC2x5 cIPq+Sp6HT3TEiIxW/4Twl6z9qzfsdJXXfy1uXMMidjBKR7akeSU72AbOZAbgCz02AXy KO2GYy/mYEBE1EQzE9sMSMYQdlkFGpWK7ikrI3ZJ1JsPb7bU4UIiZYgXSGqCANq2LBaw gy+bZg4o08yyLB97lx/yo7TrWMGj/k5EjGM2V8nSyY9vL3PFRuzCK4UvQAxAsa3gdZZP tsVcKAO73BRaDRX4H1gfkOx+znYyXeHRdQ36uIV4k8+DSnGVhr7zXB4jnYdagy7gFTku c0qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=XXjiYxQkert7CQKwnQYwS/DJ9k/U3UTDnEKYjjCX/3Q=; b=L1xNuV64AVxznSNtIBiEGVr7TShqudl9mMVF5l0b9hwnaySk89+qLSrHrGN/TlJpoH wlDTbyqVQZ4I00Ll4Q1bSeJaZu1cL0mwmw6/pp2D1yrrOe3u07HvHqGIoLacgdrXVYUQ oeT1oQqIz7Z7ij2wQiszYioJSKyXx6EEkH4bxFJUoq9tKiq140ienlf39AH+KN57HlrF R7GXJNSX1X+93eyJzfWUNICEcyaGQbvZDa0fQSbvb0iDj7c4WzZkegO0O3txJj+saJgc YwnR6SHzxiwPvPm7v0HX/gZHfaHkFT/ngYKXrENvoyFvNAKh914QVwEZS44klqiCkmV6 HUjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2jX2Ag8A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23si317639pjp.76.2019.08.20.09.58.19; Tue, 20 Aug 2019 09:58:34 -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=pass header.i=@kernel.org header.s=default header.b=2jX2Ag8A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730322AbfHTQ5T (ORCPT + 99 others); Tue, 20 Aug 2019 12:57:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:37856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbfHTQ5T (ORCPT ); Tue, 20 Aug 2019 12:57:19 -0400 Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A33212339F; Tue, 20 Aug 2019 16:57:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566320238; bh=XXjiYxQkert7CQKwnQYwS/DJ9k/U3UTDnEKYjjCX/3Q=; h=References:In-Reply-To:From:Date:Subject:To:From; b=2jX2Ag8APIFwCLyU4kAtKBfXXb5lV2endNabWcuWxLvWLoywws5J1NWZ3jhvOolz1 21Gyotmv1EcMF9cr0YZwBagfs2iDSHfxsTScMZfVVdQ13/8sSyk2/8nrJPCz54HUIF Ggt4fV6axtAZrFH7DH3IG0RL35pbuGbZLHiApFbY= Received: by mail-qt1-f182.google.com with SMTP id t12so6823609qtp.9; Tue, 20 Aug 2019 09:57:18 -0700 (PDT) X-Gm-Message-State: APjAAAX2Ayouk88Kft7Ye6hgRvPSET1S5McaDKjP4897FKhw+7g6X9pj YSys8mp7nvWG1UJD7CobcpHClWVPLTZ7kzoBOg== X-Received: by 2002:ac8:386f:: with SMTP id r44mr27730593qtb.300.1566320237772; Tue, 20 Aug 2019 09:57:17 -0700 (PDT) MIME-Version: 1.0 References: <20190820145343.29108-1-megous@megous.com> <20190820145343.29108-3-megous@megous.com> <20190820163433.sr4lvjxmmhjtbtcb@core.my.home> In-Reply-To: <20190820163433.sr4lvjxmmhjtbtcb@core.my.home> From: Rob Herring Date: Tue, 20 Aug 2019 11:57:06 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/6] dt-bindings: net: sun8i-a83t-emac: Add phy-io-supply property To: Rob Herring , "David S. Miller" , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , netdev , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" , linux-stm32@st-md-mailman.stormreply.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 20, 2019 at 11:34 AM Ond=C5=99ej Jirman wro= te: > > On Tue, Aug 20, 2019 at 11:20:22AM -0500, Rob Herring wrote: > > On Tue, Aug 20, 2019 at 9:53 AM wrote: > > > > > > From: Ondrej Jirman > > > > > > Some PHYs require separate power supply for I/O pins in some modes > > > of operation. Add phy-io-supply property, to allow enabling this > > > power supply. > > > > Perhaps since this is new, such phys should have *-supply in their node= s. > > Yes, I just don't understand, since external ethernet phys are so common, > and they require power, how there's no fairly generic mechanism for this > already in the PHY subsystem, or somewhere? Because generic mechanisms for this don't work. For example, what happens when the 2 supplies need to be turned on in a certain order and with certain timings? And then add in reset or control lines into the mix... You can see in the bindings we already have some of that. > It looks like other ethernet mac drivers also implement supplies on phys > on the EMAC nodes. Just grep phy-supply through dt-bindings/net. > > Historical reasons, or am I missing something? It almost seems like I mus= t > be missing something, since putting these properties to phy nodes > seems so obvious. Things get added one by one and one new property isn't that controversial. We've generally learned the lesson and avoid this pattern now, but ethernet phys are one of the older bindings. Rob