Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3414253rwb; Mon, 7 Aug 2023 13:10:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQlPHBmc+HoB3vPxdItV5smCXuULfkiuImOfP5cswFzgWvHZjsYeBQZHvg5Yx3UHcB7umI X-Received: by 2002:a17:902:e882:b0:1b0:f8:9b2d with SMTP id w2-20020a170902e88200b001b000f89b2dmr11305375plg.29.1691439037138; Mon, 07 Aug 2023 13:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691439037; cv=none; d=google.com; s=arc-20160816; b=WfSaUsM96Fu2rW8rXgtRrWGzrpl+CdsMj2aE9G1PgqCntjD18Qm4pJdD80Z4E9maw9 ov6ZfESLhj8+E1oMU+zzIp60iMZbANXFGk4C/IPHcgzilSi36FoxACjnvBlsVlLryrrI X1ohyXhdre/qtw4d5umroq5+DFPFD51CWeRcHf2uhaaHC+NNaZnK6sUkiJUCx0IbRVMn Az+TJoQbV6SjNKJkqIY+/mAfG3lTKIfWAoSv6m6qYMlq56YzmP/6LB8SGzuyWZarQCWQ rxErPyqbVY4dGaWZI9qfmETGMgEA3n15mK7sc7dEGIJ4OjDUylJ5bM6I/+GLGstj4bi5 NC0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=eRSwV6Gm+XzxbXgNMBpKpDlEh6gTRS+MFq99dQgncbQ=; fh=wEh+4zpZgJFzL4gMBIu+RlqV7YR+RbZGdNOHRaFzBEA=; b=Di4pRDUpVEvINfzhwwVXpfJ5XRpjEe3XejX8z2EqibYakB+0/B5f2HukeaLgN0nDZv ivppqDmcDUAMCiZLTAG+N3G1e+KAUBV9m2/JMWzrKnOtFpeU3DpdekBSdd4G/7XbB0Hs zcA+hgscsR9cb+K6jAZyw0ZA606wAg79bLbcBC3YUB5VL5OHkHk6Kqr1Cvt1+UOnJtvb ncWKf52+8zlKJmmvU1ovnGewCDpTbAV0t+MANzO+ACxL1xB3mTL8PTchuaX9ZhuVPP7R Tcp5B00yHlBXzoy2NVNE5E7W3JFqFl5lQnVTksx3eXUOyq9Mc0HAMG66hcnNTRld3AE/ c5GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=mHrDzRq+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cp2-20020a170902e78200b001bbc884362dsi6011990plb.135.2023.08.07.13.10.23; Mon, 07 Aug 2023 13:10:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=mHrDzRq+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbjHGTbg (ORCPT + 99 others); Mon, 7 Aug 2023 15:31:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjHGTbf (ORCPT ); Mon, 7 Aug 2023 15:31:35 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCFE1717 for ; Mon, 7 Aug 2023 12:31:33 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fe24dd8898so42073305e9.2 for ; Mon, 07 Aug 2023 12:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1691436692; x=1692041492; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eRSwV6Gm+XzxbXgNMBpKpDlEh6gTRS+MFq99dQgncbQ=; b=mHrDzRq+wq6uTZHPmwteMcteTqBarR3Nk2/LC+UMcpxDdpyYVB/0FPzO+LDxTTbbNr hRhzkXWggtKCLT4xwA7fIp3dNwm5RWOSGd3w4YU41OwbdBx+3TsaQno03l0rK33u9g29 Mm3pzAcNw4BPYcA6KtUHgbmxynAXxh683LDni4HrDhgv95CoIFLQOyru7phiWKQkGpPI LecLAQigg50nsbneHX72Bl9nT/Umvd5U9X6d/NHRYZWJrzCXRsQ0oxSGLsRB6I04PHxm pomhLzO6E0p/XZZ9ABl879hBlfPQi9HFO3KNgYy1Nc8E7e3gSGuQk5OWV4X7lV4DBs+G oFAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691436692; x=1692041492; 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=eRSwV6Gm+XzxbXgNMBpKpDlEh6gTRS+MFq99dQgncbQ=; b=cTvh2ppsgJYH6sqBGzGOKl/bLayUGcc+yPK8k/Mmxy8YEnDSCeJdpeXzCSzqMDBcor yu7ztRORyCFEh5jSgpmNusSE7PGNCBJv95m7Uz2dlAPfjT3PnJFtFFSw40GXSsMiqHua c7G6rZxI0OoD7Ntgb9L9kUs3F8SZwQrPuNxBS97xdN+Fa16qokeg1eqsOAZkTHEb100B bJM20ZsBu8iy3N41D3/8Te7DXuc6sDUvNg8b0AhebNRtaU3G8HoTmJT1A/10QXxYvyhV B2xuor10Mlc/vQs53jIEgK3pf/Vak8bKa8aaMWNjBf+yNYEjTrHmXvNAGaMY8yNOSrEW Rdiw== X-Gm-Message-State: AOJu0Yy4KJP5N8pQrq9649BEe52fstnADEQNNfBu6lYgxbZh8yH06w5h 8VvIlru9+eDWcQHXQBQeqP/BHw== X-Received: by 2002:a1c:740b:0:b0:3fe:5053:1a0b with SMTP id p11-20020a1c740b000000b003fe50531a0bmr4034769wmc.11.1691436692253; Mon, 07 Aug 2023 12:31:32 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b3d6:9e6:79d9:37cd]) by smtp.gmail.com with ESMTPSA id l7-20020a7bc347000000b003fbdbd0a7desm15985654wmj.27.2023.08.07.12.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 12:31:31 -0700 (PDT) From: Bartosz Golaszewski To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Andrew Halaney , Alex Elder , Srini Kandagatla Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH 0/2] net: stmmac: allow sharing MDIO lines Date: Mon, 7 Aug 2023 21:31:00 +0200 Message-Id: <20230807193102.6374-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Two MACs may share MDIO lines to the PHYs. Let's allow that in the stmmac driver by providing a new device-tree property allowing one MAC node to reference the MDIO bus defined on a second MAC node. Bartosz Golaszewski (2): dt-bindings: net: snps,dwmac: document the snps,shared-mdio property net: stmmac: support shared MDIO Documentation/devicetree/bindings/net/snps,dwmac.yaml | 6 ++++++ drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 8 ++++++++ drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 6 ++++++ include/linux/stmmac.h | 1 + 4 files changed, 21 insertions(+) -- 2.39.2