From patchwork Tue Feb 28 10:28:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanh Nguyen X-Patchwork-Id: 13154672 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 81815C64EC7 for ; Tue, 28 Feb 2023 10:34:23 +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=iWAgnWEZ/KAexSRTN3hlU8HQlxIFgmo1N6+k9HnLlBQ=; b=WKfmYCiBX0MMoU rWwbikpMME/H7G4zDwVGr000shMirrn2qsEOhaUWxwFr2HtZcAilFzKuLUGME1ZbWtKxCG0+XNZyw ubQDtRPv58kiuqQmuS/aiu9yOrGGo67BXp8hgvuhxZvlAq75Q+VLN6vbWrIHMpAxypzEWQBessGJu WfKtq1yx9Eatk/m6PgcUUKLwa+2Id6f9XdL8HTZao/bvyPz5PrsYKDPHG1BkiW6yUSKxDa3IpGz1w Gi4PHgn5DE9IgHpViUJXG1FdB29E059CAIhY2efMFzhhFWZh8HCTRwqZAhhTJXvZCqGTI9F3545YJ OB05VEGUnRMWvWOmDgYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWxHy-00CfTL-Us; Tue, 28 Feb 2023 10:32:56 +0000 Received: from mail-mw2nam12on2072f.outbound.protection.outlook.com ([2a01:111:f400:fe5a::72f] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWxE1-00Cd1t-NG for linux-arm-kernel@lists.infradead.org; Tue, 28 Feb 2023 10:28:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jKNZFeXHXf+lVbXNzx78auIeLU74ruPeeJDMvy5pkNyXJolatCCnFbv6S535RfoHl3E8Xn9CP+fPiMDyVismykNnfKKwwNTfS+KwoSECSz1gGqh3La8vZkFYr8l5mkKHQGCRV6mZv08J4/CksAjxrA8GfedKo9GW4DjyZoFMhQnNcZa8j/ao15QC8GGMx8zAzHEgHj10rLtnkFsun85+QhJuQetaXxMRKdnY31W0jIvaxBEIPvmIQTVAdbonF1fX8HDU+y5EcN+4YZE3l+tJIQlBLJ1ivyEm+jNT+7cNTbKvpsleZi57jKaG9JBmplxLdZ1z3BTrplVtbz45KEnK8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rtU5KrXMAak+luSoccNhFtyihRo4Ke/yaUKzymOrtb8=; b=XuzpX9pezWgrjSt6gnJ0bTZ2w6W1/BPxu3A3oY1HHdWBVHrW+t5dwSCMgcLEMaZ33mAA5YjI8CX/Nx7kGrNwNYkjVXsrewLSQjW13U1PaT4SxRFeCGWngRvGSNPdPdbGzjk9beCFjaVIk1MEEOPqZS1O/2x74JDdWAX3HhBoVLeSn9lJy3r4Sv6f0Tf4Coc3fSU1wIXpLPOzoz5jShpXvbebm3ToY30SQw/BotZBppTWfx1lg4dZDtfBz4z+roWF7dcvoJqo4mzNhAtk1cYrSOgDUlm7RPZdyhaEXr1DUsUYGlJVUSx58+b1eIe4d8yZ1fsk3WCb5UG66j/JlnFkAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rtU5KrXMAak+luSoccNhFtyihRo4Ke/yaUKzymOrtb8=; b=HhuYpTK1DVxC62r6mvnG0Q0yDWkzmIuZYytXQm9dJhrwJujdLViwOZT5UjCmJfahYXy6E9wTn4oSqS4DoadcdcU49cq/QTV9d+EOl9c6sCRZ7wHGVYoezTKiVpK5RkICyot9bIejrNxnKL0VcTn9brMpkRulgT/DxK7JO3Yha4Q= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SN6PR01MB4973.prod.exchangelabs.com (2603:10b6:805:c4::13) by SA1PR01MB6703.prod.exchangelabs.com (2603:10b6:806:1a6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.30; Tue, 28 Feb 2023 10:28:43 +0000 Received: from SN6PR01MB4973.prod.exchangelabs.com ([fe80::a807:4f38:56ee:b079]) by SN6PR01MB4973.prod.exchangelabs.com ([fe80::a807:4f38:56ee:b079%6]) with mapi id 15.20.6134.025; Tue, 28 Feb 2023 10:28:43 +0000 From: Chanh Nguyen To: OpenBMC Maillist , Rob Herring , Krzysztof Kozlowski , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: Chanh Nguyen Subject: [PATCH v2] ARM: dts: aspeed: mtmitchell: Enable NCSI Date: Tue, 28 Feb 2023 17:28:20 +0700 Message-Id: <20230228102820.18477-1-chanh@os.amperecomputing.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SI2PR02CA0037.apcprd02.prod.outlook.com (2603:1096:4:196::8) To SN6PR01MB4973.prod.exchangelabs.com (2603:10b6:805:c4::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR01MB4973:EE_|SA1PR01MB6703:EE_ X-MS-Office365-Filtering-Correlation-Id: 8be8fdfb-7961-4263-79d3-08db1976913e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h7xM1aBDdz1hNugzGGdQ6DzivkDgmHdHHf1UfHzWKe7T/RHDyXMutr2sW3qE62njvhnLa1j6Sf9/GEx6pK6vBwbTPyZ8og8atrwHx8AHXEl3ZmisQGrS4DObUn0AcpnmmWmIrrVkXrH82y7ooJC1w6tcCG2Xr8SNo8PdYRr1Q8AA6dDzFtB4Likg1TfpPrEL+xIHi1af4oygEyFQvQ72F6+w9bW1cfsE+ZS2u7yFLBOgOBSRLkg3DCm/rXMzQ2bHB18HTfMJWwSFdDV9aGeU8HhoRdnS4eqOr2v49nMTS1G++bPQdOryrudVn0gKpdjZknPbLgMWrXy6yuIovjyjQ+alMaoHRPhyYUuiN5RgdVhWNzB9FXUVg1iW6RXrVUNceiLjuntoY4zG+G8JL6QqwI4x0vvIIfgw0SWnMAtx8SVhQeXSwhJDgWr0Dc+Lwq3GMXsiWdtxz3QekbS4pGWDkbfQxy8UQxmXOBoBV5vhL5XX6J82KLtI8/hrZy0OGVJTd1zQk6ZDsgZYGgwY0YoCtqi6oNNILR4EEgVspOVkWtUPixN8JlskO879PGAHA+AQqSHDwO0JwEuMQNu8ewHElpr7EI7VFfpiIML0jkp3eqbx8pGjoxOF0jfY2SIUruevt+cvm96O9dhFrtmK2nzop4nVDwYLasjwoXBJqgWt6imWVR/6rNp7SQFiWqdElRgrwYOoo6fBihT1cT6EK83iQ+Ij99Lyv24nsBsQygfJYa4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR01MB4973.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(136003)(39850400004)(376002)(366004)(346002)(396003)(451199018)(6486002)(83380400001)(6506007)(1076003)(107886003)(6512007)(26005)(2616005)(41300700001)(6666004)(186003)(52116002)(66946007)(86362001)(2906002)(4326008)(66556008)(8676002)(66476007)(8936002)(5660300002)(38350700002)(38100700002)(478600001)(316002)(110136005)(449214003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Qanpld+8sPZENtfjR0v+3ds6OEfSrrlluLsD2kbeSfsOuiIZs2k2baY8iA2NYs8DHcaI8DnOl6x9Eqea/XznvsAHKbsfOBA635+x7peuBIcwGLAFYedD1zmwBIipWB1cSkahdcI9IAHrk1OMLItWNX3fqb7TVm79zOehW7uUAHS8B56Gapek4kHbVXEf0SVNan5IjcbbwbS6vug3jP/V8rFkJWQ0XxnfjUptODrTTiSkSWLsCWBFHHjFcB7/F34E8Hwjfb2hShvF49a4SNB7vPem+BWRFJn/9fQzM5Z38/G/2xL+gmAZJJ1Ek3G0Vr4QaCpJzShF6wDUoC3dngSoTkTb1XbgoiJ+pH52jI5wkTFXXcS6qpEFK7YKM2UGIueVNHlTBLAkMttzc1rtKVuuadU7V2ZL/Yicz+cP4swYN2ZnAuB4N41O1/yCOOoMgYADfr16TsJU+Qe2iOUzd5e+vMIxXJoQQXTvKZCbRm5VFDfdCFGKhxM6DVexj3gZMjSVeAmEHQbVef9WR67V1nzIh2i+Xf91nHyVCLLJXgWyUFHRC2v+PPxeBTsnqJG85xycxri9btH0SOZS4u+fE/aCitm7Sab5o3kP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: 8be8fdfb-7961-4263-79d3-08db1976913e X-MS-Exchange-CrossTenant-AuthSource: SN6PR01MB4973.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2023 10:28:43.8089 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zKvFNl7Gdnd1m5S02Rqx9IRgT52VTYJqMRVgbqzCl7GTJ6+FsA7xdRVOEHyYfNgOm7poCcl2Wk99zBzQ5jO9ATmvVMywUFELkDzaA9+d5aaPTh9lD3DvylXB1sZ5wMZl X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR01MB6703 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230228_022850_091892_869FFA6F X-CRM114-Status: GOOD ( 10.62 ) 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 Support the mac3 (RGMII4) as an NC-SI stack instead of an MDIO PHY. The OCP slot #0 and OCP slot #1 use a common the BMC_NCSI signal, so we use only one of them at the same time. The OCP slot #0 will be enabled by PCA9539's setting by default. Also, enable the OCP Auxiliary Power during booting. Signed-off-by: Chanh Nguyen Reviewed-by: Joel Stanley --- Changes in v2: - Change PCA9539APW node name. [Krzysztof] --- .../boot/dts/aspeed-bmc-ampere-mtmitchell.dts | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed-bmc-ampere-mtmitchell.dts index 4b91600eaf62..1e0e88465254 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ampere-mtmitchell.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ampere-mtmitchell.dts @@ -251,6 +251,14 @@ pinctrl-0 = <&pinctrl_rgmii1_default>; }; +&mac3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rmii4_default>; + clock-names = "MACCLK", "RCLK"; + use-ncsi; +}; + &fmc { status = "okay"; flash@0 { @@ -439,6 +447,26 @@ status = "okay"; }; +&i2c8 { + status = "okay"; + + gpio@77 { + compatible = "nxp,pca9539"; + reg = <0x77>; + gpio-controller; + #address-cells = <1>; + #size-cells = <0>; + #gpio-cells = <2>; + + bmc-ocp0-en-hog { + gpio-hog; + gpios = <7 GPIO_ACTIVE_LOW>; + output-high; + line-name = "bmc-ocp0-en-n"; + }; + }; +}; + &i2c9 { status = "okay"; }; @@ -530,13 +558,20 @@ /*V0-V7*/ "s0-hightemp-n","s0-fault-alert","s0-sys-auth-failure-n", "host0-reboot-ack-n","host0-ready","host0-shd-req-n", "host0-shd-ack-n","s0-overtemp-n", - /*W0-W7*/ "ocp-aux-pwren","ocp-main-pwren","ocp-pgood","", + /*W0-W7*/ "","ocp-main-pwren","ocp-pgood","", "bmc-ok","bmc-ready","spi0-program-sel","spi0-backup-sel", /*X0-X7*/ "i2c-backup-sel","s1-fault-alert","s1-fw-boot-ok", "s1-hightemp-n","s0-spi-auth-fail-n","s1-sys-auth-failure-n", "s1-overtemp-n","s1-spi-auth-fail-n", /*Y0-Y7*/ "","","","","","","","host0-special-boot", /*Z0-Z7*/ "reset-button","ps0-pgood","ps1-pgood","","","","",""; + + ocp-aux-pwren-hog { + gpio-hog; + gpios = ; + output-high; + line-name = "ocp-aux-pwren"; + }; }; &gpio1 {