From patchwork Tue Sep 14 03:25:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 1527723 X-Patchwork-Delegate: simon.k.r.goldschmidt@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=QWHSlWkg; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=vOTav9zs; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H7pg70Ywkz9sXS for ; Tue, 14 Sep 2021 13:26:58 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7A8A683AED; Tue, 14 Sep 2021 05:26:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1631589992; bh=GJdLhehk/A2Vot7lPO/nzgP5n1xd7NBBgYqMiALbkPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=QWHSlWkgDnsIqOunnTP/1dFI5g/+BCdZbM8L2Vc9CFwZJ5hJHodlNl7+1jFdYUc/D w5Z2F0DmAYfmOexD/z4F8lh+w6tbvEtgVy1Xn4P3OQXXT7iKTd1HIgMNyOZ6HsakbY 2HerVBBLLPSlj1HJy5jxM4CPDCvIrHo9iKN+4pL/xVWwmLbAdcAdx+h6PwU5mS1PXH R6SVT4aoMd4BwdRvYScu3g/dCvBSZef8bxUAMf3ZnVhhL61XR2Dmm5+LEcA4Ng03JB jeEO06zmInBdArxVugTrv9PSxQ8QU/dnIgk2FuxLxzFqLb1Y9ED87Mdqh8MdQrqEat /FhjplYfdtd8g== Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id E786383A73; Tue, 14 Sep 2021 05:25:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1631589955; bh=GJdLhehk/A2Vot7lPO/nzgP5n1xd7NBBgYqMiALbkPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vOTav9zslPTb4aTQmq47yNTd69cYSvOW+NppfqyGitJ7lM9/HiAG1YrKp7enHuaX2 AkS7mcn74RPyhLjkWYJfcOx2DzQ+R7XSZvSNscgas3U9Lsdfy8zkmUrd/8Z4AUWJ4t lwLSxTALx848zqTwF0ptxKyDT4PUgvu/4W+c4Sw96to+SJFsLPHczf02mVw8GlspcT mxmh6+NjaKCZvXeS8qnLZfc/aPBIBtWHgejzP7V+4gznxUdk9s6HEaWNYpNE5RJbDh KL7rAlQILtjSJPBTe0tBoNDr6Ly8ijdqdYHn0cukGJoCCAbGimtDMHU0WYzYLto7Z1 B17ob7X1bVNjw== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Siew Chin Lim , Simon Goldschmidt , Tien Fong Chee Subject: [PATCH 8/8] arm: socfpga: vining: Let DWMAC configure PHY reset GPIO Date: Tue, 14 Sep 2021 05:25:36 +0200 Message-Id: <20210914032536.273530-8-marex@denx.de> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210914032536.273530-1-marex@denx.de> References: <20210914032536.273530-1-marex@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean The DM DWMAC driver is perfectly capable of configuring the ethernet PHY reset GPIO, let the driver do it instead of doing it in the board file. Signed-off-by: Marek Vasut Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee Reviewed-by: Tien Fong Chee --- board/softing/vining_fpga/socfpga.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/board/softing/vining_fpga/socfpga.c b/board/softing/vining_fpga/socfpga.c index aaedf034504..22992273911 100644 --- a/board/softing/vining_fpga/socfpga.c +++ b/board/softing/vining_fpga/socfpga.c @@ -23,7 +23,6 @@ DECLARE_GLOBAL_DATA_PTR; */ int board_late_init(void) { - const unsigned int phy_nrst_gpio = 0; const unsigned int usb_nrst_gpio = 35; int ret; @@ -33,12 +32,6 @@ int board_late_init(void) /* Address of boot parameters for ATAG (if ATAG is used) */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; - ret = gpio_request(phy_nrst_gpio, "phy_nrst_gpio"); - if (!ret) - gpio_direction_output(phy_nrst_gpio, 1); - else - printf("Cannot remove PHY from reset!\n"); - ret = gpio_request(usb_nrst_gpio, "usb_nrst_gpio"); if (!ret) gpio_direction_output(usb_nrst_gpio, 1);