From patchwork Sun Jan 20 21:18:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joris OFFOUGA X-Patchwork-Id: 1028226 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SAv6gq0U"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43jTCf1XZbz9s9G for ; Mon, 21 Jan 2019 09:01:18 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 91741C21EC5; Sun, 20 Jan 2019 22:01:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id ACFD6C21E52; Sun, 20 Jan 2019 21:21:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AFD2EC21E4E; Sun, 20 Jan 2019 21:21:15 +0000 (UTC) Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by lists.denx.de (Postfix) with ESMTPS id 69D96C21C29 for ; Sun, 20 Jan 2019 21:19:13 +0000 (UTC) Received: by mail-wr1-f41.google.com with SMTP id 96so21118603wrb.2 for ; Sun, 20 Jan 2019 13:19:13 -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:in-reply-to:references; bh=32YbOLUHrXfFRJhLSPs25wPgroGTkfwccO1naSJ+DHQ=; b=SAv6gq0U2zOWTsLQwNK4CgMfoNn+cbsu3xf2kXm84XSPOx18XWvlJ9l5L0Mo6BglmI IyDPcmod67wdxETXYHVfcdEKDWjl+2ZVDyGjEL3Bb61AL3HX1n2LOfaLi4Q9FdopDW+1 YAi5tdNKalSZwariHGU1/jDX7fYXuK7d+wZsJYS8kiTrSZ26AotQyo4RjrwIdoauXlnW DNyZM/lyBrFlSJDTONDrb+xFOOqvNdl6Y5yLGKE2DZrFxzVtV6th2cdQLWlSme23CnR1 BvoykC+LGi9Xkh6zE+OS3Q0pMmc3A2a/0em7JEJjuiKwxTyC1ELB+fxZwZo8Kq/aTKGl lr3A== 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:in-reply-to :references; bh=32YbOLUHrXfFRJhLSPs25wPgroGTkfwccO1naSJ+DHQ=; b=CUZT0aPNWAxVPpRh7SaarY5BlmIsTv1KuEqqzVLboOjOQ8tHgr+4SVULxCtsx2vLKL dv9FfSDDllE6629vrMf9LmklIogzDZdLWIXJ0sWq68kEqDrc32uw36G44vJAkekO9WZK mT3451tCeTuD5VXaMBu98ka3pD+lt8o+hdyIQxejDysq9kpZf8b5Z8G31U9owtXn3Yi1 P2RJ/XQ1zXxevwkKKge2+3taAEN1EXmq3cNftnxBPu6tUhUxdx/gR5u71tqHgw/JY2TP 0QyDcHh6/gQX0hQuTqP75R3AsNKVdPBb5Be451SH6TLoPkkDwtDVKxo6IkY6BGsw433V F/xA== X-Gm-Message-State: AJcUukeWyG+3ZlpnNd0BZaxsDqib8Vw9oVuheZ4oNKcAGqJ6pzug2DZL z5duhzNeWKy5F823zwMYUZulliuN X-Google-Smtp-Source: ALg8bN59VsnlHbJVFV9vXiBzw3d1t1Mx8ZsKabpFX2DNSxUOMOK+fJ/ZH9RSXgUystc3g77mYvLeVA== X-Received: by 2002:a5d:4b8b:: with SMTP id b11mr25326201wrt.180.1548019152853; Sun, 20 Jan 2019 13:19:12 -0800 (PST) Received: from furher.home ([2a01:cb19:16b:9900:ff0c:8549:c9c0:534a]) by smtp.gmail.com with ESMTPSA id a1sm78857967wrw.76.2019.01.20.13.19.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Jan 2019 13:19:12 -0800 (PST) From: Joris Offouga To: u-boot@lists.denx.de Date: Sun, 20 Jan 2019 22:18:58 +0100 Message-Id: <1548019138-11133-10-git-send-email-offougajoris@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548019138-11133-1-git-send-email-offougajoris@gmail.com> References: <1548019138-11133-1-git-send-email-offougajoris@gmail.com> Subject: [U-Boot] [RFC 9/9] pico-imx7d: Convert to DM Ethernet X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Furthermore this patch fix request gpio_direction_ouput with gpio_request require because DM GPIO is enable Signed-off-by: Joris Offouga --- board/technexion/pico-imx7d/pico-imx7d.c | 1 + configs/pico-pi-imx7d_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c index 095242d..cfe6ce3 100644 --- a/board/technexion/pico-imx7d/pico-imx7d.c +++ b/board/technexion/pico-imx7d/pico-imx7d.c @@ -111,6 +111,7 @@ static void setup_iomux_fec(void) { imx_iomux_v3_setup_multiple_pads(fec1_pads, ARRAY_SIZE(fec1_pads)); + gpio_request(FEC1_RST_GPIO, "phy_rst"); gpio_direction_output(FEC1_RST_GPIO, 0); udelay(500); gpio_set_value(FEC1_RST_GPIO, 1); diff --git a/configs/pico-pi-imx7d_defconfig b/configs/pico-pi-imx7d_defconfig index 7f5c2e8..ab34382 100644 --- a/configs/pico-pi-imx7d_defconfig +++ b/configs/pico-pi-imx7d_defconfig @@ -29,6 +29,7 @@ CONFIG_PINCTRL_IMX7=y CONFIG_DM_GPIO=y CONFIG_DM_I2C=y CONFIG_DM_SERIAL=y +CONFIG_DM_ETH=y CONFIG_DM_USB=y CONFIG_DM_PMIC=y CONFIG_DM_PMIC_PFUZE100=y