Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4999685iob; Mon, 9 May 2022 06:38:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrdugJ/TdsvJJc/OhHhmHFgy8sXlisZgiH17hti0N2BSg/HkulUZFBivy7esg0zQHdxBZb X-Received: by 2002:a17:902:eb87:b0:15e:be95:a3f3 with SMTP id q7-20020a170902eb8700b0015ebe95a3f3mr16286702plg.38.1652103498979; Mon, 09 May 2022 06:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652103498; cv=none; d=google.com; s=arc-20160816; b=foV/EHGG77z0L5OD0MTIFJDdghdvxEIKd9jXjQPXZoO28TiixRxqQHhRHS9IudD5o7 dYoMPVS/lqU499tMHpriyCqBv5tiizuMrYjY7Z8Qo7SRwpdHOCZ6D+iOWnxi/wuNaX9y 6lrks2r3lgqryeeQfWY3g9qbtaVbrL8x41V3IxlQ2nMl7uhHVuEp4+s38xGslmvDmAA0 HTE8J9Oc4udGoLlRdlnI3TZfwf5WXmHt8wtRDvzWEI/8lj3QEgl/mrsAs3MIzuUGbDgP dJAb9LBGP+NRaV4/o9vsSAsEavazEG4lYq/EJB07g9bSJR/Yi0d8pN650NvL6DZ9Cskb eOKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dmJRRWnhcLRlkBeCf6ELmWo3mitMr5vF1s1MIEAWhkY=; b=T6Ggp03y+jWjPuw7hMPNlNBkpAp2AOylj8u+0Q1FruXAvJ9H+BCJ3tI6IiXcogGskH AOVq24oxayt/Grd29at7J9nxeSzapRko7UJ23f3VJcIr+UvbA1GgO52mDifOPsYvYlxn pIq2Y3Lb6opV0TUn+ziZ2XOZGbyN0vHj3F0AmiQv3xDnplPXpZYsmIwGnteZbzjjNSOD P/MEKJW1rDaRlvdbHJ4b4JqRXXB3C8t2l0XsOc/Y1R39IpeW0LiWutEmw4e8LZlzGhG7 4Na/Wdu/71mskr6TNOn0CJS8Nx0zpbv3hsT4+M3SvPZk8tFTE9eofFfBmbGcyP3oWMLc 4wng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=FBEP0LRm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y14-20020a056a00180e00b0050c7c7b0c20si15499264pfa.4.2022.05.09.06.38.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 06:38:18 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=FBEP0LRm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 08D961BDAF9; Mon, 9 May 2022 06:27:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235586AbiEINaz (ORCPT + 99 others); Mon, 9 May 2022 09:30:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235665AbiEINaw (ORCPT ); Mon, 9 May 2022 09:30:52 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 041341A4086 for ; Mon, 9 May 2022 06:26:52 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id p189so8371957wmp.3 for ; Mon, 09 May 2022 06:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=dmJRRWnhcLRlkBeCf6ELmWo3mitMr5vF1s1MIEAWhkY=; b=FBEP0LRmMpH17N7Hbm10/SPehn12jstyd+SVGPW/nQaH/kNcc0UgxF/UxMSJSwNFKd 0h8QK8B6X30Boig/cF/YFEX+fhrdVkzBqiHdg/puhONGuRYJmMCy5gKj9w2B4xs8+MdB +XHQRt0GSX29olfSiXYZ2ZfP3S6Nv053NPMiAggKDE4ZhLVhL0K89uBrXAG0u/mDaiNx xlrb0M47Nn5sSClSGIv6+VUuqKrNrfJq6OxmdbgRm30gDA/khTLNdTWJ7MNCL7jx3jNL nWuroYJZ1S4p4kdCT6n8CuKJGH7yLZly1nGI6AFJZTpS6mHnNCD9EpbxTMxbo5xOsQQl 2O6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=dmJRRWnhcLRlkBeCf6ELmWo3mitMr5vF1s1MIEAWhkY=; b=VNGvjSzLNvmcgt+WBO5Paq4A0nLKW0wsoMwkcOi+DiNYwDcU+gqvqo7HnTm7AztXC5 nNdgE8TUAFRVEWvEulprb1SGvI7vsyn4vwHVrfNZXWwI8FYeXAQl+QdJES1ooe04fLcF kQ97fIaY8s5+0wiCww9NISU8iTjyZT495O4frNk0RuiUXzIApvvtI9Zlww4JAHQFAZZI VvRg7Sx/L3SK/nl8Fixw+7XZQ3QsIiHhlXZWj25uwQ1vrb7vSQv1yWTwMTtPCx3SLIuK OtB0BHOU4S545S0eEITuVGba6SGlSnykQVd8810I7Xv5Xv/MFFa7VOMDfgCzERc+S4WT STIQ== X-Gm-Message-State: AOAM532K1mn6dZybVN6JyMUAztSkgt78lNTOWJqA+LSUZU3yGdxD4cxq JckMpwqS0vFc9+H69cp7oyUCCA== X-Received: by 2002:a1c:770b:0:b0:394:3fae:ab79 with SMTP id t11-20020a1c770b000000b003943faeab79mr15885832wmi.200.1652102811399; Mon, 09 May 2022 06:26:51 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id n16-20020a05600c3b9000b00394699f803dsm13097894wms.46.2022.05.09.06.26.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 06:26:50 -0700 (PDT) Date: Mon, 9 May 2022 15:26:47 +0200 From: LABBE Corentin To: Andrew Lunn Cc: alexandre.torgue@foss.st.com, broonie@kernel.org, calvin.johnson@oss.nxp.com, davem@davemloft.net, edumazet@google.com, hkallweit1@gmail.com, jernej.skrabec@gmail.com, joabreu@synopsys.com, krzysztof.kozlowski+dt@linaro.org, kuba@kernel.org, lgirdwood@gmail.com, linux@armlinux.org.uk, pabeni@redhat.com, peppe.cavallaro@st.com, robh+dt@kernel.org, samuel@sholland.org, wens@csie.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH 3/6] dt-bindings: net: Add documentation for phy-supply Message-ID: References: <20220509074857.195302-1-clabbe@baylibre.com> <20220509074857.195302-4-clabbe@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Le Mon, May 09, 2022 at 02:17:27PM +0200, Andrew Lunn a ?crit : > On Mon, May 09, 2022 at 07:48:54AM +0000, Corentin Labbe wrote: > > Add entries for the 2 new phy-supply and phy-io-supply. > > > > Signed-off-by: Corentin Labbe > > --- > > .../devicetree/bindings/net/ethernet-phy.yaml | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml > > index ed1415a4381f..2a6b45ddf010 100644 > > --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml > > +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml > > @@ -153,6 +153,16 @@ properties: > > used. The absence of this property indicates the muxers > > should be configured so that the external PHY is used. > > > > + phy-supply: > > + description: > > + Phandle to a regulator that provides power to the PHY. This > > + regulator will be managed during the PHY power on/off sequence. > > + > > + phy-io-supply: > > + description: > > + Phandle to a regulator that provides power to the PHY. This > > + regulator will be managed during the PHY power on/off sequence. > > If you need two differently named regulators, you need to make it clear > how they differ. My _guess_ would be, you only need the io variant in > order to talk to the PHY registers. However, to talk to a link > partner, you need the other one enabled as well. Which means handling > that regulator probably should be in the PHY driver, so it is enabled > only when the interface is configured up. > If I enable only the IO one, stmmac fail to reset, so both are needed to be up. I tried also to keep the "phy" one handled by stmmac (by removing patch 2), this lead to the PHY to not be found by MDIO scan. Proably because stmmac enable the "phy" before the "phy-io". For the difference between the 2, according to my basic read (I am bad a it) of the shematic https://linux-sunxi.org/images/5/50/OrangePi_3_Schematics_v1.5.pdf phy-io(ephy-vdd25) seems to (at least) power MDIO bus.