Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14B31C4338F for ; Thu, 12 Aug 2021 06:19:12 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0467F60F57 for ; Thu, 12 Aug 2021 06:19:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0467F60F57 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8047A82CE2; Thu, 12 Aug 2021 08:19:08 +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=1628749148; bh=KL9dzDwxF11cUqS9z2pyVW/vc7Num7Dr2SQcYimN6Ss=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=dr3RWkw77U56TbJlOMM+n6B0dlZ5v32HXkBV2duX7q8CSDn92+BODWw+X2C6Ejcmi AP4S3Q5r2M+mK2B5EWayE0nU9gT4N3yPpjgWZxAoRcljGNH2cC42Z8EJzyPTjSccCp 650JAHyuThvVIpcoX9panmDlehpSqtU78EahsStljiZwRq1bxSHMpST2kHHoY3PMdH LORbKudtsUqiZIX41ZCde+XZ/fLYcNEGg8JeZI/F/gXaf2GymCWCEu5g3OYlP6BAoZ 6X37g2nqeR5ojJ9JwgFmTUKz95xqbIZ0XfQ5KEQF/VU4AduUzuNxjV3sZdFZY3QQRP mpHXvpvELkYuQ== Received: by phobos.denx.de (Postfix, from userid 109) id B02F081FC6; Thu, 12 Aug 2021 08:19:07 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:1::465:204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7C55381FC6 for ; Thu, 12 Aug 2021 08:19:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4Glc2v1pcgzQk3V; Thu, 12 Aug 2021 08:19:03 +0200 (CEST) Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id ngVGgAM5UfEv; Thu, 12 Aug 2021 08:19:00 +0200 (CEST) Subject: Re: [PATCH 0/3] common: Add fdt network helper To: Tony Dinh , U-Boot Mailing List , Simon Glass , Ramon Fried , Joe Hershberger Cc: Tom Rini References: <20210806044910.23500-1-mibodhi@gmail.com> From: Stefan Roese Message-ID: Date: Thu, 12 Aug 2021 08:18:59 +0200 MIME-Version: 1.0 In-Reply-To: <20210806044910.23500-1-mibodhi@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 662931899 X-Rspamd-UID: f0bcb0 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 Hi Ramin, Hi Joe, On 06.08.21 06:49, Tony Dinh wrote: > > At the moment, there is no common fdt helper function specific to decoding network related > information from FDTs. This new helper functional group fdt_support_net is intended to be used > by board-specific code within U-Boot for various network related chores. > > In this patch, create the 1st function fdt_get_phy_addr to parse the device tree to find > the PHY addess of a specific ethernet device. Ramon & Joe, could you please also take a look at this patchset? And let us know if this is okay or if you have some comments? Thanks, Stefan > > Tony Dinh (3): > Add fdt network helper header file > Add fdt network helper functions > Add fdt network helper to Makefile > > common/Makefile | 2 +- > common/fdt_support_net.c | 46 +++++++++++++++++++++++++++++++++++++++ > include/fdt_support_net.h | 39 +++++++++++++++++++++++++++++++++ > 3 files changed, 86 insertions(+), 1 deletion(-) > create mode 100644 common/fdt_support_net.c > create mode 100644 include/fdt_support_net.h > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de