From patchwork Tue Oct 19 06:01:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quan Nguyen X-Patchwork-Id: 12568635 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56D75C433F5 for ; Tue, 19 Oct 2021 06:04:46 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 236C860F25 for ; Tue, 19 Oct 2021 06:04:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 236C860F25 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=os.amperecomputing.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=qa33uNOfTJPXg4US2udmwHlwJZ0gKAbTElfwnergVUw=; b=EgG6BtHGcRfANf qyUtVV/ob7IjBPsMViHKPahRQuqLRXCqfwjWWcsa9XKEYx1sgnp7xlP+gPoSJnt0fNmbo/MKwjXaQ tkiMCTRYJx/PYsFRPFqqpbMHCHQihFumvn36SJnMs2MKXD7o7T9Ye7u76fsTvk73b201J9d86Hqzk oEN2Yn3XnWjhE4gK6tZQssVbWDTd5duQXw2SY94zArVBdfU8Vwd2L1Wwt38HyUtX/VGYTo0TGok1Q SVEAOWiJiOc8fES6TY0T0XBBsVg1+/wCWVw7AGaBvis90SvrMj/NkCwxyuyPnz+hUL7tRtgQaUZtS oLJYB2JS6CY7OleYIg3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mciD5-000Erl-9X; Tue, 19 Oct 2021 06:02:51 +0000 Received: from mail-bn8nam11on2092.outbound.protection.outlook.com ([40.107.236.92] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mciCf-000Ehy-DE for linux-arm-kernel@lists.infradead.org; Tue, 19 Oct 2021 06:02:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JAiWZ0NjckaArmmnPE2FdxofdmYAWgBVDq58RDEnYGRywnUU3fjTzhiMOJhny3wVtw3yJTKVSrzct9gdzQP6FEQMFQPHOTtbYU462hSlZiNlKSS+q4u/DId4XeI3Vfwcfm5QhqGGX60rvPFGkpYZqjmZLSEtUNxpUeRCLRHKMmrIsXcFM+EnFpHv+cYOu8CLhSeOootTRJi8cngHvWWpcoNEV5RmvWJOaiqG7ZxEk5xdw/f1zdPA+GmSzr4WU+zc/UhUioX3Jw/5VoDbSJj/o8Q8DhCnqQBxAC/UH4ZfEk86dKGAN8LJvWm5E2Xm/PWyOfmtytwxOIGeU4IZPSl9Hw== 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=2QPG54lbIU+wazX7K1TYrfVbDdH3f10oUSnKPcNHGD8=; b=aW1O5+Dqvkpjtk85tPjxqG1HL0DSzyH3Z2n5ddBRgm1PsSum94lTCzss9LnLFPwJqk7VI+pZHBPwFLiNlh/WOD8xwJrEak++q9Q4AlWXTrx3RIs7+SlqJ0yLcr2oksLRd5SCAlRqmXIb0mpZTmH5gHe+DdZCwJBLNb+65p2wDv1N/PRp1w+r+HXg526Sy9YweaBpIfmyiwVDCuRcFRyJx26MxpkJhBUSCLqYS6EjqtTYjV3wZsiR4I8gSNKEXzYe9MvtYK36H8logojNRdWqvULbpbrkDIRceDUD7BG7/+QT+9kCYuw7A5kN8hR4F93y43+1X1436/0Uih47zXUUWg== 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=2QPG54lbIU+wazX7K1TYrfVbDdH3f10oUSnKPcNHGD8=; b=FhTi6cIVgC6DG6geM1+yUJ2pHa4OqhtVxxMkXjzxh/X39boZGaI39ElpBxI+bCV7fcq6R0FWZhiYYP6lW8iQx56VfztmbTnqVKVxNyWpwDIwU7YQkP/D+8xv4+NfOfvF+/sVxoL3hlxMoc+D9JM3rQsyR7NUq8FidWC80fJQB0I= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=os.amperecomputing.com; Received: from SJ0PR01MB7282.prod.exchangelabs.com (2603:10b6:a03:3f2::24) by BYAPR01MB5062.prod.exchangelabs.com (2603:10b6:a03:7f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Tue, 19 Oct 2021 06:02:21 +0000 Received: from SJ0PR01MB7282.prod.exchangelabs.com ([fe80::f14d:21a9:9ebf:2924]) by SJ0PR01MB7282.prod.exchangelabs.com ([fe80::f14d:21a9:9ebf:2924%9]) with mapi id 15.20.4608.018; Tue, 19 Oct 2021 06:02:21 +0000 From: Quan Nguyen To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, OpenBMC Maillist Cc: Open Source Submission , Phong Vo , "Thang Q . Nguyen" Subject: [PATCH v2 2/3] ARM: dts: aspeed: mtjade: Add I2C buses for NVMe devices Date: Tue, 19 Oct 2021 13:01:54 +0700 Message-Id: <20211019060155.945-3-quan@os.amperecomputing.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20211019060155.945-1-quan@os.amperecomputing.com> References: <20211019060155.945-1-quan@os.amperecomputing.com> X-ClientProxiedBy: HK0PR01CA0059.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::23) To SJ0PR01MB7282.prod.exchangelabs.com (2603:10b6:a03:3f2::24) MIME-Version: 1.0 Received: from hcm-sw-17.amperecomputing.com (118.69.219.201) by HK0PR01CA0059.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18 via Frontend Transport; Tue, 19 Oct 2021 06:02:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 99e70cb5-d46b-45d4-b7c8-08d992c6039c X-MS-TrafficTypeDiagnostic: BYAPR01MB5062: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:207; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LzvcrzRXZ7iBerG4CJhtfm5tHkeFRfp2VS9YpcqRFCX/s00TqLQQwlbI7LEEKx6NuHLlCsga5Y5EeUKo3CbnzrrjOSfqOTSIo/IoWrEzMkN1PMzfJtsNBQ3GOgLsgQQzsjnEIEgmBMpJCTKcVcLO66I6isw6ww3ukyazXoIR8GWx9kNsaWNYgE6I0/gUl0EI5VDbvI3czlR9wjwwPPgUAExtxMLuxjcQl6llwTiFL3at4vPXR1z3XEe2fc31T99mi2gGgMhKJHqluaGfap/EaTqaOyVNFy4vo+sQRYux/At3ucd/hUCT7MdXFSds1z3BmGoM8ep/isYeIpHlw5OJOLSivfezPgNi3YgqrWGgmBLR8bvbQXF5P0RUCwzZz8JYYFeM8UOMRynsLdMeNY9QdYqkBAkRt1A/WOWfY1WbtuqwYL4Nro/a3icaKIMwNZSJZRkOKyqHAwUvWoKmsn2w3BUCzdkPxqg+t93eZ+7GppvjvgIU8kdl1Agj5V2G1tSJeAACh0nBqd3572CgRyRSZOBOZgUH1qR0sBnyiYqHmJ0rQAE9xLJkzcvlOAG+F5aqbegLuNtDWUwfPd0UEKEnSJSiigtpxi7lot1Y43RrGaEkNPVvZpVCxxUI9zTJC0RUxHHDM1ARaJvml/+cG5oZq/aIbOo6+e/VVO1ID9tFG95g5+lz0Bg4y6w6xZGUVPyQFqjM7egjqKz/c3/5QecRZQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR01MB7282.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(54906003)(6512007)(110136005)(956004)(2616005)(508600001)(66946007)(5660300002)(107886003)(66556008)(6666004)(316002)(8936002)(2906002)(52116002)(38350700002)(6506007)(38100700002)(86362001)(6486002)(8676002)(186003)(66476007)(4326008)(1076003)(26005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JHFrZ1q9phwQ4V/Dgg+E9l6x2DqaHc6fqvYOc7i1/LcMzwKow2gbT/HoGGfQTyoUPKTwv72DMraZfLa3H5F/mSu3cUlMq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b6fmnK+T426EH+rKhv8GYbbv688aO6lrSq/mJMbi08AWCiYAmrQrJZ1gm1+UTdOzmRDFIRN9vK46YGrPtJJOPYPDYnWhObboFQqL9gdvQgscBKra7bF2AyMnR81jx+I84T/5xdnDBsTTGi6k5LSVRIK2Qtedb4lF6Jr76KgI0+tDW X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99e70cb5-d46b-45d4-b7c8-08d992c6039c X-MS-Exchange-CrossTenant-AuthSource: SJ0PR01MB7282.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2021 06:02:21.4046 (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: qnbAnFFf2G2Dzdm7/N0nkFLQivX+oWcXO+/I1xkVq+6h59DKiWMwbG0YoxmsSeIbeOVaF4lc9+G97e6fasONLDa3phRiXG/PcrKe6FKu9Pw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR01MB5062 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211018_230225_495459_D45C8CDB X-CRM114-Status: UNSURE ( 9.64 ) 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 This commit adds configuration i2c busses for 24 NVMe slots and 2 M2 NVMe slots found on Mt.Jade hardware reference platform with Ampere's Altra processor family. Signed-off-by: Quan Nguyen Reviewed-by: Joel Stanley --- v2: + Introduced in v2 .../arm/boot/dts/aspeed-bmc-ampere-mtjade.dts | 258 ++++++++++++++++++ 1 file changed, 258 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dts b/arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dts index 3515d55bd312..723c7063c223 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dts @@ -7,6 +7,50 @@ / { model = "Ampere Mt. Jade BMC"; compatible = "ampere,mtjade-bmc", "aspeed,ast2500"; + aliases { + /* + * i2c bus 50-57 assigned to NVMe slot 0-7 + */ + i2c50 = &nvmeslot_0; + i2c51 = &nvmeslot_1; + i2c52 = &nvmeslot_2; + i2c53 = &nvmeslot_3; + i2c54 = &nvmeslot_4; + i2c55 = &nvmeslot_5; + i2c56 = &nvmeslot_6; + i2c57 = &nvmeslot_7; + + /* + * i2c bus 60-67 assigned to NVMe slot 8-15 + */ + i2c60 = &nvmeslot_8; + i2c61 = &nvmeslot_9; + i2c62 = &nvmeslot_10; + i2c63 = &nvmeslot_11; + i2c64 = &nvmeslot_12; + i2c65 = &nvmeslot_13; + i2c66 = &nvmeslot_14; + i2c67 = &nvmeslot_15; + + /* + * i2c bus 70-77 assigned to NVMe slot 16-23 + */ + i2c70 = &nvmeslot_16; + i2c71 = &nvmeslot_17; + i2c72 = &nvmeslot_18; + i2c73 = &nvmeslot_19; + i2c74 = &nvmeslot_20; + i2c75 = &nvmeslot_21; + i2c76 = &nvmeslot_22; + i2c77 = &nvmeslot_23; + + /* + * i2c bus 80-81 assigned to NVMe M2 slot 0-1 + */ + i2c80 = &nvme_m2_0; + i2c81 = &nvme_m2_1; + }; + chosen { stdout-path = &uart5; bootargs = "console=ttyS4,115200 earlycon"; @@ -445,6 +489,220 @@ rtc@51 { &i2c5 { status = "okay"; + i2c-mux@70 { + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x70>; + i2c-mux-idle-disconnect; + + nvmeslot_0_7: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3>; + }; + }; + + i2c-mux@71 { + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x71>; + i2c-mux-idle-disconnect; + + nvmeslot_8_15: i2c@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x4>; + }; + + nvmeslot_16_23: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3>; + }; + + }; + + i2c-mux@72 { + compatible = "nxp,pca9545"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x72>; + i2c-mux-idle-disconnect; + + nvme_m2_0: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + }; + + nvme_m2_1: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x1>; + }; + }; +}; + +&nvmeslot_0_7 { + status = "okay"; + + i2c-mux@75 { + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x75>; + i2c-mux-idle-disconnect; + + nvmeslot_0: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + }; + nvmeslot_1: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x1>; + }; + nvmeslot_2: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x2>; + }; + nvmeslot_3: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3>; + }; + nvmeslot_4: i2c@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x4>; + }; + nvmeslot_5: i2c@5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x5>; + }; + nvmeslot_6: i2c@6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x6>; + }; + nvmeslot_7: i2c@7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x7>; + }; + + }; +}; + +&nvmeslot_8_15 { + status = "okay"; + + i2c-mux@75 { + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x75>; + i2c-mux-idle-disconnect; + + nvmeslot_8: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + }; + nvmeslot_9: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x1>; + }; + nvmeslot_10: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x2>; + }; + nvmeslot_11: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3>; + }; + nvmeslot_12: i2c@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x4>; + }; + nvmeslot_13: i2c@5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x5>; + }; + nvmeslot_14: i2c@6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x6>; + }; + nvmeslot_15: i2c@7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x7>; + }; + }; +}; + +&nvmeslot_16_23 { + status = "okay"; + + i2c-mux@75 { + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x75>; + i2c-mux-idle-disconnect; + + nvmeslot_16: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + }; + nvmeslot_17: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x1>; + }; + nvmeslot_18: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x2>; + }; + nvmeslot_19: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3>; + }; + nvmeslot_20: i2c@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x4>; + }; + nvmeslot_21: i2c@5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x5>; + }; + nvmeslot_22: i2c@6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x6>; + }; + nvmeslot_23: i2c@7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x7>; + }; + }; }; &i2c6 {