Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2305456lqz; Tue, 2 Apr 2024 13:11:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCViNQ8mlGPmzUHB+Dmp73joFF84b2463hbahCuI3CfYf8FtAIvrBjy9L0Q4Xx47BHaSiT2+c1fGWDqLCMDHN9aMG3bSEHJA0Y9hUCg0fQ== X-Google-Smtp-Source: AGHT+IGGFv1PUQOS7+YxuW8v3B0uWYL5aF24N2LYYPiUczjl2sZbZzQjN5glnkWbSKDYa7f+AdO8 X-Received: by 2002:a17:902:eb89:b0:1e2:75a3:685a with SMTP id q9-20020a170902eb8900b001e275a3685amr2731858plg.12.1712088708448; Tue, 02 Apr 2024 13:11:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712088708; cv=pass; d=google.com; s=arc-20160816; b=sbVqgCrPKe/yEaKLf8F3JhuZuJJn/5m0ISEMDF1c6ZDx7kjQjwkhoEY1lVd8f3hmNA m78wJHXUVDj2B9x3Angvp0/8EUAYY4e/2DgE8oSDH17tSzgxdnunEH7JL4Vh9xbWMKen 6lGq06fbGpLWGQpbkGXJJa1CwVqU4RHuRR97H22sr7XGF0E/LnCVBtHt08/y/dZFr8ia 8kQfHDPZZHJRs9hxBunDZQOIssgo9VD4JQ/BW7Mdu8J27CcLjiG9tZaub8VG7L2QNvCB sdXGS6cprghvU8SOvg3OHOrlGpqUCXR1LarvhKDpL+mVzDl7OAVDpoyldtt2D876Jf4V BAQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=h9XGmtr4tKryDcF6zZrLSZqjNQPqsK7oIswVla3FBTc=; fh=7HExm+fkBpgIRDXseWb3Fb49TaNWgVvrfh2gkX/V0Lk=; b=gBYkw5p2+1BZ/QnSXdqyxvhn5Q3SXJSS/uuDUZxZXROMWaJoph5cqpFUeuicsrJA+J 0TrFBnJhqQq14Vilu6xJi8EYi9vxrtJCj3eZpyWsEZNj5Fd45+DMgXA6khLrMXe+YTeS YcYAGudtWxSgQxKQegG2MaB4yL9VYGAHIsBYevYarAltmJ7wjOyaPf4nywkPjY4Yc0JX qzJdUYBJZw0uWehWPB2G7eI8cAraNVplhHZPmFJyQ1y1aBznUo0HYmH/QQgG5tWUu3UY oeXboQZltCPAwcrtQfw7LszjmPda+j2xeCb6E1v60U/YUZcw+XEAu+fCGqEapsxuBJtR +Dpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FnyGtojL; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-128643-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z12-20020a170902834c00b001dddd1df881si11242958pln.295.2024.04.02.13.11.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 13:11:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128643-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FnyGtojL; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-128643-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0A47228382D for ; Tue, 2 Apr 2024 20:11:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1FBC15D5A2; Tue, 2 Apr 2024 20:11:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FnyGtojL" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F73E15B966; Tue, 2 Apr 2024 20:11:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712088699; cv=none; b=qZFKvKwGYenN9e0HH1nPh/DDZV8DAshCtTGoARgZHhA8nKOdR/LeHc/k4Twypqn2rGLMMNm2PvJjLax96Un0m1eOI7qztHAhEbdB7mZTpv95nJFfR+EVoUqIimK8200NgIga6KojS9ogibTa6W2WxbNATSstwxJ4EJcnuUo0XNE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712088699; c=relaxed/simple; bh=ARVTOUd5GsEZBV4agURD9UrjWRU/ncQ4Or63i0u3E/k=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=kBKV35prm2vI+HM6ZlEXvef+jctoUozhw5mlnURtL7JEGDLo1kVsrJ5C8JHfe6gtaLylQU7YCFRnTNKCQqLzBJDwwy5XIzLqa0/H5H3ITJRDoUn+ci99PWPUKIceHGQrW/yhkgKGTd80HpYOmuT+ojSGb38g+U7kZ0PFlnpqb2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FnyGtojL; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-51381021af1so7712468e87.0; Tue, 02 Apr 2024 13:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712088695; x=1712693495; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=h9XGmtr4tKryDcF6zZrLSZqjNQPqsK7oIswVla3FBTc=; b=FnyGtojLUgPY+M0KD9t90ZwiYZZTEZDMDK025GcUSlJjhgzH1L8gaL9zN9x5vxAY2l rBS2kj4YetUHQvD6ayKVqCaGfItFPnDjgIP7Zpm61E7WPngpj86iQwIbhyxKJ0sAc62m VvozqDLSrYdu8jCVn7gSL1SjDGc7l1wqSNq8ZlWZ4tpUzXex+ivFEOjRNlU7BEImfCXS lexw5RYJrnaH1/kY9kRT+2/zZpp7U93aKsYd7i+eaCQhqK1iv9Zx9yIpL+R6EN5un7b7 34S8qCUhiT7KzspLs18l/Wq4huMeT0u2tTdPepmneyGRjKcjwzCropIOxVtyAig/9eyI WO0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712088695; x=1712693495; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h9XGmtr4tKryDcF6zZrLSZqjNQPqsK7oIswVla3FBTc=; b=akB2myU5rikFkIdMjXi3/C7Ga6cwyKqXwGQkU26Ivofbgj9IgT2t3Tgzx/g8nb6Rlg lyjJf5MQJ66zKywn1LKxxJ97NTwqINiXcUKdJ4lpiVZqEjGsi3nsUw1KU3KI+Vl2YR/g uKlrLcTRwGZ6zBSsUaeO89tFYdYcCIpwFQdpFS8tZHqcgKxJufuamU801/eN/c2UapVD +aSMfosL+NGd/zU5VPQ0TeazVnPl54dcJYvITv+XaSZ4Dty7/40nu4MN1uUOA2bHj9Nh Y7SefsO6oCKSoDkgnOAsttDbsXRXvs8rYrz8higgf+j9RUJo+Cnpa/mOKzvj/wOrhqFt pyww== X-Forwarded-Encrypted: i=1; AJvYcCVZ9qJ3a34WiHHSQv7mFY/GJfhLhpIiPZM+YuPTGqUX5q4ZikdAyj+zeufetGTa2/L6fc2DipB1JoX7MjWGHKo7ECxd1jVaTZXVz4ZU X-Gm-Message-State: AOJu0Yz2eoMbbxdBxPz+F7UdNSwJ3oC73fpDl/FmUI7XiRcXp5E5jFBX 7KSaGuKlWJeTV0EtuXx4mA0KWkyUpqQXkXdXTlz4Lwc+vAHQWB4n5RamMaPMwhg= X-Received: by 2002:a2e:9790:0:b0:2d4:49d1:38e with SMTP id y16-20020a2e9790000000b002d449d1038emr2248730lji.28.1712088694809; Tue, 02 Apr 2024 13:11:34 -0700 (PDT) Received: from WBEC325.dom.lan ([185.188.71.122]) by smtp.gmail.com with ESMTPSA id re26-20020a170906d8da00b00a474ef94fddsm6903829ejb.70.2024.04.02.13.11.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 13:11:34 -0700 (PDT) From: Pawel Dembicki To: netdev@vger.kernel.org Cc: Pawel Dembicki , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Stefan Eichenberger , Dimitri Fedrau , Kory Maincent , Maxime Chevallier , Ahmed Zaki , linux-kernel@vger.kernel.org Subject: [PATCH net-next v3 1/3] net: phy: marvell: add basic support of 88E308X/88E609X family Date: Tue, 2 Apr 2024 22:11:18 +0200 Message-Id: <20240402201123.2961909-1-paweldembicki@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch implements only basic support. It covers PHY used in multiple IC: PHY: 88E3082, 88E3083 Switch: 88E6096, 88E6097 Signed-off-by: Pawel Dembicki --- v3,v2: - resend only drivers/net/phy/marvell.c | 13 +++++++++++++ include/linux/marvell_phy.h | 1 + 2 files changed, 14 insertions(+) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 42ed013385bf..fae7eb57ee2c 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -3289,6 +3289,18 @@ static struct phy_driver marvell_drivers[] = { .get_strings = marvell_get_strings, .get_stats = marvell_get_stats, }, + { + .phy_id = MARVELL_PHY_ID_88E3082, + .phy_id_mask = MARVELL_PHY_ID_MASK, + .name = "Marvell 88E308X/88E609X Family", + /* PHY_BASIC_FEATURES */ + .probe = marvell_probe, + .config_init = marvell_config_init, + .aneg_done = marvell_aneg_done, + .read_status = marvell_read_status, + .resume = genphy_resume, + .suspend = genphy_suspend, + }, { .phy_id = MARVELL_PHY_ID_88E1112, .phy_id_mask = MARVELL_PHY_ID_MASK, @@ -3742,6 +3754,7 @@ module_phy_driver(marvell_drivers); static struct mdio_device_id __maybe_unused marvell_tbl[] = { { MARVELL_PHY_ID_88E1101, MARVELL_PHY_ID_MASK }, + { MARVELL_PHY_ID_88E3082, MARVELL_PHY_ID_MASK }, { MARVELL_PHY_ID_88E1112, MARVELL_PHY_ID_MASK }, { MARVELL_PHY_ID_88E1111, MARVELL_PHY_ID_MASK }, { MARVELL_PHY_ID_88E1111_FINISAR, MARVELL_PHY_ID_MASK }, diff --git a/include/linux/marvell_phy.h b/include/linux/marvell_phy.h index 693eba9869e4..88254f9aec2b 100644 --- a/include/linux/marvell_phy.h +++ b/include/linux/marvell_phy.h @@ -7,6 +7,7 @@ /* Known PHY IDs */ #define MARVELL_PHY_ID_88E1101 0x01410c60 +#define MARVELL_PHY_ID_88E3082 0x01410c80 #define MARVELL_PHY_ID_88E1112 0x01410c90 #define MARVELL_PHY_ID_88E1111 0x01410cc0 #define MARVELL_PHY_ID_88E1118 0x01410e10 -- 2.25.1