From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 133191F0E25; Thu, 24 Jul 2025 03:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753329215; cv=none; b=ZIsaapF7SRUFzRdFnjEgIPEBBcgjRsou7tfP3yQA44BczjfNskf6bcdnJPcMf3TOICO2PgxhyPKrRNXq0krCqlkVkd7EunntUfFirJJOrz8FSovSwt+kxGt3IwaWAB2pI6+mm+Zet6sd4LWCKv8oKH2DWczvfczKzH3YFhF6MBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753329215; c=relaxed/simple; bh=HIElUqzs3zxIyz19PRiwLe0jeruLzTT0f1WnIjXKQB0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DEojSlgR/N7minK0CkFit6xWkbslAgA0edEww/+8TA0jd08ZkKrUugGsgVqSBHIPwthLyXtov7jEhe2uLS4HB14BHRQfZABznXO5oDxWL5tuF+vhj9YqU2ysYd8e+YT2p+gg+I3mFUw4VaiPyURwlq6ndO2bn1Sz9DyzxdupwIE= 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=TdY5bQ6h; arc=none smtp.client-ip=209.85.214.175 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TdY5bQ6h" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-23694cec0feso4978785ad.2; Wed, 23 Jul 2025 20:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753329213; x=1753934013; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VKioL68qXreNKW/7olSTjEn+ZmCuIt+/TbGrnJytAwg=; b=TdY5bQ6hVKcyCY0zKLr15S6PFHfPQTPMsBtx3tmeVmwnng8Nzb0WwO6NRgVC52USIj yhjxbHkSfI4O8m/gJZ6CmwssRV3C0Nn7TfNLNpHF/Q+THn4ZOjm6s0rSUJ6mmkF9ix6E pPcRS2JjvUqJrqlN+S5uAeTcpEuFa0ti5TDIvJTD7W3P6kYnw2cOi+5hKWRKX/qwjYNG eAiMmBzHpcNr4LKNjcgwx2U++ntASlf+2p/r1zkITfAiWn0hCrJIPiWiEOxrcRWqURJA 4DaX3rPQBc1QwZaL55Z718mt5Fi3DMIO/CUHai12rOvdmCAGcBRpcn69wsmlB+HsLWSR 3UlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753329213; x=1753934013; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VKioL68qXreNKW/7olSTjEn+ZmCuIt+/TbGrnJytAwg=; b=TOncbooTQfJe+u88Qm4sgZgVKfSF2esfyKv46irgQlVycXEKa3bCPJwCSWlNnKU0eb FE+3eS9UsrxKfzA9tDT5fBDMiAISjj3gwNFd0YscctVn4EFVZEdUb7Hd2L13A7O/qbZB 8B8KH1mquz7tO12GxjgigEaJBE9MOC5hm+yW4lk//bcnQi0bNbOCYa5dziU+gb1Lh1qC mE6YZt8xOtd+dMj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Z15apk4oW5K72Q== X-Received: by 2002:a17:902:e788:b0:234:11f9:a72b with SMTP id d9443c01a7336-23f9820281bmr77424935ad.50.1753329213495; Wed, 23 Jul 2025 20:53:33 -0700 (PDT) Received: from localhost.localdomain ([207.34.150.221]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23fa475f883sm4458625ad.13.2025.07.23.20.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jul 2025 20:53:33 -0700 (PDT) From: Kyle Hendry To: Florian Fainelli , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King Cc: noltari@gmail.com, jonas.gorski@gmail.com, Kyle Hendry , Florian Fainelli , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 6/7] net: dsa: b53: mmap: Add register layout for bcm6368 Date: Wed, 23 Jul 2025 20:52:45 -0700 Message-ID: <20250724035300.20497-7-kylehendrydev@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250724035300.20497-1-kylehendrydev@gmail.com> References: <20250724035300.20497-1-kylehendrydev@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add ephy register info for bcm6368. Signed-off-by: Kyle Hendry --- drivers/net/dsa/b53/b53_mmap.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/dsa/b53/b53_mmap.c b/drivers/net/dsa/b53/b53_mmap.c index 51303f075a1f..8f5914e2a790 100644 --- a/drivers/net/dsa/b53/b53_mmap.c +++ b/drivers/net/dsa/b53/b53_mmap.c @@ -49,6 +49,15 @@ static const struct b53_phy_info bcm6318_ephy_info = { .ephy_offset = bcm6318_ephy_offsets, }; +static const u32 bcm6368_ephy_offsets[] = {2, 3, 4, 5}; + +static const struct b53_phy_info bcm6368_ephy_info = { + .ephy_enable_mask = BIT(0), + .ephy_port_mask = GENMASK((ARRAY_SIZE(bcm6368_ephy_offsets) - 1), 0), + .ephy_bias_bit = 0, + .ephy_offset = bcm6368_ephy_offsets, +}; + static const u32 bcm63268_ephy_offsets[] = {4, 9, 14}; static const struct b53_phy_info bcm63268_ephy_info = { @@ -347,6 +356,8 @@ static int b53_mmap_probe(struct platform_device *pdev) pdata->chip_id == BCM6328_DEVICE_ID || pdata->chip_id == BCM6362_DEVICE_ID) priv->phy_info = &bcm6318_ephy_info; + else if (pdata->chip_id == BCM6368_DEVICE_ID) + priv->phy_info = &bcm6368_ephy_info; else if (pdata->chip_id == BCM63268_DEVICE_ID) priv->phy_info = &bcm63268_ephy_info; } -- 2.43.0