From patchwork Tue Sep 6 06:20:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 12966912 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 18ECBECAAA1 for ; Tue, 6 Sep 2022 06:22:00 +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:References:In-Reply-To: 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: List-Owner; bh=Bc9l2KAh+m7PRVB7W79ZpQgI6mjPvV56LTa2JH9aC+A=; b=SaEkYlOw6Xl6zF yG6NtQos20Q6xMJ2/fN7909YHW5wGcwhERh/zoQcPKggfMifmFkqFp84VNewvedQPNLp3jx2RLhHa zP5dJTMjaJRGWVXV0k4+ctD6EITXAyurBdvGPGtjuQy10cHdDSIlPAvszoc/HrWZG4PfqNmRj5rsI 7LzSs2OAac8lP2dYqprsp837pYwB/owNe/vYp6WPQOOV2nbkr8qMZi3EYvAWQae1X4vgzGly2pGzt jZ+MpYXtcCan3RcP/gd0CxenJT+5grQytOY241GruyveusNuigfJCMtyHlxEMlftJ/vwXU1RzwWB6 QnM/cWdtNhbg3LdXmH3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVRxB-00ALz8-SC; Tue, 06 Sep 2022 06:20:58 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVRx0-00ALsR-Pb for linux-arm-kernel@lists.infradead.org; Tue, 06 Sep 2022 06:20:48 +0000 Received: by mail-pl1-x62a.google.com with SMTP id iw17so3686975plb.0 for ; Mon, 05 Sep 2022 23:20:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=3Kvr9t8tl1/ms0/7xPHpz9WdqpLe/wgSflXORB7TJd0=; b=Fl4hRRFl5sMh4BN5/k16jkd3sP6MTf3gaTHSBGMWQ6tlGQgGIVMGz1MsvoHYey997j ylt+tl6FiSGMSMJqweBQVHc+Yz/Q9wqhd8sEsdxcpFLFb9LpaaFDGMA8vFP56lbPLa2F Laho1GWqhs5jrLoFarET3QX1qzHALDUK6Q381LQalztW/EmeIvMHXyq/25oCKXPKQ2XI r9D0nzjt+BoRMTXh+TmeV84uOaPsh9wbvdyElKy28cVu+og91IwhZSdSPQSl+qVOAMLg gGgWcup79BJw06q4InpwI5cxsjSTlIBS4rysbxcjQaoXJcGb1hzce65Z9/ABgK58f3z0 qojQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=3Kvr9t8tl1/ms0/7xPHpz9WdqpLe/wgSflXORB7TJd0=; b=DUmXdETA3Q5d8WEJseQHs5Et3wMuE6tEGKmvv9H5bMmktRn3qKspyJeYt8XdK1L0gD RPM/9Dylk1AOF22Ev3IRG/YJn+YkhELzLfj1SVFKV5R3zmcImKp9fPvJFin2FFtfXYyg 11C0unnFju5UchlXAJSk5pPGmrwsG77pga042tFm9KZbQMOxSXIYmc890RjnqlsvWxfc fB9DGi90pbvR36wEqftmlX2qTNo9fa910UKjaAInrUFAYQEidUNYCGeMmdi53TG8mccg OoKgdy9y1R9yrS+7Lza/CeHFEEscb1Ktjy9193NtxJcdOfowiEEQu8tsqUwlDOkJ3+Py wWIw== X-Gm-Message-State: ACgBeo3643VHzH+ofdc4pOVLxPnFynFsHC4OI5VGINjHHvDrMf6lgKKY 7QqZzlOlNrEj7gHMCoBLj+I= X-Google-Smtp-Source: AA6agR6mgN6a8EMCkb2sUzh84tuyTkJRzb3cEOqOWShLqubfN42tc50cBynnYgKnWZ78FPXvtqlsow== X-Received: by 2002:a17:902:ab98:b0:172:a566:d462 with SMTP id f24-20020a170902ab9800b00172a566d462mr51817770plr.53.1662445243373; Mon, 05 Sep 2022 23:20:43 -0700 (PDT) Received: from localhost.localdomain ([76.132.249.1]) by smtp.gmail.com with ESMTPSA id m16-20020a170902db1000b00172dd10f64fsm8877798plx.263.2022.09.05.23.20.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 23:20:42 -0700 (PDT) From: rentao.bupt@gmail.com To: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heyi Guo , Dylan Hung , Guangbin Huang , Liang He , Hao Chen , Rob Herring , Krzysztof Kozlowski , Joel Stanley , Andrew Jeffery , Tao Ren , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: Tao Ren Subject: [PATCH net-next v2 2/2] ARM: dts: aspeed: elbert: Enable mac3 controller Date: Mon, 5 Sep 2022 23:20:26 -0700 Message-Id: <20220906062026.57169-3-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906062026.57169-1-rentao.bupt@gmail.com> References: <20220906062026.57169-1-rentao.bupt@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220905_232046_852291_09931ED0 X-CRM114-Status: GOOD ( 13.43 ) 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: Tao Ren Enable mac3 controller in Elbert dts: Elbert MAC3 is connected to the BCM53134P onboard switch's IMP_RGMII port directly (fixed link, no PHY between BMC MAC and BCM53134P). Note: BMC's mdio0 controller is connected to BCM53134P's MDIO interface for debugging purposes only: BCM53134P always loads configurations from its EEPROM, and users should not configure the switch via the MDIO interface. As a result, the MDIO connection is disabled in dts. Signed-off-by: Tao Ren --- Changes in v2: - updated comments and patch description. .../boot/dts/aspeed-bmc-facebook-elbert.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts index 27b43fe099f1..36657d8fdb73 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts @@ -183,3 +183,23 @@ imux31: i2c@7 { &i2c11 { status = "okay"; }; + +/* + * BMC's "mac3" is connected to BCM53134P's IMP_RGMII port directly (no + * PHY in between). + * Although BMC's "mdio0" controller is connected to BCM53134P's MDIO + * interface, it's only for debugging purposes: BCM53134P always loads + * configurations from its EEPROM, and users should not configure the + * switch through MDIO interface in regular operations. As a result, + * the MDIO connection is disabled in dts. + */ +&mac3 { + status = "okay"; + phy-mode = "rgmii"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rgmii4_default>; + fixed-link { + speed = <1000>; + full-duplex; + }; +};