From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751209AbeEEMKy (ORCPT ); Sat, 5 May 2018 08:10:54 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:43618 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750821AbeEEMKw (ORCPT ); Sat, 5 May 2018 08:10:52 -0400 X-Google-Smtp-Source: AB8JxZrZwGNBHoOePOtAqXU2vf0elJZjsgtSURO0xxzMlu7IVXI/JLWjOGIx0q8Ng6RHITsCNIucrGZYcHvou6L8UnU= MIME-Version: 1.0 In-Reply-To: <1525508963-7986-4-git-send-email-Anson.Huang@nxp.com> References: <1525508963-7986-1-git-send-email-Anson.Huang@nxp.com> <1525508963-7986-4-git-send-email-Anson.Huang@nxp.com> From: Fabio Estevam Date: Sat, 5 May 2018 09:10:51 -0300 Message-ID: Subject: Re: [PATCH V6 4/7] ARM: dts: imx6sx-sabreauto: add fec support To: Anson Huang Cc: Shawn Guo , Sascha Hauer , Fabio Estevam , Rob Herring , Mark Rutland , Haibo Chen , Fugang Duan , Dong Aisheng , Robin Gong , NXP Linux Team , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 5, 2018 at 5:29 AM, Anson Huang wrote: > Add FEC support on i.MX6SX Sabre Auto board. > > Signed-off-by: Fugang Duan Again, it is not clear who is the author here. Is it Fugang or yourself? > Signed-off-by: Anson Huang > --- > changes since V5: > use "gpios" instead of "enable-gpio". > arch/arm/boot/dts/imx6sx-sabreauto.dts | 80 ++++++++++++++++++++++++++++++++++ > 1 file changed, 80 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts > index 4d41b4d..7dda741 100644 > --- a/arch/arm/boot/dts/imx6sx-sabreauto.dts > +++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts > @@ -18,6 +18,17 @@ > reg = <0x80000000 0x80000000>; > }; > > + reg_fec: fec_io_supply { > + compatible = "regulator-gpio"; > + regulator-name = "1.8V_1.5V_FEC"; > + regulator-min-microvolt = <1500000>; > + regulator-max-microvolt = <1800000>; > + states = <1500000 0x0 1800000 0x1>; > + gpios = <&max7322 0 GPIO_ACTIVE_HIGH>; > + vin-supply = <&sw2_reg>; > + enable-active-high; > + }; I still find this confusing. There is no consumer for reg_fec in, so it seems you are relying on the fact that the kernel regulator core will disable reg_fec to put the regulator in the state you require.