From patchwork Wed Jan 15 05:12:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 11333365 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DC78C13BD for ; Wed, 15 Jan 2020 05:13:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BA6B52467A for ; Wed, 15 Jan 2020 05:13:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Deh+kLsT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jsPbn0xE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BA6B52467A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=veGnt7uISljEDEFzDJaL3N49zqJ+yxLSK4gjgl8omCU=; b=Deh+kLsTnMMw1D FBTiDodlDM3xewblkI9gAuxZ980zCvbH6CB9vv+fmuReMHBt2L0/IcHHCCCSUR/ykdxb3cANgfemw xRxh0GlJbiaXvvHDPqHgeaoUDJ3MyBOlGrPxYfj0/hGIvP2sUIDRDONJo5OsL81S32gc7FPdan8gt 3mfSvKJlcDY+irky9mrdKCI+1bNZNMq1NrphRe56GLjgrfVEOMxvOWZKBEJDCfBpZKZ04cW1ebFJI dezew8LhtsD6hecWP3lnHtMMn4CWoLFh6PLcagYmbhrAM7FNzM2EmrPaWIRByvrzlFqnNV9dXUjex MwCBEDTRNIyqAoOOZB8A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1irazF-0002UQ-Fo; Wed, 15 Jan 2020 05:13:01 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1irazC-0002T2-D6 for linux-arm-kernel@lists.infradead.org; Wed, 15 Jan 2020 05:12:59 +0000 Received: by mail-wm1-x343.google.com with SMTP id d73so16382907wmd.1 for ; Tue, 14 Jan 2020 21:12:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=n9NxWPcK/0Wvk5uOpnOHlNKUqHS48KY4vv65Up++8+w=; b=jsPbn0xE25CsviiaMCSLAgAvAN8wnluckOKmIIj5WK7PxnLBmR5FnoWrBi0jA8zQdI tP/++VyFja/lsKuYdRoK6So5Xf9jDd+Q7tbm/kK1IqM2nvRQCjIcbKB/5Kv6IXGNuG17 jq+n/XlWsyB8Q5R1gmIpLAhHMwd3bRN8Mu5k817AoFKjwNjBKsAY/BWiYPyZ7fz0PxQA SR4+mshu8q8B9CJcOhHWo8oo2o1Wevdb3y27cgGgWXeE6ivXnPTVyozgv3XFcm1kRlPv SvxPZlJFzczo5oD9wlQiqm7iOJiFiRVpoK4VGrWBE2aOvrBvT3x90fLXfy4wuU1u+CnM r+5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=n9NxWPcK/0Wvk5uOpnOHlNKUqHS48KY4vv65Up++8+w=; b=XYqxCBXBMQRMZfqzrPaM3Ed1w8F1GXRUBZU0fLsqfedu0lgvkCXAe0ATmXQpGxLwLW hMdfPRDvns0PjllazBM8hinr0vT4D+85wmw3ZDW6qx/VxLU5BS6paYuhnYa5U64LTvdv GDmOzQOcGkL65ATFSKE3eDa6b8x7aIuWX2VBPuQUI0ncMWW6GqvYrWjYN7sJXfmnWD39 E4fgmPB+0x2TAaj6jXm1nW7GLMv48UTpG/WwwrnJ4sEJUdDVoXi92bRXlJWb7WVd9z/Q etV2GpWUMwfUOWHq3BKuvrlPTVWEFkk288tpElKBH4rPRH5gOuhsC9E+vaF32a+1g7Cj ZcNQ== X-Gm-Message-State: APjAAAUfgNvrVCc5E6zYBxAqU9zOHjzzs7VHciyMgEehqcP+p21yZG18 yfPx1XbcbIaLfZ8eAbx5lza0GGkJBlQ= X-Google-Smtp-Source: APXvYqxJwlTO95a0xARemiZJfDEj7XUZHZ68oYbHN+nMliDW8E8V2Xh+D42Qv4MEEPlT3mowYT7Ipg== X-Received: by 2002:a7b:c444:: with SMTP id l4mr30092745wmi.178.1579065175436; Tue, 14 Jan 2020 21:12:55 -0800 (PST) Received: from chi.lan (cst-prg-10-109.cust.vodafone.cz. [46.135.10.109]) by smtp.gmail.com with ESMTPSA id z21sm20942156wml.5.2020.01.14.21.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 21:12:54 -0800 (PST) From: marek.vasut@gmail.com To: linux-arm-kernel@lists.infradead.org Subject: [PATCH V2] ARM: dts: renesas: Add missing ethernet PHY reset GPIO on Gen2 reference boards Date: Wed, 15 Jan 2020 06:12:25 +0100 Message-Id: <20200115051225.7346-1-marek.vasut@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200114_211258_472118_661DE6C4 X-CRM114-Status: GOOD ( 11.45 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:343 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (marek.vasut[at]gmail.com) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-renesas-soc@vger.kernel.org, Wolfram Sang , =?utf-8?q?Niklas_S=C3=B6de?= =?utf-8?q?rlund?= , Geert Uytterhoeven , Marek Vasut Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Marek Vasut The ethernet PHY reset GPIO was missing and the kernel was depending solely on the bootloader to bring the PHY out of reset. Fix this to get rid of the dependency on bootloader. Signed-off-by: Marek Vasut Cc: Geert Uytterhoeven Cc: Wolfram Sang Cc: linux-renesas-soc@vger.kernel.org To: linux-arm-kernel@lists.infradead.org Reviewed-by: Geert Uytterhoeven Tested-by: Niklas Söderlund --- V2: - Move the reset-gpios at the end of the list of nodes - Add TB/RB --- arch/arm/boot/dts/r8a7790-lager.dts | 1 + arch/arm/boot/dts/r8a7790-stout.dts | 1 + arch/arm/boot/dts/r8a7791-koelsch.dts | 1 + arch/arm/boot/dts/r8a7791-porter.dts | 1 + arch/arm/boot/dts/r8a7793-gose.dts | 1 + arch/arm/boot/dts/r8a7794-alt.dts | 1 + arch/arm/boot/dts/r8a7794-silk.dts | 1 + 7 files changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 097fd9317c6e..69745def44d4 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -674,6 +674,7 @@ phy1: ethernet-phy@1 { interrupt-parent = <&irqc0>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; micrel,led-mode = <1>; + reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>; }; }; diff --git a/arch/arm/boot/dts/r8a7790-stout.dts b/arch/arm/boot/dts/r8a7790-stout.dts index a315ba749aa4..4138efb2766d 100644 --- a/arch/arm/boot/dts/r8a7790-stout.dts +++ b/arch/arm/boot/dts/r8a7790-stout.dts @@ -203,6 +203,7 @@ phy1: ethernet-phy@1 { interrupt-parent = <&irqc0>; interrupts = <1 IRQ_TYPE_LEVEL_LOW>; micrel,led-mode = <1>; + reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; }; }; diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 2b096d5e06fb..687167b70cb6 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -633,6 +633,7 @@ phy1: ethernet-phy@1 { interrupt-parent = <&irqc0>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; micrel,led-mode = <1>; + reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>; }; }; diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts index f9ece7ab2010..a8e0335148a5 100644 --- a/arch/arm/boot/dts/r8a7791-porter.dts +++ b/arch/arm/boot/dts/r8a7791-porter.dts @@ -307,6 +307,7 @@ phy1: ethernet-phy@1 { interrupt-parent = <&irqc0>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; micrel,led-mode = <1>; + reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>; }; }; diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index 22ca7cd1e7d2..cfe06a74ce89 100644 --- a/arch/arm/boot/dts/r8a7793-gose.dts +++ b/arch/arm/boot/dts/r8a7793-gose.dts @@ -591,6 +591,7 @@ phy1: ethernet-phy@1 { interrupt-parent = <&irqc0>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; micrel,led-mode = <1>; + reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>; }; }; diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts index f79fce74cd9c..935935c1dbac 100644 --- a/arch/arm/boot/dts/r8a7794-alt.dts +++ b/arch/arm/boot/dts/r8a7794-alt.dts @@ -343,6 +343,7 @@ phy1: ethernet-phy@1 { interrupt-parent = <&irqc0>; interrupts = <8 IRQ_TYPE_LEVEL_LOW>; micrel,led-mode = <1>; + reset-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; }; }; diff --git a/arch/arm/boot/dts/r8a7794-silk.dts b/arch/arm/boot/dts/r8a7794-silk.dts index 2c16ad854300..9aaa96ea9943 100644 --- a/arch/arm/boot/dts/r8a7794-silk.dts +++ b/arch/arm/boot/dts/r8a7794-silk.dts @@ -394,6 +394,7 @@ phy1: ethernet-phy@1 { interrupt-parent = <&irqc0>; interrupts = <8 IRQ_TYPE_LEVEL_LOW>; micrel,led-mode = <1>; + reset-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; }; };