From patchwork Sat Oct 12 20:35:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13833683 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 EDE13198E70 for ; Sat, 12 Oct 2024 20:35:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728765332; cv=none; b=B8nlOH0ZQdegdL8FIrI3iCSpS1z92cJa3OlHmWoN4QM1blr3sDpBvVgyfGdfCtfGdWqh9BshpLpvk0VMYmEJR4p+5bal8zdu+EMhblZFhT5bAeAB8GTUSpZZATBmVaDHP+m3XX9Jld6P6JAXjbXG06LEHTUEho1pvXwihzlulsc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728765332; c=relaxed/simple; bh=3+rzSxsqMH0ofbLYBK48GdylevOS91RkTcfy+TL5grU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FAXc0ED0ifDGP9T7OHKQ0UTEqhs8SVPMc5qyZ1EXJn9WJP6TufWQsdm65CWN7jC5gNpk8n9+9I4AtJAKuDZGMzPCKdhRFwntAjhajOmg6HL4I5kF3o/a5zAcnw7wOlVwg+5kwEPkGheInXK39de4jOi3+eAm7bRVX4ENvSMYqWU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=v3JWTuJO; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="v3JWTuJO" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5c9454f3bfaso2709454a12.2 for ; Sat, 12 Oct 2024 13:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728765329; x=1729370129; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gHNKgHNUrXFzvsDDr7Hv4Z82UL01qAGHrf80KtxR1+o=; b=v3JWTuJOWQ21e1n/UjielkVhTAMbO3r0AgIFbfoTy3XQGhkEHREdAhyeZb3lEeOSqb C43zqOgrI4VgST9mBy6nFy9Hafoh+/g2qR8YW9jrBmRUn60V1RMydp4LiN5cFjhKXlEO 8otzVvz/pFcMqF08dyF5/OFwl+cPTVMmTeZdhvIAPUxnY0ib3HqIi28XPORuBHwnmFjN mP2zqPtJ7ZpcdJc69KB4QXzJUb+ThlvfsOxIeqeSpcx9eFVpuAaqCFwvRKLB8CIMnGRi +HWCPYBLvwA1a83CQgOg9R6+ZajOmyKraIwp3tP8d705Y1PnM0by/wnsLzigxgoyo0TX 9XEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728765329; x=1729370129; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gHNKgHNUrXFzvsDDr7Hv4Z82UL01qAGHrf80KtxR1+o=; b=WOUr1K9jjBabYYJBdz+0tbAhZKuubo8IsV2QOhW0BO93mMc0dH8isG/YFAj3m3D+va QV9Fexv7jAX3EGe1ZeInpPEm5tNDM6r7JlrNpv/rr7NyoI4a4HxqOV8cwfv7CElalZjN sb3lfNb86c2/W+KTBwjfrTEE0umQpxmd6r4VRVJydeLyN1Ju7PJm+MfeBlDuiztBylyR KFZ94FVFEkzJ+Fvfx9KUb4CERdcwYYoNt5U54asVsUS0Dd2opA1xI29kVfg0ZTQ5UAOR TegxXY+rZbhOoQHsozgj/CqTGz6h4bHrkoTm9l58Ol6kUCs7/gQBiOfK0EUxbPcvzPkl njEg== X-Forwarded-Encrypted: i=1; AJvYcCU2I0mHkHZKTxOxBgYwIgVzh5OdbwJXppZztUwE9ZNU5d1d+P22TN0r4zW/3F07eH6NAXESFXc=@vger.kernel.org X-Gm-Message-State: AOJu0YxiiwgUeew88+N97dI2fRTEo8yzvpJt+sAYkHkNMzXHnjhgmaH9 GFU3DK5nqDDPtHHCUm4030q7KR/emPZh50XW5+zGMNccmK79vusqOWrbx1jivpk= X-Google-Smtp-Source: AGHT+IFqBF19dLUZxRHn/RIiJXUYS5mzoKNeWvmbBLeY5MQN/aDULVvgtmxahWSI2OWJCfLWjTS7Qw== X-Received: by 2002:a05:6402:40c5:b0:5c8:9f3e:1419 with SMTP id 4fb4d7f45d1cf-5c95ac098bfmr2659977a12.5.1728765329156; Sat, 12 Oct 2024 13:35:29 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c9372940c1sm3164335a12.82.2024.10.12.13.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2024 13:35:28 -0700 (PDT) From: Linus Walleij Date: Sat, 12 Oct 2024 22:35:22 +0200 Subject: [PATCH 1/2] dt-bindings: net: brcm,unimac-mdio: Add bcm6846-mdio Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241012-bcm6846-mdio-v1-1-c703ca83e962@linaro.org> References: <20241012-bcm6846-mdio-v1-0-c703ca83e962@linaro.org> In-Reply-To: <20241012-bcm6846-mdio-v1-0-c703ca83e962@linaro.org> To: Doug Berger , Florian Fainelli , Broadcom internal kernel review list , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Andrew Lunn , Heiner Kallweit , Russell King Cc: Florian Fainelli , netdev@vger.kernel.org, devicetree@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.0 X-Patchwork-Delegate: kuba@kernel.org The MDIO block in the BCM6846 is not identical to any of the previous versions, but has extended registers not present in the other variants. For this reason we need to use a new compatible especially for this SoC. Suggested-by: Florian Fainelli Link: https://lore.kernel.org/linux-devicetree/b542b2e8-115c-4234-a464-e73aa6bece5c@broadcom.com/ Signed-off-by: Linus Walleij Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml b/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml index 23dfe0838dca..63bee5b542f5 100644 --- a/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml +++ b/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml @@ -26,6 +26,7 @@ properties: - brcm,asp-v2.1-mdio - brcm,asp-v2.2-mdio - brcm,unimac-mdio + - brcm,bcm6846-mdio reg: minItems: 1 From patchwork Sat Oct 12 20:35:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13833684 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 231C0199945 for ; Sat, 12 Oct 2024 20:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728765333; cv=none; b=Cf5qYDMNLnXabl/lCs5NSplkfzd0iNL+3CHdrJwUKlzJdZ7O0olbWGPbWFS7kmsh5LfiUZ59ckQ6EXvvnNIogoUwunRCm9IxmEn3zNKfuMLBLdBD4cHzVcJui5EVRxM2pIM6Qg6nYpk+xvlTJDb7iryAhSQGcoDPjUJe3XHj32Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728765333; c=relaxed/simple; bh=bR7FC8VWF9azFEsVJCiTQeIR6jO9asrrgxJfaMm3ly8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PYgr6SLBzfrjMBnB7IN1Uri67MJ2dqzQY26ppac6568NtZ+QUkYwv5eoImijEH1YZJJWuG+Ia+r4ZCwnOTr09mPhGvfBphhogAp1xHZ0nSG9tqYIYOufZgSDOtGQpKKCK2DbmuurgVEESKAg2WbBRpP6ykchVGKSJhK35g0wZ+Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=XPslhdzm; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XPslhdzm" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a993f6916daso534035466b.1 for ; Sat, 12 Oct 2024 13:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728765330; x=1729370130; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=to3mIiOzBldkugoM8pz4dZYJabZ2oKuPwcC5thWShwo=; b=XPslhdzmE9zdbIvAdg79TTadB9L2HT605VIoU4eAF+lbqSsccFnI6SbcFoMYU55bEp vzo/GkTlUoXRwgg/iOG/QxSPdY3FXI6Q9i4QcQRzaELBJ9GApxrCDPoPwsTRpcVigdNp kvYMJfCzfLoLsN624tm6gMiaxx4AtZdrd3j3hRBPr+eHjVXYWfy+i96h3cKu+O9n1VUs rpOigPVDgU3YW4yra119xCvdSVeh0+dogsP7PhKhWlFtxfyAmr80UpbHCDO8ZhG5wfv5 90OPpQtfhEeHFZSCKOyHqoarsLcVG5Bas+8+z8006y0btiTqHVkoAAL8ax3cFosde4yX jAzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728765330; x=1729370130; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=to3mIiOzBldkugoM8pz4dZYJabZ2oKuPwcC5thWShwo=; b=jcmRWbQMR5MOjlS/XFaqs375RqKBujpDH7WEEK9PdQz2ykllchlg+TVmxfoL5n7Cbf KWBclkKPWB/FWLAUsZndaBhEsB9dpTC5vD8n86kDb9iUtgWNFRPEyBh9ZrGGZF2g69IK LwLtD/TH2L2xVyV1IC2t2K1vbSP6FI+mPz9NuExz+EVFXQF/TJA4g0HWtosfwlui3wZh p9edHWFXyEvzSv/7Yrf1MGBjCexH6sVFYVxOJ6tDUSgK6137yrl+EWQVOi58iYQNDXu0 +oOpBX+1rJH+RadcoPxiF76lh3xBGDdKGY307+b8gb97dxiEPm2EhWx5+g9fS2d6GYTH 1F4A== X-Forwarded-Encrypted: i=1; AJvYcCVSt4DBNccJd5SKXrh4PF7hH9jmlA3xVyoZAc0tGAXfYfTahBICcxHv0H/vqPfKCBU0wWS4G0c=@vger.kernel.org X-Gm-Message-State: AOJu0YzcNmL+c9CiiZ0EAucoKF/AY3KzZj0l6dBLB+/NbnJuC6psw6f/ o51jtx2FdGmio1G1xklZZED6bnwV/Zpu/8Rn5NmBJe+KhJPCiAiNSScpGiA6LqmlwiU6u+054bH y X-Google-Smtp-Source: AGHT+IE1210x3qcH0JfkcF1Jc4lbtcGrzAr3gKE9XtvrMMKxePvpRYucwnKDfDEOSkYQ0LngBoE7NQ== X-Received: by 2002:a17:907:ea0:b0:a80:f81c:fd75 with SMTP id a640c23a62f3a-a99b8e8ca9bmr655078166b.0.1728765330397; Sat, 12 Oct 2024 13:35:30 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c9372940c1sm3164335a12.82.2024.10.12.13.35.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2024 13:35:30 -0700 (PDT) From: Linus Walleij Date: Sat, 12 Oct 2024 22:35:23 +0200 Subject: [PATCH 2/2] net: phy: mdio-bcm-unimac: Add BCM6846 support Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241012-bcm6846-mdio-v1-2-c703ca83e962@linaro.org> References: <20241012-bcm6846-mdio-v1-0-c703ca83e962@linaro.org> In-Reply-To: <20241012-bcm6846-mdio-v1-0-c703ca83e962@linaro.org> To: Doug Berger , Florian Fainelli , Broadcom internal kernel review list , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Andrew Lunn , Heiner Kallweit , Russell King Cc: Florian Fainelli , netdev@vger.kernel.org, devicetree@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.0 X-Patchwork-Delegate: kuba@kernel.org Add Unimac mdio compatible string for the special BCM6846 variant. This variant has a few extra registers compared to other versions. Suggested-by: Florian Fainelli Link: https://lore.kernel.org/linux-devicetree/b542b2e8-115c-4234-a464-e73aa6bece5c@broadcom.com/ Signed-off-by: Linus Walleij --- drivers/net/mdio/mdio-bcm-unimac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b/drivers/net/mdio/mdio-bcm-unimac.c index f40eb50bb978..b7bc70586ee0 100644 --- a/drivers/net/mdio/mdio-bcm-unimac.c +++ b/drivers/net/mdio/mdio-bcm-unimac.c @@ -337,6 +337,7 @@ static const struct of_device_id unimac_mdio_ids[] = { { .compatible = "brcm,asp-v2.2-mdio", }, { .compatible = "brcm,asp-v2.1-mdio", }, { .compatible = "brcm,asp-v2.0-mdio", }, + { .compatible = "brcm,bcm6846-mdio", }, { .compatible = "brcm,genet-mdio-v5", }, { .compatible = "brcm,genet-mdio-v4", }, { .compatible = "brcm,genet-mdio-v3", },