From patchwork Mon Aug 7 19:31:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13344760 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 12258C001DE for ; Mon, 7 Aug 2023 19:32:01 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=4jlJsYm29TrhCASBNiH2xo5O/TsD4z6T7AfOjPKlDiw=; b=i8d0pIcM+ODVGJ vRexmkdD8EqLS+tWseqDQDXJVaIoZ8TAJxu69waRY4LsmTlwHL7Im1Sp85grpYvGona9ZQBd4vYo3 E7UJJSkzcIcSi+Im3qTxbxDMgLlXxp0j/x0XSfMQCwonBs8Q5HUsCxIzv/0htPJXz3PmqemWrE3Jg FpPAV4OS9anvktfPlVruHQC0rE3o9sL2jvOuecx/tJ7xdsVn1PoRqYW7wbl1ToNEn6eVIsL7Qdzrb Ea/bbP9DfI1XXasErgU2rUz/j7pscobrknk0yljSub2tc+kN74QRbGOyrTTd0mPCA3GBvFc8gW3WI tEmYeTcKeW4DAJkZthag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qT5x3-000Vhm-0c; Mon, 07 Aug 2023 19:31:37 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qT5x0-000Vgm-2V for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2023 19:31:36 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fe501e0b4cso18051465e9.1 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=Hvhr5SZaudbwjCr5AE24LDn0QFYt1vseBlkbCOuVybViPIPxm/xWjdYZ28sZiXsd83 cAwEsQIsMG2P9FzTjZF0KcuLjV2c07klITaOJbxrmWYJmoDYrfM4v/CfSuEV6E6S1S5S ydIfIu4QSbkDedt+zgQwuglCP/DXxaXHpc7iUPbDsty6VacnYYogcLAyYt5djcZ4hUvq R1dp25oddL65c2HJi12heWXdlIpDWOsFrX01YIcgdiLEWWdTEr4M8FaowIAfMCup4/ZB UMJeHqvPdIA/2/FOvs0oskkGmfMWGckv1eoXo01oZ838qTNLkguNB+yM/UZTSlZ7d/Ss bb9w== X-Gm-Message-State: AOJu0Yz8Qz2NNoV6cNUP6eJuVcOjBtd9944Q8NZM78iGUvz0z+RWXaR3 Ivd3sxj8wO54uSDCOkvAennSIw== X-Google-Smtp-Source: AGHT+IHcrhdGZU6crsuk18nFD4cu1qWw7VPP+T0+AdP+h8J/EgCXLVdYCouqFEEXXaCm890UjwpwOg== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230807_123135_105643_2A88470E X-CRM114-Status: UNSURE ( 8.61 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(+)