From mboxrd@z Thu Jan 1 00:00:00 1970 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT 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 88D6EC432BE for ; Fri, 6 Aug 2021 04:50:03 +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 6F37E6054E for ; Fri, 6 Aug 2021 04:50:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6F37E6054E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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 472A182BC4; Fri, 6 Aug 2021 06:50:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TDJP4BWg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4CC4981468; Fri, 6 Aug 2021 06:49:58 +0200 (CEST) Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 109E180C84 for ; Fri, 6 Aug 2021 06:49:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mibodhi@gmail.com Received: by mail-pj1-x1033.google.com with SMTP id ca5so14335399pjb.5 for ; Thu, 05 Aug 2021 21:49:53 -0700 (PDT) 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=r4bEDjVbdJf2l+U93xX6grSYEzDRF4MGJsWEIALv0fM=; b=TDJP4BWg1guyrmP13q6l6MovLgD2HbwtvTVyjD/f37RFtsnjk2WaZzMhlrOsAdcWv2 hXSxdxAoXXLiFk+tEOOCMM2wQSqM+7dn6FHmNah244WraMU6ySQ8SmUQdwRLdykTFbKw A+6lWAXAy9kOPDKyUdcI8uoXseSfJ8YnI++Z75323wKsNBBKyYubfpZLbGfSo+TN7ClI 4MufAlziDlGZMtpSV/WydoAzA1PrPIQzJqAaH/z0kS7asy2Lzf36tEwT+9pgKvr3IC2v 2QcR5X9+MS8G8PBxkGgZSDdV/Z8nwmNkcIfLM9UlJmEkK6Jd25FGyHOnDyJ5Rp7rTv/P PwXg== 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=r4bEDjVbdJf2l+U93xX6grSYEzDRF4MGJsWEIALv0fM=; b=tHS5mBY2coOh9pR0RegiEGU1dVE3+w911DZ8xCOaoAcneJvHFoPm3GdEFA1oLpo/eo ZWZj5+R/ulWeWSRSS2hqIP3ZhM5wDn5GNC7QJANIuHi5AEZIwsb06uYQvPzb/o6EBL96 l234+i31gdOLpzFpqxFcBDDOrZXCdoVvFikBSvpmieAyon9nkecthYhEkZDdJ1kmvo/r R1mG8T2HduE1t7Gkevlg0Gj1Reralkz0gam1Cec4UGc4aBjhRWpri37SbMKEoKH/fBgf kVVk3bZ7luMvcbUcovJcmf6el1fc6XohieGGd2HiUSXJp3WciI8lAw+sbDoQmO+WYPiv vI5A== X-Gm-Message-State: AOAM532Z1r88IBc1Atzi1lHhbXD2sK7eXkrwqGVuPmBnlROBLbTnc52P mccL/aiOSwCkgTDzNbUykPKOGPvZF98= X-Google-Smtp-Source: ABdhPJypn4Ofza3deOnIGBVwDDnM7nmkrUJLkpmWujdgXDUKDDcuf2nehDDDJd4BNnFT6vD2He865A== X-Received: by 2002:a17:90a:ce03:: with SMTP id f3mr8234460pju.30.1628225392142; Thu, 05 Aug 2021 21:49:52 -0700 (PDT) Received: from localhost.localdomain ([66.218.48.244]) by smtp.gmail.com with ESMTPSA id m11sm11394074pjn.2.2021.08.05.21.49.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Aug 2021 21:49:51 -0700 (PDT) From: Tony Dinh To: U-Boot Mailing List , Stefan Roese , Simon Glass , Ramon Fried , Joe Hershberger Cc: Tom Rini , Tony Dinh Subject: [PATCH 0/3] common: Add fdt network helper Date: Thu, 5 Aug 2021 21:49:07 -0700 Message-Id: <20210806044910.23500-1-mibodhi@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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. 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 -- 2.20.1