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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 77FB3C433FE for ; Wed, 23 Feb 2022 14:45:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9C47283C8F; Wed, 23 Feb 2022 15:45:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="f9zqj+Kp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A47E583B94; Wed, 23 Feb 2022 15:45:47 +0100 (CET) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (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 A134C8390B for ; Wed, 23 Feb 2022 15:45:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ed1-x536.google.com with SMTP id cm8so34975827edb.3 for ; Wed, 23 Feb 2022 06:45:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IAAcMeg96DAkmtQHzO6vbZRcBkqozq+05Qp3Tnt8xkM=; b=f9zqj+Kpp72hN8dVwNqPj6p1ettTbb76r82cnfx4yH3RGjmc2+1EQBXYe2RjS+byH4 YDhz3NQ5H+fSUWWxpJxvcqeAGNya72ae16rGzxyniKo4jxEsXJyni6Qqmi1OKEScHSgc wBWLvDhatg00bb7rBtVvMIOPWa+0Bs4GDZnrSoi142fhDWcvsvCB7HRT7ZKnN5c4IsIs 7NcxKNjp8BoWKTs7mX+M4AUj8R3fTilbo2D0x2iHooxSuDoKL4apMAABw+siy7ATcuSv yEiv7QxZQU9Y6KMj2boFvuYTLVYJFxEM9JAYDqm4orIuMk9mO6dBkjIRepufSyBQgL44 4WAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=IAAcMeg96DAkmtQHzO6vbZRcBkqozq+05Qp3Tnt8xkM=; b=F9UxoW6cJDbBKlb+5kOK58lbwOvACzZk9erOF+QUmQYo/DO+3gULG+P6aM2MG4GZrY ixLGzcoMP1ogmbwy6tpwmUA+V1x6UFAZ8UaW3qTsH+czUdh0ZnqQjj39GrF1TZnGEPhu ZphCbtzqeETO4kC1FBXSE5mqr0RXhMyhGEti1F/06msgPTfCU+CnitZdJlCGwxjih3vO +kOAUoFhcCBG3oiCe54DZXTF/f6De+9nNK5Moo+yS0+taoDELqDQN52sECH0+JoivzBm Bc8B6CcReu2RHiMBXJ6fMINcX/qjwJeuaQLRsnso4yzwM4d6Lfr0m+Ca29c1I+MNbddd guPA== X-Gm-Message-State: AOAM531PwV5hB8gjd+RyjPTrjce8v4MeF1y6bYRFp4ZCF6n5EPG8nMo5 yLsn70q2k/Zs1ZiWIgFPJGptFG785Sx5Wg== X-Google-Smtp-Source: ABdhPJxkHYagxO907AXJSt+9nCS3yPpG7EfhpC7srZjc+HXMU9DYMgqE/zjunuWNZBrxFlX8eSS8jw== X-Received: by 2002:a50:fa93:0:b0:40f:d482:ef63 with SMTP id w19-20020a50fa93000000b0040fd482ef63mr31155997edr.348.1645627544045; Wed, 23 Feb 2022 06:45:44 -0800 (PST) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id el9sm7806669ejc.168.2022.02.23.06.45.43 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Feb 2022 06:45:43 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Bin Meng , Christian Gmeiner , Dominic Rath , Joe Hershberger , Kuldeep Singh , Michal Simek , Priyanka Jain , "Radu Pirea (NXP OSS)" , Ramon Fried , Samuel Holland , Simon Glass , T Karthik Reddy , Vladimir Oltean , Wolfgang Denk Subject: [PATCH 0/3] net: phy: Add support for ethernet-phy-id Date: Wed, 23 Feb 2022 15:45:39 +0100 Message-Id: X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean Hi, this series is adding support for ethernet-phy-id with reset gpio support. There is another series related to DM_ETH_PHY but it is missing creating phy devices based on decoded phy IDs from compatible string. We would like to adopt DM_ETH_PHY in our driver but still this series can be useful for other drivers which are not DM_ETH_PHY ready. At the end this same file should be used also for DM_ETH_PHY driver. The reason for complete separatation from phy.c is that there is requirement for gpio headers which is not done by all arch. That's why new symbol and separate file is the way to go. Thanks, Michal Michal Simek (3): net: phy: Add new read ethernet phy id function net: phy: Remove static return type for phy_device_create() net: phy: Add support for ethernet-phy-id with gpio reset MAINTAINERS | 1 + drivers/core/ofnode.c | 36 ++++++++++++++++++ drivers/net/phy/Kconfig | 8 ++++ drivers/net/phy/Makefile | 1 + drivers/net/phy/ethernet_id.c | 69 +++++++++++++++++++++++++++++++++++ drivers/net/phy/phy.c | 11 ++++-- include/dm/ofnode.h | 13 +++++++ include/phy.h | 26 +++++++++++++ 8 files changed, 162 insertions(+), 3 deletions(-) create mode 100644 drivers/net/phy/ethernet_id.c -- 2.35.1