From patchwork Tue Jun 18 16:13:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 13702670 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68CA0C27C4F for ; Tue, 18 Jun 2024 16:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:Cc:To:Subject: From:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EXo/QTk9S2oDpiVRUgo6dP/AxWHxResGWckac8KsABI=; b=q4FRHh1PzlbWQK Us5nH4o4oXVfD72wBuJdODIl0D4sUedaP03kjN6snxKf5v9syHVLUx/WqstIQgRgnwzDBopGZDZ6o CuylxMsuG4slznBQP53yj9SXeS5RCJ84Rw6Pyv2nFgdBP+tIEYX/6B8ZpgUhsv+7neYC4o9gKTxeD UCIwqH12gIQzYlJDJQkzkPauNK3I+hwzA+uokff0Auj7hcJXr2CW/8VNHkW/8nTAiLJ4uPdsBnuxK r4GUBon1t3dftZJodJ4tNS2l2OKsai9Ywd4eJva+vxh4VUKyNGgnByskH3fTLgIjShRtDfXXT+U2q /mG+OEKU3yUC4yUzujRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbT9-0000000Fnfj-2tgB; Tue, 18 Jun 2024 16:14:03 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbT6-0000000FneC-0I4V; Tue, 18 Jun 2024 16:14:01 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a6f958a3a45so128797266b.3; Tue, 18 Jun 2024 09:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718727238; x=1719332038; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=WWTx77d5eJnGnctm36s2wsX3pxrVWFjQDRGqkPWp/lw=; b=hqCyJnibkmnwtTdKnCsLUWXlsGz397JTpDngRC5UOCxg6uZHGdYYfUdAifSVX8/RHB o+bxrLtPXE4KLTbF2v4r+jOnH+QjiSFyDBQfX3+yBplfKrmogWR0TU2E3xtj+SEGZpnB G1wev7daFYY3rNwqJITjRH6KXgAF3P0MRrRpS4Ng6MCYEi5Mv95G/kX7MhG2efMlfVSe XiJVBKQBGl+e/lx7raxDI0hWn0AeH4weoEX7q8OeRewBeEQoPKe6jSp/ftbpIkrXnGtv mcpZkFIlhM7s6uDaRvEQX4G4302GZ8+ZlIvap1TfnH6C/BXggtnfJQzshxP4w9CpfpM3 LxKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718727238; x=1719332038; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WWTx77d5eJnGnctm36s2wsX3pxrVWFjQDRGqkPWp/lw=; b=jJvCQqZv89acsY1ggGbI2JGldnVnyFGov+nk3QZMVBicuHb+CaoK4ho5zyc9078hUe tcpDAypTyYISQ+wzTYRF2yd3NGzOW5sHovUpsmL27E6cM4o6ASRkjwga9LDF8daAwCfQ DsIuQs5cC6CAvwC+0Tvp9NUmwlib0NcRV4gqm8Hx2wHKTw8KGkiciNTKF2Uo5Xr2HBcB wWfFV9gPxJSmGde6V/3scB2KC/OJXEwW3N4ebBwAmvuJn3fETa+15HxkyiY0hdhxYf36 hCXtSUgN4lwJ3ILPAvQDVzRh4K514P9Kd6d3t7H/fGZCRxndsBFjySd5UtUwSLWgsPJU XTwQ== X-Forwarded-Encrypted: i=1; AJvYcCXcECcyzApI/VLyVFy7pOnjv9wH8e4G50BtvK9ZhiSI9ywInEz2BVc7JO80p26uSDyP634+zOsvaq9DOp9+8Xgp505jPuKXc0tfNq7PSjlQ5GdHlyxuulFrgtjNPb2J7JNsZodjiAXUXGSR7V2B7+pp3SvDF+y7PgA= X-Gm-Message-State: AOJu0YzDlJ2Uj35Ca34aAtAsyy+E/jT2qvZTu8hOuYrFykOP0MM89DrM 6e1A8k7YPKaTPlqMVREPlnOHjt08kBFepd7TjbTFrJcH82DIbcY/ X-Google-Smtp-Source: AGHT+IFrJd2P1zNowiuFxfXKuLeFkY8i8OFcYY9grJ9wDu0sz0akTQp39THa3fEyzQyVz6uSY4TVxw== X-Received: by 2002:a17:907:a645:b0:a6f:8f20:a0b with SMTP id a640c23a62f3a-a6f8f200abcmr324363766b.30.1718727238121; Tue, 18 Jun 2024 09:13:58 -0700 (PDT) Received: from ?IPV6:2a02:a449:4071:1:32d0:42ff:fe10:6983? (2a02-a449-4071-1-32d0-42ff-fe10-6983.fixed6.kpn.net. [2a02:a449:4071:1:32d0:42ff:fe10:6983]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56dd3109sm633560966b.95.2024.06.18.09.13.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jun 2024 09:13:57 -0700 (PDT) Message-ID: <12f50bef-ba6e-4d96-8ced-08682c931da9@gmail.com> Date: Tue, 18 Jun 2024 18:13:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Johan Jonker Subject: [PATCH v1 1/3] ARM: dts: rockchip: rk3xxx: fix emac node To: heiko@sntech.de Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <0b889b87-5442-4fd4-b26f-8d5d67695c77@gmail.com> Content-Language: en-US In-Reply-To: <0b889b87-5442-4fd4-b26f-8d5d67695c77@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_091400_157444_D156E3F3 X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org In the combined DT of rk3066a/rk3188 the emac node uses as place holder the compatible string "snps,arc-emac". The last real user nSIM_700 of the "snps,arc-emac" compatible string in a driver was removed in 2019. Rockchip emac nodes don't make use of this common fall back string. In order to removed unused driver code replace this string with "rockchip,rk3066-emac". As we are there remove the blank lines and sort. Signed-off-by: Johan Jonker Reviewed-by: Heiko Stuebner --- [PATCH 8/8] ARC: nSIM_700: remove unused network options https://lore.kernel.org/all/20191023124417.5770-9-Eugeniy.Paltsev@synopsys.com/ --- arch/arm/boot/dts/rockchip/rk3066a.dtsi | 4 ---- arch/arm/boot/dts/rockchip/rk3xxx.dtsi | 7 ++----- 2 files changed, 2 insertions(+), 9 deletions(-) -- 2.39.2 diff --git a/arch/arm/boot/dts/rockchip/rk3066a.dtsi b/arch/arm/boot/dts/rockchip/rk3066a.dtsi index 5e0750547ab5..3f6d49459734 100644 --- a/arch/arm/boot/dts/rockchip/rk3066a.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3066a.dtsi @@ -896,7 +896,3 @@ &vpu { &wdt { compatible = "rockchip,rk3066-wdt", "snps,dw-wdt"; }; - -&emac { - compatible = "rockchip,rk3066-emac"; -}; diff --git a/arch/arm/boot/dts/rockchip/rk3xxx.dtsi b/arch/arm/boot/dts/rockchip/rk3xxx.dtsi index f37137f298d5..e6a78bcf9163 100644 --- a/arch/arm/boot/dts/rockchip/rk3xxx.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3xxx.dtsi @@ -194,17 +194,14 @@ usb_host: usb@101c0000 { }; emac: ethernet@10204000 { - compatible = "snps,arc-emac"; + compatible = "rockchip,rk3066-emac"; reg = <0x10204000 0x3c>; interrupts = ; - - rockchip,grf = <&grf>; - clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>; clock-names = "hclk", "macref"; max-speed = <100>; phy-mode = "rmii"; - + rockchip,grf = <&grf>; status = "disabled"; }; From patchwork Tue Jun 18 16:14:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 13702671 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 86A2CC41513 for ; Tue, 18 Jun 2024 16:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:Cc:To:Subject: From:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dvRvPgrx6nOPTYX1Iay1ZtaDgleN6PQoturtJmRvuN4=; b=DjDVTEah46Njb2 BvezkTQvmdQKbkUB33Rf+vbJ3fq2LmGhXNHwjPS14x02seN1+g0ekoHZdWOci4zY7oyIG3EMYkZzm TXqgHhK7gz9Pi2v+EfLvhbBbx/YGga7jyT/FGTxpe1TXli1vNh+ImZEeSQahnJf51BblXahf99S8Y LK7i3EnEfPCtp0irstp2t5BOYikVKHgnXvc5ULEj5aOOXX7JI6bucUg7mNsSAHe66oQfdjNs0kBjd f485BSjDkjqmhUlOdI5DSswkKnB7Los+4jy+6hchAqOLp/YeMGDHTdssAoEgSyKy3VEjhk9ANS7R0 AwjB+LVTRyUAkrDJuxxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbTS-0000000Fnnd-0UXl; Tue, 18 Jun 2024 16:14:22 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbTO-0000000Fnlt-2Kc8; Tue, 18 Jun 2024 16:14:20 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-57cc1c00ba6so4978419a12.1; Tue, 18 Jun 2024 09:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718727257; x=1719332057; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=MHpqHwSy4KYPzb2c3Q3KXN0Mser02EbTTG6K/yRuAZs=; b=WFRcA2B/VYSA6SHhR267rm+LB495smv6chtWskxwTx5VKhcwVTiZojk3hLTGR1cv+k UXCiVbXY4xQstVbsIl0TP40ty07Ai0n0i5v58gO53PeVGvwBJ1lQtQADTmVnoNEAjXcn XassAcwx9dQijUYoDJ2y9+zK2Z7jWTcT4oVRAb/lznxX+JlRFq/fFBnvZgaolfj318vF Y5IQjRLHl3bqF/FVxt/5PojGqTO6t7I28hYQ1cHs+sN9pfuw5lXtxwuXYvapOjWAKleA 8TjAmIKEIXW2nKuxg8pQlPZTqG24DWpeO9U5H6I1RjPVfbcUHsUcWEcSS4vPOR88nAYx 45ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718727257; x=1719332057; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MHpqHwSy4KYPzb2c3Q3KXN0Mser02EbTTG6K/yRuAZs=; b=ApmysXyjEgnB5XITRfEv/lX3nbArmXTcjK/ESfgqoV0QjP96MTwXJUGjRQ804u35tm fEsrImS6EYtVHVO58+MUVBO+wZcff7FwLUzJYnOh3Z2VRzx48d9KS1Pw1Wus7sZuCVdF YJzDpnFgeUuTQFP3pgv3Njdnio1pDme6fgNJd21G20qLXIXzbFrI5E7ErUf7wYsPDFj+ wZtRgWPL8DRFj8sjojVZsaKQkUVNSnrMqBkFr+0XNmhsLopl56cYkQw+KCCTAuCey/pJ ixx31+x+KuyS0UtIpFdR+nq+mEZdRkrzs7VWVuBfaoc5YINX14chk4REj05otmU1Vc5M JYZA== X-Forwarded-Encrypted: i=1; AJvYcCX8e7DNwFnv7Dy6Ca2PmXGluEFpDgruAvRfU8kZCXDTLsDhnhqmSgwLX+2g+XUemNpHooksbLOiTKcxh4JW3vaybPbzs6Mrfptux08e6DOWlv+Kjq3hIsISVnP/AmrKeJsliULwG/EJXFyu6OI/bRxE4SJIREVPP1w= X-Gm-Message-State: AOJu0YwKRui/G2mLH98O0WpZH+7vDzadxeq3MMksyVpmxnfoXRaIumNn HtkNDy6RzALmiqpIE72/TckjEAa/4RptnKMn/Oiv3btjkOY05+5R X-Google-Smtp-Source: AGHT+IF4qoy4FyZNZ33sBu4xEJ8HsHgXiY6yT6ylLh0f4gldGPhBoCPwJwT5u2HAE/GzMi5jYzStSw== X-Received: by 2002:a50:bb4b:0:b0:57c:f091:f607 with SMTP id 4fb4d7f45d1cf-57cf091f624mr3009163a12.29.1718727256750; Tue, 18 Jun 2024 09:14:16 -0700 (PDT) Received: from ?IPV6:2a02:a449:4071:1:32d0:42ff:fe10:6983? (2a02-a449-4071-1-32d0-42ff-fe10-6983.fixed6.kpn.net. [2a02:a449:4071:1:32d0:42ff:fe10:6983]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57cb72e992dsm7870062a12.48.2024.06.18.09.14.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jun 2024 09:14:16 -0700 (PDT) Message-ID: <10d8576f-a5da-4445-b841-98ceb338da0d@gmail.com> Date: Tue, 18 Jun 2024 18:14:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Johan Jonker Subject: [PATCH v1 2/3] net: ethernet: arc: remove emac_arc driver To: heiko@sntech.de Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <0b889b87-5442-4fd4-b26f-8d5d67695c77@gmail.com> Content-Language: en-US In-Reply-To: <0b889b87-5442-4fd4-b26f-8d5d67695c77@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_091418_626929_90BB40B6 X-CRM114-Status: GOOD ( 17.36 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The last real user nSIM_700 of the "snps,arc-emac" compatible string in a driver was removed in 2019. The use of this string in the combined DT of rk3066a/rk3188 as place holder has also been replaced, so remove emac_arc.c to clean up some code. Signed-off-by: Johan Jonker Reviewed-by: Simon Horman Acked-by: Paolo Abeni --- [PATCH 8/8] ARC: nSIM_700: remove unused network options https://lore.kernel.org/all/20191023124417.5770-9-Eugeniy.Paltsev@synopsys.com/ --- drivers/net/ethernet/arc/Kconfig | 10 ---- drivers/net/ethernet/arc/Makefile | 1 - drivers/net/ethernet/arc/emac_arc.c | 88 ----------------------------- 3 files changed, 99 deletions(-) delete mode 100644 drivers/net/ethernet/arc/emac_arc.c -- 2.39.2 diff --git a/drivers/net/ethernet/arc/Kconfig b/drivers/net/ethernet/arc/Kconfig index 0a67612af228..0d400a7d8d91 100644 --- a/drivers/net/ethernet/arc/Kconfig +++ b/drivers/net/ethernet/arc/Kconfig @@ -23,16 +23,6 @@ config ARC_EMAC_CORE select PHYLIB select CRC32 -config ARC_EMAC - tristate "ARC EMAC support" - select ARC_EMAC_CORE - depends on OF_IRQ - depends on ARC || COMPILE_TEST - help - On some legacy ARC (Synopsys) FPGA boards such as ARCAngel4/ML50x - non-standard on-chip ethernet device ARC EMAC 10/100 is used. - Say Y here if you have such a board. If unsure, say N. - config EMAC_ROCKCHIP tristate "Rockchip EMAC support" select ARC_EMAC_CORE diff --git a/drivers/net/ethernet/arc/Makefile b/drivers/net/ethernet/arc/Makefile index d63ada577c8e..23586eefec44 100644 --- a/drivers/net/ethernet/arc/Makefile +++ b/drivers/net/ethernet/arc/Makefile @@ -5,5 +5,4 @@ arc_emac-objs := emac_main.o emac_mdio.o obj-$(CONFIG_ARC_EMAC_CORE) += arc_emac.o -obj-$(CONFIG_ARC_EMAC) += emac_arc.o obj-$(CONFIG_EMAC_ROCKCHIP) += emac_rockchip.o diff --git a/drivers/net/ethernet/arc/emac_arc.c b/drivers/net/ethernet/arc/emac_arc.c deleted file mode 100644 index a3afddb23ee8..000000000000 --- a/drivers/net/ethernet/arc/emac_arc.c +++ /dev/null @@ -1,88 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/** - * DOC: emac_arc.c - ARC EMAC specific glue layer - * - * Copyright (C) 2014 Romain Perier - * - * Romain Perier - */ - -#include -#include -#include -#include - -#include "emac.h" - -#define DRV_NAME "emac_arc" - -static int emac_arc_probe(struct platform_device *pdev) -{ - struct device *dev = &pdev->dev; - struct arc_emac_priv *priv; - phy_interface_t interface; - struct net_device *ndev; - int err; - - if (!dev->of_node) - return -ENODEV; - - ndev = alloc_etherdev(sizeof(struct arc_emac_priv)); - if (!ndev) - return -ENOMEM; - platform_set_drvdata(pdev, ndev); - SET_NETDEV_DEV(ndev, dev); - - priv = netdev_priv(ndev); - priv->drv_name = DRV_NAME; - - err = of_get_phy_mode(dev->of_node, &interface); - if (err) { - if (err == -ENODEV) - interface = PHY_INTERFACE_MODE_MII; - else - goto out_netdev; - } - - priv->clk = devm_clk_get(dev, "hclk"); - if (IS_ERR(priv->clk)) { - dev_err(dev, "failed to retrieve host clock from device tree\n"); - err = -EINVAL; - goto out_netdev; - } - - err = arc_emac_probe(ndev, interface); -out_netdev: - if (err) - free_netdev(ndev); - return err; -} - -static void emac_arc_remove(struct platform_device *pdev) -{ - struct net_device *ndev = platform_get_drvdata(pdev); - - arc_emac_remove(ndev); - free_netdev(ndev); -} - -static const struct of_device_id emac_arc_dt_ids[] = { - { .compatible = "snps,arc-emac" }, - { /* Sentinel */ } -}; -MODULE_DEVICE_TABLE(of, emac_arc_dt_ids); - -static struct platform_driver emac_arc_driver = { - .probe = emac_arc_probe, - .remove_new = emac_arc_remove, - .driver = { - .name = DRV_NAME, - .of_match_table = emac_arc_dt_ids, - }, -}; - -module_platform_driver(emac_arc_driver); - -MODULE_AUTHOR("Romain Perier "); -MODULE_DESCRIPTION("ARC EMAC platform driver"); -MODULE_LICENSE("GPL"); From patchwork Tue Jun 18 16:14:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 13702672 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 64C4FC27C4F for ; Tue, 18 Jun 2024 16:14:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:Cc:To:Subject: From:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AcVWJ1B0A1WWI8aojmuF1UCIHdddkzukggFW31cA/O0=; b=ugOLOFdm5UzL70 XxQwUt9qH3RQQVu9dngen+4CndR38iMrOWnkKJVv30dEHerMdM1JkSWRWWsvZpd8rgqnUW1O8idX0 RE6qk5iyfCnGR3Nj1AkkMmOA6PuRWnEoQcaSvZotc51fSKkLB+1lhUyWvvMjGC+2/hCSBHbkpb5eL lvdMPThEcugKE2H9Kfw1DC3/CRKlfsAuBA/2ot0dza4HqWWTmdE6I/C6WoBQzsVEpenmPqrqzWRSM 97kOyaOdKMjij/RU3qcSaBS6XKQI1Zw7UsmxE08PXSIbIt7/s05PROXFZyMtamJS94L39y3VVerWj aPy946p5G8ULvbwpGMfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbTk-0000000FnwS-1ibl; Tue, 18 Jun 2024 16:14:40 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbTg-0000000Fnte-22p8; Tue, 18 Jun 2024 16:14:38 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a6f1da33826so779343566b.0; Tue, 18 Jun 2024 09:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718727275; x=1719332075; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=lXY2wNetGBX4+8SEarC8cQJ8+XvQEsopyU4osLmOcK0=; b=f+u9XuooV+TMmqSmS6eHynjOT2X6rHpoU3muwYJOeXnm3T73OhGp/ePswAPd0qzpsg c+kB19m7X9LB0Yw518/vJeEy5W38dXBeErkOs8M1yRBjw8ZWNBDQcMEFv5ZgqkEkmLb2 eJ7Z6JOGhS4xDvZG8uLtOfSvZPn9YCN5WJRupc6k5F4smHsJzMPEHPPPl3DdwL8eX6xe o4WGpDS9TKvOoN/DAl2O7ydd8X/nX7kbbfAyaHSbVqiUTmyqL/DvmmhYdoB5/322VuxG uJpfDu/8xSGbE1DABNmdqANmMaMMXl/2DAm/4qGw1nEnyuOPAuUJH6ix6vufd3AjWEvv W7sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718727275; x=1719332075; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lXY2wNetGBX4+8SEarC8cQJ8+XvQEsopyU4osLmOcK0=; b=PTIy6yhytP2Of6cxPl2HnxyGnoxnjG9WHDEuZoZH+pWYo97Olee4RoXuMoI+Hw2wKh 5I/J71qZaCrDDTNLqTB0sitqKsT0xj0NYWGWZzSCtdbm4UWBRtqMNOwFe4a/G7V+Rp1D APk6Bs4mD+H+tcN63xa1Mf9kBs9GD6jr1p6bHnHG2mlxMOISYabALtSKt/5rPL5aM3xQ OBmlLvv6hstoaOxI0b9VcEQjDcK77Rvs/hzomtk46x0VjPuben7+yQTApjw2vFg1IvFv F+jCKqB5e35lOEvSs6kJ+YziiHaN09WZCvaj8oL9XREvCgiJJtQlkO24zxGx/P/h2X1h w2iw== X-Forwarded-Encrypted: i=1; AJvYcCVAHjhZbhnKD39FebRO3jUSe29SJBBkAIQWshzVpVlzUgx3tcNdA0bfHRhGcy6Qr9Jmw6Fv+Th4ClUb3LWrmwn5sOsuHsezC74j3FdPzrdQ43XKIesrq7KT4CXY9lS8tC5I3JNHbNn7QLG2qJon6iyGo8K6ZuMB5f8= X-Gm-Message-State: AOJu0YziEbX/DmxRs8ZXIQq/Pd/sK0dexE2i2+wEZL6hrW4Ns8wu1QBf LdBVlpWCet1cK8ZE/ErId7VY6djtvsro6Sbv5DKCzvlaxOA8RQ1i X-Google-Smtp-Source: AGHT+IFB+t722ELPdoX0iI8u6bwyvFZWAx3Dyl72/Psm768hxsjFKwtHjQqf3M69ACUYk4beBIapeA== X-Received: by 2002:a17:906:b088:b0:a6e:5801:ed43 with SMTP id a640c23a62f3a-a6f60d38249mr1001596066b.30.1718727274772; Tue, 18 Jun 2024 09:14:34 -0700 (PDT) Received: from ?IPV6:2a02:a449:4071:1:32d0:42ff:fe10:6983? (2a02-a449-4071-1-32d0-42ff-fe10-6983.fixed6.kpn.net. [2a02:a449:4071:1:32d0:42ff:fe10:6983]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f8a6e58bdsm207763166b.187.2024.06.18.09.14.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jun 2024 09:14:34 -0700 (PDT) Message-ID: <1a45f178-3ed4-49cc-9bb9-c1f9978356bb@gmail.com> Date: Tue, 18 Jun 2024 18:14:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Johan Jonker Subject: [PATCH v1 3/3] dt-bindings: net: remove arc_emac.txt To: heiko@sntech.de Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <0b889b87-5442-4fd4-b26f-8d5d67695c77@gmail.com> Content-Language: en-US In-Reply-To: <0b889b87-5442-4fd4-b26f-8d5d67695c77@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_091436_985917_5D081878 X-CRM114-Status: GOOD ( 12.97 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The last real user nSIM_700 of the "snps,arc-emac" compatible string in a driver was removed in 2019. The use of this string in the combined DT of rk3066a/rk3188 as place holder has also been replaced, so remove arc_emac.txt Signed-off-by: Johan Jonker Acked-by: Conor Dooley --- [PATCH 8/8] ARC: nSIM_700: remove unused network options https://lore.kernel.org/all/20191023124417.5770-9-Eugeniy.Paltsev@synopsys.com/ --- .../devicetree/bindings/net/arc_emac.txt | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/arc_emac.txt -- 2.39.2 diff --git a/Documentation/devicetree/bindings/net/arc_emac.txt b/Documentation/devicetree/bindings/net/arc_emac.txt deleted file mode 100644 index c73a0e9c625e..000000000000 --- a/Documentation/devicetree/bindings/net/arc_emac.txt +++ /dev/null @@ -1,46 +0,0 @@ -* Synopsys ARC EMAC 10/100 Ethernet driver (EMAC) - -Required properties: -- compatible: Should be "snps,arc-emac" -- reg: Address and length of the register set for the device -- interrupts: Should contain the EMAC interrupts -- max-speed: see ethernet.txt file in the same directory. -- phy: see ethernet.txt file in the same directory. - -Optional properties: -- phy-reset-gpios : Should specify the gpio for phy reset -- phy-reset-duration : Reset duration in milliseconds. Should present - only if property "phy-reset-gpios" is available. Missing the property - will have the duration be 1 millisecond. Numbers greater than 1000 are - invalid and 1 millisecond will be used instead. - -Clock handling: -The clock frequency is needed to calculate and set polling period of EMAC. -It must be provided by one of: -- clock-frequency: CPU frequency. -- clocks: reference to the clock supplying the EMAC. - -Child nodes of the driver are the individual PHY devices connected to the -MDIO bus. They must have a "reg" property given the PHY address on the MDIO bus. - -Examples: - - ethernet@c0fc2000 { - compatible = "snps,arc-emac"; - reg = <0xc0fc2000 0x3c>; - interrupts = <6>; - mac-address = [ 00 11 22 33 44 55 ]; - - clock-frequency = <80000000>; - /* or */ - clocks = <&emac_clock>; - - max-speed = <100>; - phy = <&phy0>; - - #address-cells = <1>; - #size-cells = <0>; - phy0: ethernet-phy@0 { - reg = <1>; - }; - };