From patchwork Mon Mar 21 07:51:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sherry Sun X-Patchwork-Id: 12786955 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 74590C433F5 for ; Mon, 21 Mar 2022 07:56:10 +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=0SvxWvxVwv6KHG3yDUmLgdJntG1awru25p3eIJl6gQU=; b=ILCvFEAgL/wx3q 7Ea4O3ZAN3AYQ9a1Dk7Jx4rg7OL+p2jUujwlkZ3GhGMk8FjOdJUuboKcFskEsUyzPhw+CkDIs+cTQ ZmL/b9K8TjfkJy2BNLRrf0xZMMgiGvua4aqHgzkyy+NghKO+2qyDIZb5Zl6u6DJTYIVPI+qDa/Gx6 m5u566wb8wnBTMvZxh3IZ2dHJi+LwNrzEmSp22W/QdR9K+FDbmU3AWvRQBUDQWQnFa5/NoyLP/i// YLml3LM09tajj1vYP1NYMU7tq6sSRQ7P8897AK1cFPm5WJjKi+gaAvH6aEZn6ppfYKuzKBfc6p2HP zv11QHOi1Oyb6EtRRneQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWCsU-006uGt-5F; Mon, 21 Mar 2022 07:54:58 +0000 Received: from mail-he1eur01on0624.outbound.protection.outlook.com ([2a01:111:f400:fe1e::624] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nWCsR-006uFc-HB for linux-arm-kernel@lists.infradead.org; Mon, 21 Mar 2022 07:54:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c7oKutP4tw0W91+0leEV5xMhlO2le9uhvn95GO6ugK1K7DK3+LFy3j3z0onSpIGRcXDj67hiolw2M11sPNhZH9RIa56jyqvx2epHEUtc99/+wPnvC4MyQWNuPd/hhh4DlktijDN7XwMXTNw8+5phD2KQYBDyngBhtqzmLifMHjBhKLzghoJ9J1bBri8pIZPMZYYkNie+7CXaA5RB0gdw33Wibmrh4XkZiMQiBQHfJnFNJPuojornvMrkUZjyzv7Nity5WB4n47N47g9S3VJcfQ4HXEbWYwKFdVxyLG9znsfDYDnPkb4YabSG9LDj7Ino6qFhyKOXiGlqq4/Gkt5rLA== 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=S+SDGOfgnfjMyO9l7GDGlKbOerEEDkiHgyuDEeZXUJ0=; b=R8LwPt9LjYlokiwgVH7OB200AsHkBnSd0+n9KJPAofFoRarF8JebJhqyC64r95q7ZnUX3wxdWgP98Q5DsfEEo9sP9cJffsEkH/k0WrebzYWOZUV0Lc8O9MRh0tYBha1PnTwESmKRH/4QJ7wwAnH5YFip/LqOltEpwlyQf+2b73oLiu7BgC+H8SOXINEIj9GyEn9Yusk3S0yz5sbfljK8LSx50TyS4L4cARDS0JJYFNjJzRZHr4yTQa1P1qv9+Ar/CCRTzQtnY0zEFu8/aZI4iXpzzbca5V4nHEzKyCVdkPNkE3gynMvBKSlWAuLt739+SA7uDhp0ns19IU65m2NFlA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S+SDGOfgnfjMyO9l7GDGlKbOerEEDkiHgyuDEeZXUJ0=; b=YMr9ktIro2XI/ignGazxEHeDps/BwXDgrLJ46VBKPEdWC2xQD6vw3ha93q+pNLjiXzAg3VJnAjxQG7JxKpr3bBne+MMqljf5eZg0cFqg/OZfAEFjbeDyMYN/DWYBh6XY9Jr211DhlGItdP0eSP9uadeKEJDrMh0wMRANuQzo2jE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) by DB7PR04MB4204.eurprd04.prod.outlook.com (2603:10a6:5:22::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.22; Mon, 21 Mar 2022 07:54:52 +0000 Received: from AS8PR04MB8404.eurprd04.prod.outlook.com ([fe80::6972:1f59:5d1c:e557]) by AS8PR04MB8404.eurprd04.prod.outlook.com ([fe80::6972:1f59:5d1c:e557%5]) with mapi id 15.20.5081.022; Mon, 21 Mar 2022 07:54:51 +0000 From: Sherry Sun To: robh+dt@kernel.org, krzk+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, manish.narani@xilinx.com, michal.simek@xilinx.com, dinguyen@kernel.org, bp@suse.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH V2 2/2] arm64: dts: imx8mp: add ddr controller node to support EDAC on imx8mp Date: Mon, 21 Mar 2022 15:51:31 +0800 Message-Id: <20220321075131.17811-3-sherry.sun@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220321075131.17811-1-sherry.sun@nxp.com> References: <20220321075131.17811-1-sherry.sun@nxp.com> X-ClientProxiedBy: SG2PR02CA0104.apcprd02.prod.outlook.com (2603:1096:4:92::20) To AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 883bba6b-90fb-4b36-1218-08da0b101461 X-MS-TrafficTypeDiagnostic: DB7PR04MB4204:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jm3K1PNSvn7oBmKE5rMMl3QvCw34hUm1HMkE+rorFJ+l3Z9iouairaMec1dIpLgbkjL4THShT9jk3vJIpRG5Ui6j/zgPLLOKyAqLQgg5/RCSD5xUOhinY4JwjbU/1x+fojI1ddwRd6hgKOYTlPpAMPAUzCgyv+GW2Dhks4co7N5a6vHVra1khWq5d3R3RwuNBMHqEaeP5ZeVNDgfIIC1oYMEe6ipcze7wymnxdwbOfIUDuEifjP0Fovv6i2jENnORObzuedlBFybmG8juL64d40IoF3xQy9I6GMs7kx7JhLAGymqWdyB5Lho1owyj4xQm0ghcbFa8P96ZUu3JASGs9FDKW9o+tOJlb4yKrqg24uD86bSA26pIRx26DlCE5JroYe0KD9r4DdryP8TS8U+iy8A3qMVxjef0OHJDsac+fJBmMOS6dXzTP64T3OokmlOWkaQleN4N0/Tq8V4WvgpOUREPkTahbjdlsl3XsleszoNmmgxAbDOSM18lBggcwqUHTqZIbH/SpWVZ1ln7Efb/dJitV4zlp7GB0IBROowilUy4CVMU5e1U0uFb6PKbS1DB+Rou5XojtiVidMVbimCjKxCEOKtju6ZIRmkUmdiU4U8X0cnZ/kf4kp/Vy50FW2L4TEP0RXdGPaiqc0frZFWvlxY4/I71wwHhgMx227YGZWgJ+j/6BKIJtzxvVJrNEt1GbdWTVaRzs/p1VTU8HqAhMSRjM3K+Rqsqwr/JlE4jxU= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8404.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(8936002)(186003)(8676002)(6486002)(2906002)(26005)(7416002)(4744005)(316002)(6666004)(44832011)(38100700002)(38350700002)(508600001)(4326008)(1076003)(86362001)(36756003)(5660300002)(66476007)(66556008)(66946007)(52116002)(2616005)(6512007)(6506007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: M8gGpg2VUOgr66jJc2cF3OzHSO7g7GW+rfmA0vzUy4mM5P3KQNXg2MuMSWSIzvQK6q9yEeMxx3SxuQwZ21qmjhIGW/E3rnoFXA0n6P/oAQkWfVK2Ij7PB75HM+kvX7df3YI/dpij1/8UuSb8zbzglY1i1o2Nt9drULwIhctEE4L+uqnmRkK2YsJ83JxzMidfHJjkfegpgcVcqTT1znghVk7ACNKqDmym2WM3RhZ8/7aA5nI8Ic1z5RgismavHAkLkkMjGNdId3BV1o0E5adisCkxKDu1ogwyTlPLG4HNR4oLJr94Kyawq91aYY4s9CNC4ckPNmR2PqlQeYp8tA1l2jncVzlC7AoGHknHIy5c0s0vo6k8DUqqvgSl9eLMtbG9RL73Qr+rcUCdnqyJ32QdeaYwypTE/knF6XOKUqjOimKBhIjwWpnbafu96fNRZjf9vRJTXJcsmJgAAr3skV2PIcTDz7yWSdxqxpyO86qo1A7wlHzjubrQHslP6WP5VHYEchfqX4Awf3VqDvz0IGqi3JN+2LXVRTY9ts1Bo21Yw/hBrf6tbH1ucDnlmYdpIrfACm4KZ9Ki+1Ti1kitcNQW3G7er4dSQtZeP7ZgI1Qw8JxHFqSdLjGEMBs07uobWHDD6QsBWoKlIYQQNvFGoCBVTJwhHsh6TsSxWVuYyXEefAqhD16sPA4H4xVoM6zu8XH5vSEVuRPY3ul9RcgeQjodH/Sk7buhT3ZYumZt+dH5XNaUaNmCJrFDd+oKDHPqzcsemiLF/ky1g/XJo8qYiXSvhWg7LFuBPlQbsqbBg2dkjtt61e8Wm+zK6qZ+vFjzyuA+vc3dHh+bjwS/hzk8VEGsLvUG21wasfhIFCBzHcvBygjDnJ8+Q123qa3PifzScxJZ/J/gy8CdxIHsQ5N2VHNG8fgSgY2DBH2WpgC6dMWZUsdwaRA2x6480mewpUuvOd0o6VtID5j1ISiQR148jrUwBgc7kGlgQin3BSVlW0kNe2tieEDDJ6odKcXf8p/v3exR61TWZtWkpdf7Yo6mkyinP/bqGrguAuyFHRvd5aYXmZRcScIUe9JLdNspB6Sl+DZ1nilfqHmHgW0mSjiR9CgVZg5MWtcP2kzcP2e59opWgoIsCIcSI7WgAfGg4n0YHJc3LGtJZlC3PywrVvIVffPVG21OaDhMayiOun1ElxNwqHsOonZXV5EhB4GIFfuQ9iALNuoVpaSMTnqivYkP9RbM8pItxQKyywVLnl7UOCYcFs8UeszQDfSXbtd6qSjPGNh/jCHOYJaNg55rYT6Hf+dZ9U9x61eCF9KGFR5XTiWRPPqNpTQkkVO1eySZYcOHXTXjby8WNRH7w+9RTs3tIvfCejP34kYHkXXKHf3gVj6evlXM6Xqjd+fRt36bATF85rxhqbqacS0IzCZU944NIgNDe4Mmd6dg99UB9h8HDVWf49SqgMZJRmd2pSAUI4FvzhMq X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 883bba6b-90fb-4b36-1218-08da0b101461 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8404.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2022 07:54:51.8915 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +IL0dZdmK9JtzTDoFI7l3Q0QK6Yf2UybYPtiEd48Na+Y75pOAPHe9hDij4AeeuT7Ps8Q7Y16YS9zov1LyP7wEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4204 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220321_005455_593304_8E489EB4 X-CRM114-Status: UNSURE ( 9.37 ) 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 i.MX8MP use synopsys V3.70a ddr controller IP, so add edac support for i.MX8MP based on "snps,ddrc-3.80a" synopsys edac driver. Signed-off-by: Sherry Sun Acked-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 3f8703f3ba5b..f39da2b12ddc 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -902,6 +902,12 @@ interrupt-parent = <&gic>; }; + edacmc: memory-controller@3d400000 { + compatible = "snps,ddrc-3.80a"; + reg = <0x3d400000 0x400000>; + interrupts = ; + }; + ddr-pmu@3d800000 { compatible = "fsl,imx8mp-ddr-pmu", "fsl,imx8m-ddr-pmu"; reg = <0x3d800000 0x400000>;