Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7278108imu; Wed, 14 Nov 2018 14:44:27 -0800 (PST) X-Google-Smtp-Source: AJdET5cuq6rlCzc1cwE/jZenEoz1ltFjw6/pzRKROGNi+/T1/y79HoMO7BOQO8d4JReRYgqkeVfg X-Received: by 2002:a62:4d82:: with SMTP id a124-v6mr2166000pfb.113.1542235467532; Wed, 14 Nov 2018 14:44:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542235467; cv=none; d=google.com; s=arc-20160816; b=ORRibQxQMzuFxJjtwrAmkPqNrrzUjQqg6Tzzyfw+b+/2akPxHEI8ZiB7/HvBTZ5b+L EGmLXocfLIXdpvnQI/Aw9GrVVrRCoNFlWAzOJEP6kQCgwfKagJepcxEQwYOANpNxFfjx jQ3+HgooYualy0W48C+4tDhPubuB/NJlsHjTgtjqDtu3jhIT0MnXH+DwEc7k3+/sGCQo dCuuifRvWPVu7P/JWT20YTVc4vBQAseEhq6XS40FLgYtwjPheaJZOiCMSfZOKiRZDmiS A3DYlvJ0nzIluyoEa5OdLM+I0eg4Kg+1rawGpqc1iuY/szJ1s59zyLIPVFdElXHEZw3i Cl4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=T5ffcjw7VLBG9jwQTYeoNIVMUWjOK6etckwtBJUTtaA=; b=hhQk6Xzro7CM5jUufJaknmta3cpJ0IlQCLJD24E1nQzMhnyAnuPk1szsZgF+4AHtJZ 9ztQi2bNvu1DHu+e4rrUpSnzbk9++hjmzv/uJCcIJHQCFZlz2mqOftxqZFrExrV3xKDp jeICyf1+FOFU9loSpiKwKWP9vbSeZ39TDQsH+hxIigPW3lMUQlDRVGJVTLg3aYjfpLQM PfrnzilCgMYv5g4ZtGivGaJdSmdE/52BbbjQTQKTvdFVE7DNnVMNwuiY0F7G4mb+JBVt DU+L064QFGgIai8E68Fd6TlU6DBkfRhBbKme+Q85OqzyWlL6PXv1TgDQSNgEQIrX3vyU GDhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SKj7bS3R; 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 127-v6si28101135pfg.268.2018.11.14.14.44.13; Wed, 14 Nov 2018 14:44:27 -0800 (PST) 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=SKj7bS3R; 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 S1731710AbeKOIsp (ORCPT + 99 others); Thu, 15 Nov 2018 03:48:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:34716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728526AbeKOI1T (ORCPT ); Thu, 15 Nov 2018 03:27:19 -0500 Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (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 04E4F2252A; Wed, 14 Nov 2018 22:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542234136; bh=WsZ7cth1cut/WPoI/+XfeCTb24XybtMELqifViPWIWc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SKj7bS3RwHkPBN2Cu4TOJmQAedbOFkejHqMOu6mBVZgM5gwrjxYZR7yQpscrd9Pfn 04GI4dyo6vUtWoTSIi2PS+sqI6ZCQZeJ8N8rldBUYWWIUIj/0Jh3pGRCLTi42APSse g9mmFCQmLt5nP+grRSxWc19R4s/6lzhf4yyLrkLc= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leonard Crestez , Shawn Guo , Sasha Levin Subject: [PATCH AUTOSEL 4.19 32/73] ARM: dts: imx6sx-sdb: Fix enet phy regulator Date: Wed, 14 Nov 2018 17:21:26 -0500 Message-Id: <20181114222207.98701-32-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181114222207.98701-1-sashal@kernel.org> References: <20181114222207.98701-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leonard Crestez [ Upstream commit 1ad9fb750a104f51851c092edd7b3553f0218428 ] Bindings for "fixed-regulator" only explicitly support "gpio" property, not "gpios". Fix by correcting the property name. The enet PHYs on imx6sx-sdb needs to be explicitly reset after a power cycle, this can be handled by the phy-reset-gpios property. Sadly this is not handled on suspend: the fec driver turns phy-supply off but doesn't assert phy-reset-gpios again on resume. Since additional phy-level work is required to support powering off the phy in suspend fix the problem by just marking the regulator as "boot-on" "always-on" so that it's never turned off. This behavior is equivalent to older releases. Keep the phy-reset-gpios property on fec anyway because it is a correct description of board design. This issue was exposed by commit efdfeb079cc3 ("regulator: fixed: Convert to use GPIO descriptor only") which causes the "gpios" property to also be parsed. Before that commit the "gpios" property had no effect, PHY reset was only handled in the the bootloader. This fixes linux-next boot failures previously reported here: https://lore.kernel.org/patchwork/patch/982437/#1177900 https://lore.kernel.org/patchwork/patch/994091/#1178304 Signed-off-by: Leonard Crestez Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- arch/arm/boot/dts/imx6sx-sdb.dtsi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6sx-sdb.dtsi b/arch/arm/boot/dts/imx6sx-sdb.dtsi index f8f31872fa14..d6d517e4922f 100644 --- a/arch/arm/boot/dts/imx6sx-sdb.dtsi +++ b/arch/arm/boot/dts/imx6sx-sdb.dtsi @@ -115,7 +115,9 @@ regulator-name = "enet_3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; + gpio = <&gpio2 6 GPIO_ACTIVE_LOW>; + regulator-boot-on; + regulator-always-on; }; reg_pcie_gpio: regulator-pcie-gpio { @@ -178,6 +180,7 @@ phy-supply = <®_enet_3v3>; phy-mode = "rgmii"; phy-handle = <ðphy1>; + phy-reset-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>; status = "okay"; mdio { @@ -371,6 +374,8 @@ MX6SX_PAD_RGMII1_RD3__ENET1_RX_DATA_3 0x3081 MX6SX_PAD_RGMII1_RX_CTL__ENET1_RX_EN 0x3081 MX6SX_PAD_ENET2_RX_CLK__ENET2_REF_CLK_25M 0x91 + /* phy reset */ + MX6SX_PAD_ENET2_CRS__GPIO2_IO_7 0x10b0 >; }; -- 2.17.1