Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp151850lqs; Thu, 13 Jun 2024 06:39:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWouQALX4Fpfi4cwRu9cWoY5LOkjHY4bWGn8ZiOy9flYi+E7M6n7mbm2W0IINw+g3F5uAkXalVMDRGPu+/Dji+yxDjbpgCllPU2a6d4Hw== X-Google-Smtp-Source: AGHT+IFtskZ0j5lUEiGVLpUJA2jWcjwOxjq7lypaAZYinjZ2WIA7UlitWiTF5mU2+M+Rr7ZCknFf X-Received: by 2002:a05:6a20:9190:b0:1b5:ad0b:50bd with SMTP id adf61e73a8af0-1b8a9c68270mr5596809637.47.1718285994358; Thu, 13 Jun 2024 06:39:54 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccbca62csi1476516b3a.380.2024.06.13.06.39.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:39:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=alLavymb; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-213303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 45D49B263D2 for ; Thu, 13 Jun 2024 13:24:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02DCA146D69; Thu, 13 Jun 2024 13:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b="alLavymb" Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2061.outbound.protection.outlook.com [40.107.8.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10A09146D51; Thu, 13 Jun 2024 13:21:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.61 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284884; cv=fail; b=sy6L4GFC0IrdzqfX9ebuxQ+fGrzdKoTSrqmcUlocb7IbFnFY3me1k8yH8d7OPWT+1HxgW1qj6kgmsEB/Z8lxfFNoYrgdHbDkQg9XfZKYS3xoR2f4XaZlKDK4w0Sd/rDBRR99vSDHt3IanR/x37GlhpzmHpNXJvANKNMiZXNIjSI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284884; c=relaxed/simple; bh=AZ06KBNE2fF/6w81AnnwMxflls9XuUXNo+5aPZow2DE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M6Ac1AGy2fP2g5rCDmLMeWw5o/z3aLoDMe8PR3/ev7SEvIVUW+AHniYsJ4+Lk8uU0adfQm/SHX9ryb5UTmW11p6GqyLebAKRYbhMvoE7CElRn5pS3sGKct3IA9btQDRPhHV8noZlDVZdYi0ktyrsMB7beT7iu+n66NDCsJMo7v4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com; spf=pass smtp.mailfrom=2n.com; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b=alLavymb; arc=fail smtp.client-ip=40.107.8.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=2n.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=em0MsV48FH5f5xPf7zURAKqekSmUXf+KVjNJDGT8+cDvSQ4GPD6eZEmYHqtknjFluOLBu/eb1CNczZoX7BpZRN/Cszh8YugaoRaoXGYNSNalj9FtbNo3pXCVEoVpZdLOTPouF6oxXCt0uzW15y+8upS+cv0Z07FwJAH2xi30MFQeA38YVmA8RGLgWObpUGnJBCi4sgFTxcHdF+dto5Qry2kcQ4jg9k5f8s4udqMmTW3y7pRlG+543UQVjueNfH9g8RvYeIyUHRT7hs0DT7tYNE1KIsnA1wVsBptv4w3chIn3wi+YPGSwSq9v75YZo+DQ/QxfyVG7rgGAwqIEJ1KEEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4Qk5HkWquX5hnH4oz0TZDo8Tx+l3Dq48d2ORsvVXy1U=; b=f0R4XWeEtwmi/+9H4Y1rl5C86WbGoTblUC81ost+MiTv36PukIBi8ZimVj/L4RKh3m/kcYR/MpReEQ1SqmBdjdFFq9HjWxfZ8NRyqaOHLs9H1lr8WZaSB3paRTccl6854O7QRkQpgK4lcdGQ06PA7kXdu1Nv1HF6Czv5lpT3dNeDcyAZYOLkd0/Z2YjMNZtXvjSPWqSH2pj3YwDb7lHXRRrqlDbuUgTX16IZ8vT2KDKit8aVR2HJ7pSk/TLW/24LtnS/0Yjv3gBkxGqtGdUamV6THs6VxK2qzRtWjQF+t+ICdXvbqIQ6Je5RBiI/O4Vt6kz6DtGzbzrm34RRe1NUnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=broadcom.com smtp.mailfrom=2n.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4Qk5HkWquX5hnH4oz0TZDo8Tx+l3Dq48d2ORsvVXy1U=; b=alLavymbZ0n4GZp7t3axX6qfRU79IQSfHilEMrsHTxQd8rrdMfsvvw8WaIWwWtuvb86fzLOG2HwEHaEmPJlgODd9+pB0V5+Z/EVo0++qcwkBjNrJobUlpIqZ5VKNm9eBISdvTV6nlCjSS5fxw0J6XuPo+eTT2JTzjxMhPbqRysQ= Received: from DU7P195CA0007.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:54d::26) by PA4PR02MB6927.eurprd02.prod.outlook.com (2603:10a6:102:108::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.24; Thu, 13 Jun 2024 13:21:17 +0000 Received: from DU2PEPF0001E9C5.eurprd03.prod.outlook.com (2603:10a6:10:54d:cafe::93) by DU7P195CA0007.outlook.office365.com (2603:10a6:10:54d::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.24 via Frontend Transport; Thu, 13 Jun 2024 13:21:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=2n.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of 2n.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by DU2PEPF0001E9C5.mail.protection.outlook.com (10.167.8.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Thu, 13 Jun 2024 13:21:17 +0000 Received: from pcczc3457tyd.2n.cz.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 13 Jun 2024 15:21:16 +0200 From: =?UTF-8?q?Kamil=20Hor=C3=A1k=20-=202N?= To: , , , CC: , , Subject: [PATCH v6 1/4] net: phy: bcm54811: New link mode for BroadR-Reach Date: Thu, 13 Jun 2024 15:20:52 +0200 Message-ID: <20240613132055.49207-2-kamilh@axis.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240613132055.49207-1-kamilh@axis.com> References: <20240613132055.49207-1-kamilh@axis.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: se-mail01w.axis.com (10.20.40.7) To se-mail01w.axis.com (10.20.40.7) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C5:EE_|PA4PR02MB6927:EE_ X-MS-Office365-Filtering-Correlation-Id: f2576ad7-7aa4-48b7-410c-08dc8babb501 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230035|36860700008|82310400021|1800799019|376009; X-Microsoft-Antispam-Message-Info: =?utf-8?B?SUVMbXk2OTZuZncwT0hLY2t2Z0gzWW1CN214Y2krandVdlFXRm9Ya3poTXFi?= =?utf-8?B?WU41SkpsNDFXNldnT0swRU1MVUFsbTdGLys2aEl3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Zl?= =?utf-8?B?dW1WWmN4SDV1TnVXRUZCMzVaT0pBRFduL2xkNDBkajErdVE9PQ==?= X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230035)(36860700008)(82310400021)(1800799019)(376009);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 13:21:17.1413 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f2576ad7-7aa4-48b7-410c-08dc8babb501 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DU2PEPF0001E9C5.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR02MB6927 Introduce a new link mode necessary for 10 MBit single-pair connection in BroadR-Reach mode on bcm5481x PHY by Broadcom. This new link mode, 10baseT1BRR, is known as 1BR10 in the Broadcom terminology. Another link mode to be used is 1BR100 and it is already present as 100baseT1, because Broadcom's 1BR100 became 100baseT1 (IEEE 802.3bw). Signed-off-by: Kamil HorĂ¡k - 2N --- drivers/net/phy/phy-core.c | 1 + include/uapi/linux/ethtool.h | 1 + net/ethtool/common.c | 3 +++ 3 files changed, 5 insertions(+) diff --git a/drivers/net/phy/phy-core.c b/drivers/net/phy/phy-core.c index 15f349e5995a..4a1972e94107 100644 --- a/drivers/net/phy/phy-core.c +++ b/drivers/net/phy/phy-core.c @@ -265,6 +265,7 @@ static const struct phy_setting settings[] = { PHY_SETTING( 10, FULL, 10baseT1S_Full ), PHY_SETTING( 10, HALF, 10baseT1S_Half ), PHY_SETTING( 10, HALF, 10baseT1S_P2MP_Half ), + PHY_SETTING( 10, FULL, 10baseT1BRR_Full ), }; #undef PHY_SETTING diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index 8733a3117902..76813ca5cb1d 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h @@ -1845,6 +1845,7 @@ enum ethtool_link_mode_bit_indices { ETHTOOL_LINK_MODE_10baseT1S_Full_BIT = 99, ETHTOOL_LINK_MODE_10baseT1S_Half_BIT = 100, ETHTOOL_LINK_MODE_10baseT1S_P2MP_Half_BIT = 101, + ETHTOOL_LINK_MODE_10baseT1BRR_Full_BIT = 102, /* must be last entry */ __ETHTOOL_LINK_MODE_MASK_NBITS diff --git a/net/ethtool/common.c b/net/ethtool/common.c index 6b2a360dcdf0..82ba2ca98d4c 100644 --- a/net/ethtool/common.c +++ b/net/ethtool/common.c @@ -211,6 +211,7 @@ const char link_mode_names[][ETH_GSTRING_LEN] = { __DEFINE_LINK_MODE_NAME(10, T1S, Full), __DEFINE_LINK_MODE_NAME(10, T1S, Half), __DEFINE_LINK_MODE_NAME(10, T1S_P2MP, Half), + __DEFINE_LINK_MODE_NAME(10, T1BRR, Full), }; static_assert(ARRAY_SIZE(link_mode_names) == __ETHTOOL_LINK_MODE_MASK_NBITS); @@ -251,6 +252,7 @@ static_assert(ARRAY_SIZE(link_mode_names) == __ETHTOOL_LINK_MODE_MASK_NBITS); #define __LINK_MODE_LANES_T1S_P2MP 1 #define __LINK_MODE_LANES_VR8 8 #define __LINK_MODE_LANES_DR8_2 8 +#define __LINK_MODE_LANES_T1BRR 1 #define __DEFINE_LINK_MODE_PARAMS(_speed, _type, _duplex) \ [ETHTOOL_LINK_MODE(_speed, _type, _duplex)] = { \ @@ -374,6 +376,7 @@ const struct link_mode_info link_mode_params[] = { __DEFINE_LINK_MODE_PARAMS(10, T1S, Full), __DEFINE_LINK_MODE_PARAMS(10, T1S, Half), __DEFINE_LINK_MODE_PARAMS(10, T1S_P2MP, Half), + __DEFINE_LINK_MODE_PARAMS(10, T1BRR, Full), }; static_assert(ARRAY_SIZE(link_mode_params) == __ETHTOOL_LINK_MODE_MASK_NBITS); -- 2.39.2