From patchwork Thu Oct 21 07:13:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chester Lin X-Patchwork-Id: 12574053 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 7275AC433FE for ; Thu, 21 Oct 2021 07:15:45 +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 3ABB360E09 for ; Thu, 21 Oct 2021 07:15:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3ABB360E09 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.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=MxUJac3gXzg0/AXJiA2OnBgMQonB3m1Z0RWu6j4RtAM=; b=Ren3nzjrfYfIGO TGwJ0Z/vNFNT9J1jdNKXEg3UyAw/pAAFMQY+hqV1PbiL7xsmp2lfu0ABM5TqG7/WrJkmGFOlQ02Tf i3z+nTgVwdRv7A5e5uoxet1noDK78CKd8gS+SeK3Doou8qteaN8kwcSXqRvdXe1aBtZJ1ABHqwf43 ANIdlq3fsKjuEz3WuhyL4MJYjg9qEINBcYTn+6MqCoWyAUHiW2udS8I4WwjskZIcTE/4sT4tCMKar U4jX9BWBGWqv7/NptNA4CG7YgHhBwlXLSIBHpP9CmWI0Gx6owMcTT+fD5zjcGrxqJw0LAEpOWgTk9 RPZWrms5y9nvm9LktHOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdSH4-006dCb-1C; Thu, 21 Oct 2021 07:14:02 +0000 Received: from de-smtp-delivery-102.mimecast.com ([194.104.109.102]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdSH0-006dBO-Fn for linux-arm-kernel@lists.infradead.org; Thu, 21 Oct 2021 07:13:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1634800434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Wksfpm52dAveuiyLfO8LTvLEvuEZWuiIqu5BlEFARjI=; b=cyFsuIU0YLErCoWGxIpLIvyABRgbzoirOqezPL68MufdwKcqzX1uDYHn4QgPO4yihrcPoH fft+fLh5tXHK9ly/QnJH3V2zwyiiGEUjj67B4j1Zsj7o3mIgygHFIW6bznZ7qriVKDzbKJ au59plyfBCcD5iSsz1+U9ugTdD4hn8E= Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2110.outbound.protection.outlook.com [104.47.18.110]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-9-eJ7NYi0zO2KJaog3nx9eUA-1; Thu, 21 Oct 2021 09:13:53 +0200 X-MC-Unique: eJ7NYi0zO2KJaog3nx9eUA-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=npBXjDVAHyShRP9DvENxXtTiXZoCliTToiumQtOod/WqHHPK7HqdALA0+9zGvr0IN9WuaztEbvEIuwPl60uMKumcvpMLFo0XmY8ISFQvyOprv21+JY38aDpHmulZKFoL6wag1jf2H+LfXpzIAQCFZqgKjoKTCQ+4k3jysNVZvv5S7paRDSeSmcmsuyAOZc0xGlRjucIOPMOwyotbEo624fTcwY3cDZ1nEs5rZRl2+9bIwMWeq1gslquTfhqzxDWVM0feHqGAmJLgvyAL3ekJgBvZZ61iH1N/8k5BW7hGcAjExVGRQ39Cu3UsGFnAsCBu9Bagqk/lLkhuBiWxeO1Gxw== 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=oFjPsUq8E6pZ1iX1SK/rfQcPfE+qy1bi9OzQishpEXg=; b=KmshSyBgRXbozV0QhmBSYFDZvCMQKH5TwachCb+uiYPyIe7DXhsI6shBoWBHLn0npKXzqqJPWsmqaC46VSVCk+OF7CTdepIPH/qg5ENdQ3U+p7P5esPcB0LdWVyzHieozEUFb+M2mVNs+52FFSiIHtzGhi9scoVqmfStILWDXWOi9FfgjDdO8pVrSoWd8VMRFgwdSv6MYmwHSVKrDJj7ihMMLegRrE0EApXyHo/TpRAb7ZPGPkvEfu3N8komIM/FRc+wfAA3abpPXfWIUuUMCJTElxLOV9AWV4XdEXKcJRd5y4OEqaG/V0dJZVQ5gIEzzmjB+po56ystgs8YP7pTiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=suse.com; Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) by VI1PR04MB4271.eurprd04.prod.outlook.com (2603:10a6:803:3f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Thu, 21 Oct 2021 07:13:52 +0000 Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::88cc:32fc:2cae:3fde]) by VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::88cc:32fc:2cae:3fde%7]) with mapi id 15.20.4608.018; Thu, 21 Oct 2021 07:13:52 +0000 From: Chester Lin To: Shawn Guo , Ulf Hansson , Rob Herring , =?utf-8?q?Andreas_F=C3=A4rber?= , devicetree@vger.kernel.org, linux-mmc@vger.kernel.org CC: Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, s32@nxp.com, Radu Nicolae Pirea , Dong Aisheng , BOUGH CHEN , Matthias Brugger , "Ivan T . Ivanov" , "Lee, Chun-Yi" , Chester Lin Subject: [PATCH 1/3] dt-bindings: mmc: fsl-imx-esdhc: add NXP S32G2 support Date: Thu, 21 Oct 2021 15:13:31 +0800 Message-ID: <20211021071333.32485-2-clin@suse.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20211021071333.32485-1-clin@suse.com> References: <20211021071333.32485-1-clin@suse.com> X-ClientProxiedBy: AS8PR05CA0004.eurprd05.prod.outlook.com (2603:10a6:20b:311::9) To VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) MIME-Version: 1.0 Received: from localhost (118.166.56.207) by AS8PR05CA0004.eurprd05.prod.outlook.com (2603:10a6:20b:311::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18 via Frontend Transport; Thu, 21 Oct 2021 07:13:51 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 26c39c59-c2e2-4a22-9004-08d994625601 X-MS-TrafficTypeDiagnostic: VI1PR04MB4271: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2657; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JnH0Mu4e/kQrRH3bKfp9RwdrIIAd4mdX5z+mzO6aw7NT8795qbg2lDmrfzN/6dyQTT3MoyVN1RYSns6K9kKt3B0uL4QctwubvfKE+RAV9Q9qCOyYabz1Y+CapUF5PHfLPwypICnRXHbfioqDCLjoHnw8x20tRjvG27JR1INa2Wj67IfSYhRnj5pM2n0Huj1DTfv+vAi/1ElThtQEV+t9JFD/w/jOoPDS+toaLu4fx6KjR7l9JOunOHMA/XZeKgy+aGi1yU77LVS/W/EN/qeJziq29ecHVvludA7HY+3XVx0feRKHxlkyJlTeqbxiMQmZOfBQlD5CfEBTQP1oos7B9fVkxn9B2BcKmEW2jlplqlDp/MS1JVH3Tbd976W/n3FRfj2afZiU7nWKXnUfw9cVCVtKlYD7vVPdpEfbnohCaS2OnaIXdwYeKlm1FOS6eh9UaJVkkFuXxIR972l28273zmquN0BKvJJwB99ic26LZ4liYKxLEJMfsl+e9G+z6OgpJFOYoX8OKyvv2M/Yx8I/MZ8ZGPsCk07SbaP5IiLCmLcqmHhOYkRa/nNbf1ZJNGq3LsJjQN7xLphRaid83ngfH65JZiilMce1BmyseUDvVrBLhQZWO3mML0ZcxIsjlI2oVjhRkMeYT/nzHBMoaYKgzw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0402MB3439.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(8676002)(186003)(54906003)(4744005)(66556008)(8936002)(2906002)(107886003)(5660300002)(86362001)(110136005)(7416002)(4326008)(1076003)(316002)(55236004)(66476007)(6666004)(66946007)(26005)(36756003)(6486002)(6496006)(508600001)(38100700002)(956004)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X3O84RvK5cTj++dEIkXQq3IKBsNXJHh6xRYRds/0fk1OYUS5Y2erEUtxaUEVK/jjOTWkTIvuwxS2xolYGvxULT9Y2WYVitShwEcrUCqcNE8BcEkcvRac6V5g+TljOX1xGT2Os1QBIgbRmUhASfXJ/Tq/f5IYW8cYMs9BQ0X6eCHo2ytfYNWCRGez9QbQSRqttFU5XhRy5bisvwPLEQXMKqlGfdLYIKyYfN3vdU5/0dCH/syG63jm6kuBJHK1quaLn1MISRqW3qb+6wkIyyvMFljYUwjeB8VNSSCzm+qhVJ5v2iBgYBWm72oqY+jjCu6pmJppjyEZZsUJWyC6mBhrQCpXCaUDbPXvC5BsKkyhkgJffzqQhHP+R2PseoSRhbEB62JtNTh4IE3I/Wq5vgNSt4i0BuU7PitArK4C+Uv7Wo6Ro9cPbkD4k3TCbIgd2lofJcQnPLMR9ginTE41kroENk8ZNFUtMqd+WdySW/Uh+u9vE2SE1GcSrK/tugDnjncheWKJ9QPZ2dkXIdP8Q7bKis8eYPoLQUv7vZIEox2hhqqN+MdIDQ2S4hvQmy/0Ly381HbWCVBXq3UwJb8dTkART3BYgwewOAFbmRub5/al/7CIwAX3LWegJs8JO84BGJywZnontMUxPJhSYs+tLz2udddjqqVxpsCcXHkIX1r0weIiS1aiPmh7I65EBEjOjduYGMEGCWksakdBC8jJAvU27XfQMGjtUcpb0+mh2YRDZ9stbx/GVoKaS6i4hnuiVY0WPaJYYI1+AQHgAXgmho7Y1M7leYzL9XoA7vrevRIwsLDJP8VPFq29WTyOgAjOxOHd5cD+E1hrQyVHj3qCdOx9olYlTedkfjyCineSDUqVED6V6HfJ94A0DB3/hN+jX9sCIEnOEstQag458RwkYkVN+UbuIJDSkZKnjC/y1bVZpoDBIQDO+IS2l7SZZaNkwVVhrqmkmE4lVeNTaw441Pna0g9ZpVWJHxtfib8so0afeaZEFDOvMPXLZ1eiXPL5UYTgcDc/HNLbiwywif+oy//T19ls37yCNamkRUxRP9EOs7gEYxiuRlImxxUJwmBCrwVP1pDdLhB44TKjTaRwuREsvTeQoB/X40DN+Br/B1Jq/sDcba4CTEHi1psdd0YjP4GT3vOPjElRorAD+zIwMtSJKunXwhq94txaPtXLS279V7anodxUkelvfEbPL7hWuu5FeHfXE40lc0n6HSsfWZA9DN6ZH2Vi4jlqZquLOTpnBgsYIq23t2GzFufggBh0e3IqJ3bczlkTkKhsUk4BVhbzMRxk4Pnv5pnb6XeiG1Gd9KwG1OtZhe+cNBFdp76xtTqb X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26c39c59-c2e2-4a22-9004-08d994625601 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3439.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2021 07:13:52.1753 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: clin@suse.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4271 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211021_001358_723543_300AEFF5 X-CRM114-Status: UNSURE ( 8.92 ) 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 Add support for the SDHC binding of S32G2. Signed-off-by: Chester Lin Reviewed-by: Andreas Färber --- Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml index a3412f221104..19621a2f8beb 100644 --- a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml @@ -34,6 +34,7 @@ properties: - fsl,imx6ull-usdhc - fsl,imx7d-usdhc - fsl,imx7ulp-usdhc + - nxp,s32g2-usdhc - items: - enum: - fsl,imx8mm-usdhc From patchwork Thu Oct 21 07:13:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chester Lin X-Patchwork-Id: 12574055 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 84F60C433EF for ; Thu, 21 Oct 2021 07:15:52 +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 4BE3960F5D for ; Thu, 21 Oct 2021 07:15:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4BE3960F5D Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.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=ZTyht9V3F6dbmV+CYacARtNSKlVZPBqE/z/Sr9yuhKQ=; b=0MS5GSr9mtOirz 8Swj/gw/3qCv7If5FuVBHb7zVmxIBD2DHUj7iTsBe3ykzEOV5b7owZAcW5A38YS8TTVc5IuFPje5i Fwd1uBFm0Yj0Jl1aSzd8Qy3MlrRa6bMauO8tdq+i3sy8EuuLaYPU41ruE+T2Q4UAPimikjdZCxz8H MW/fAAn3Op693HVyyF9b/j/4TmHRmw6VdF3pme5RC/f7ExusFE1U1GzAZxcY0G1GkVD7zSYZQJ4Xb szXqkZMPoMr7vCcbHCnqsZr9fNjEWBhbuaOVf4LWvo/zsEjiD+D92uKVpxbi99Ky3k48deqJu1InQ HiFq6BQQ3kMy7WvXXkAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdSHQ-006dHC-So; Thu, 21 Oct 2021 07:14:25 +0000 Received: from de-smtp-delivery-102.mimecast.com ([194.104.109.102]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdSH3-006dCP-Lb for linux-arm-kernel@lists.infradead.org; Thu, 21 Oct 2021 07:14:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1634800439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RCpSqxE8PFlgIC4hvQFTF3vTqdLx5mVUT/kr/moCM2I=; b=R2mW13Uf4NYjcBbHWpykHnYgxbryipeHQyJuc6Vq+BM+M0+Xl3SWbZDTx6THhq+HFrwHqm hyUdeums6+ZwkpVHCeMPxe43v8BRwAjhXAqvz8bNl98/5ffT1kNGCQZHB5Gjatl0vEoUm4 ctxw/ETNLu6zdV6e95DBpKRcPogtHHo= Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04lp2055.outbound.protection.outlook.com [104.47.12.55]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-17-BNp4m4lzOF62jTTaje4O0w-1; Thu, 21 Oct 2021 09:13:58 +0200 X-MC-Unique: BNp4m4lzOF62jTTaje4O0w-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HMqEGme1Bytu90yGnCPpo5qiZtQxn8Xoe2ox/piSvmQf9/vuRy86ryaJJkkWpkocF0cZq3mStqRLbYk/E5o5NUl1JIEXUaHP4djr9bgopRYJCgOf+zbwDeJkxpZ5H9ZFW38S8wqHhKBb32estcMdbWY5RSLE1lbATwX6HWU1HovHZx4K7k+5jafReZrEb/XuOp/zh9r2dou38JzZ9H0Cty8YZv4HmgU4F6qPJf5ttl7HWlz9BRPFdgye443jLEAkilbr5xT++BWI2TdG5yNk1yhqnk9Bh0m4Mde4Y4IAULRTOwmyOZXYJnjt5hZ0+3+a6w3Z84Nl0GwDNLEEafow3Q== 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=sRR9QQqyyJqEODYW4ZNtz0+kT6NirDlSQFWTK9NesWI=; b=d9gbKBGrQ+5eieyQeyyQUgCqBhO71QRgsHOoKea1CpGs3ho3HxVfkUdsQY9EHHN7UeqfTWjqBgvTaBJlMwmYaHuI76pMTGVVyVbhNqwUkyIwx1hPqKC0oR7vVvi+ufov0w8MIO0btbmbqmPR9RWgLA0hMyVfWmErIfvZXxLGtvWCBZe03UdhANQRyNEt0zkDkCAhPKo5Petz8cNGxTzLSFpSncWrP2ntf998Bnfuj8yMv5g5Vw8TzJjI5BnBTBtzEkqsb0Tbt9tx9FON69YUMvQwa+leBkkUzxfqZVxXWDnYOPyvWZ8cE+wuKSr4F7WJ5svkJizVoLSCwU2/cCm/OQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=suse.com; Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) by VE1PR04MB7248.eurprd04.prod.outlook.com (2603:10a6:800:1aa::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Thu, 21 Oct 2021 07:13:56 +0000 Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::88cc:32fc:2cae:3fde]) by VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::88cc:32fc:2cae:3fde%7]) with mapi id 15.20.4608.018; Thu, 21 Oct 2021 07:13:56 +0000 From: Chester Lin To: Ulf Hansson , s32@nxp.com, NXP Linux Team , BOUGH CHEN , Dong Aisheng , linux-mmc@vger.kernel.org CC: Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Radu Nicolae Pirea , =?utf-8?q?Andreas_F?= =?utf-8?q?=C3=A4rber?= , Matthias Brugger , "Ivan T . Ivanov" , "Lee, Chun-Yi" , Chester Lin Subject: [RFC PATCH 2/3] mmc: sdhci-esdhc-imx: add NXP S32G2 support Date: Thu, 21 Oct 2021 15:13:32 +0800 Message-ID: <20211021071333.32485-3-clin@suse.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20211021071333.32485-1-clin@suse.com> References: <20211021071333.32485-1-clin@suse.com> X-ClientProxiedBy: AS8PR05CA0025.eurprd05.prod.outlook.com (2603:10a6:20b:311::30) To VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) MIME-Version: 1.0 Received: from localhost (118.166.56.207) by AS8PR05CA0025.eurprd05.prod.outlook.com (2603:10a6:20b:311::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18 via Frontend Transport; Thu, 21 Oct 2021 07:13:55 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 292fbb00-10f6-4102-68c0-08d994625897 X-MS-TrafficTypeDiagnostic: VE1PR04MB7248: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GKi3lFP6P1dHqxXSe2lQUuC+fRz5lC5eFT2a5Tot9HhAmjPdL1qSLAL91ajzLTtM2YqlC29jpP/mgroIgvn8YsOk5EOgMDIA59nPxTVD362vFmb4wWcltMQaeYC8p2T0IpS4Ve3Z16RDcwFfd9eu/ffesuenfMA+bBlUG5JIyMRuS6TIXJqJvsrpWzwA9TY8eTe2gA2w/21J1BVuIHUCbuCTA5oSy8fElO5vUnpYddoUqBuz4+8UpsJYyFGMHZ8BzhQbvIqMOyhrUhjhtW+ONsMVpfRkuLN9TA76J91m9A9eV/NR4A/FVWyvQcKr0lp3N9ytCmdwvRRjAChAPy/j50f0GoqxtDLSaRvkb84AhGe9JFBnd6Xm7r0azS3WN+k5qd/dX1zZBlP2VM91QO6D0c8cibDyGFzk10z0mbAOzNZmihTTPB6XZxQ5ZOA7ytWGAieNpIsbrVpEN4XSx7gaxFA3Tm5QASpc/hLUdkhLVPvl1s4FBgnlUjcnz+O9Qnfu8cSKn6QWjlGt+6Vdvo92f3L6VBJdboD1EnEDaOMefvESHQi2GreS4WGqV9J0Ufykz7elueRiecMJ04Bw4yDZcrBIxntN0MnSCEzhqzhcU/HvFA9AldHQRD8yS4JaCUJmvY5OKDtDIcDiPQucuhIA+Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0402MB3439.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(66556008)(66476007)(2616005)(55236004)(2906002)(956004)(8676002)(7416002)(38100700002)(6486002)(66946007)(36756003)(5660300002)(4326008)(508600001)(83380400001)(8936002)(1076003)(186003)(107886003)(26005)(110136005)(54906003)(6666004)(316002)(6496006)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: epJK+CBnyVapOgXVGtWkCqAddcqa7G8I1tzj6suJn+NtIh0uF3/Mr6Jy64tXeIp/Rv6CMqGNESB2im19Y1g5Ztts6iXxMmlbUkjUuGqhlCXBBaHdoVHIDb5RWALu1QCCYzaPyC28q4SoYemDh+21oN1kdvfarAFMd0QvMT50kIPFtFw/ZpwDfr5C8gm74Whk6e+XmY9kR25l3RvcVg0wiQGTPB+AbYraadRHZ5qk8gZvRKiItXNGL5ZIFh+UpmAJUgRau3lHRkc2945VFslmjGFhfcBeia3gu2wPPGbedfHbQcL/Q9bbqzBEvV/JZNjOMCzNEqnDboSeikf4KubGW34eUuR0+pXx7oorpqx5dZ651+gJkHaDiIk47PuZ2NQCbzjQWjd6XQxlYk/8hKVtrnHzQPAtU7RqH/u6PHaV4ns+ujztoAsEKLPVXVBNUrB7c7NCOS8VqYBkKyp0BJbrpPcxVDhsASOTM3EajRamFmyiMExAShpDVdf5TfAWDvJbyxr/YJS6t7O19ZK7WWYRWJ/3fStPnrXbse9hcQPlfdE4/8Gj/qZdkkE32OjnLDlOfSheUZADjjAGzYGKdtTFktN6FcIYZcr+0Oog7OlOmCovXxY73uhm+EzhWpnB9gYqPETGTSiwY6URU+g+I56nFwXsfO8OVxCnNzX6IZ2gLQELplPe+7CbXD3A6lTONUE971HD8KmbAj0I24A77QGzSRd8iMlCU4IuPIGEbgULkkCxwi69o5+0zMcZc7suux5mtclFoexjPd/SWWytgjLxct7spVtCPqubQcx4OOdwhusBnQ85eP4vFFxTOjO1QhDIVyxA1ByemUbpJ0NDMFwj+PdSVl8o17n4405u9Ai53AvoO1ybTto6dt9o4+BwrslLUfwLJVoir17vAnULY63wtEBXvF7Ai2oPdLilSgBtBChVicaA8E7VkTx+zKqaR9jX/ume2nQ0kfTpnIG480o2yVMOG8c6OQLQffRdIC74Gce7XYcemyWSKERq33lAF1YZOF7nJgxemxxtul71yUM6seUpH0GxqHXIGGEy/s6ncy9LKrJMRng86c4EjVklfT/GBZ2U2qXOteTXpqxlXweU0EfO6OOejsnGIeqGBpZKwE/8nwCJMdlDTRNXjh91Nlpn4noLnI16LjfFL18Sn2H6TPITyGO3DvodNr7STbf08IChiSEh4cyS1FWyXqxNx+bF1G281WkqnGDH8CG+m0mc3xFHz3k8NhNBt5DPaB5ZQFbW+183pekgraYqx0N+IyA2XMavYYVOmGfOpGHS8aDcywZ54jS6ADXGe7Urte5BxUp0uYHlriGAd/4OwG7CyKSz X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 292fbb00-10f6-4102-68c0-08d994625897 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3439.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2021 07:13:56.7617 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: clin@suse.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7248 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211021_001401_891583_AA2A26F6 X-CRM114-Status: GOOD ( 16.07 ) 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 SDHCI controller found on NXP S32G2 platform. The new flag ESDHC_FLAG_SKIP_ERR004536 is used because the hardware erratum bit is not applicable for S32G2. Signed-off-by: Chester Lin --- drivers/mmc/host/sdhci-esdhc-imx.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index f18d169bc8ff..d0f7d46a0354 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -196,6 +196,9 @@ */ #define ESDHC_FLAG_BROKEN_AUTO_CMD23 BIT(16) +/* ERR004536 is not applicable for the IP */ +#define ESDHC_FLAG_SKIP_ERR004536 BIT(17) + enum wp_types { ESDHC_WP_NONE, /* no WP, neither controller nor gpio */ ESDHC_WP_CONTROLLER, /* mmc controller internal WP */ @@ -289,6 +292,13 @@ static const struct esdhc_soc_data usdhc_imx7d_data = { | ESDHC_FLAG_BROKEN_AUTO_CMD23, }; +static struct esdhc_soc_data usdhc_s32g2_data = { + .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_MAN_TUNING + | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200 + | ESDHC_FLAG_HS400 | ESDHC_FLAG_HS400_ES + | ESDHC_FLAG_SKIP_ERR004536, +}; + static struct esdhc_soc_data usdhc_imx7ulp_data = { .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200 @@ -347,6 +357,7 @@ static const struct of_device_id imx_esdhc_dt_ids[] = { { .compatible = "fsl,imx7ulp-usdhc", .data = &usdhc_imx7ulp_data, }, { .compatible = "fsl,imx8qxp-usdhc", .data = &usdhc_imx8qxp_data, }, { .compatible = "fsl,imx8mm-usdhc", .data = &usdhc_imx8mm_data, }, + { .compatible = "nxp,s32g2-usdhc", .data = &usdhc_s32g2_data, }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, imx_esdhc_dt_ids); @@ -1359,8 +1370,10 @@ static void sdhci_esdhc_imx_hwinit(struct sdhci_host *host) * erratum ESDHC_FLAG_ERR004536 fix for MX6Q TO1.2 and MX6DL * TO1.1, it's harmless for MX6SL */ - writel(readl(host->ioaddr + 0x6c) & ~BIT(7), - host->ioaddr + 0x6c); + if (!(imx_data->socdata->flags & ESDHC_FLAG_SKIP_ERR004536)) { + writel(readl(host->ioaddr + 0x6c) & ~BIT(7), + host->ioaddr + 0x6c); + } /* disable DLL_CTRL delay line settings */ writel(0x0, host->ioaddr + ESDHC_DLL_CTRL); From patchwork Thu Oct 21 07:13:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chester Lin X-Patchwork-Id: 12574057 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 747A9C433EF for ; Thu, 21 Oct 2021 07:16:04 +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 42A3C60F9F for ; Thu, 21 Oct 2021 07:16:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 42A3C60F9F Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.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=88dD6Bg5gzMCuHD+s51nBAaTbQ0+bYOQel3eH+GWpCw=; b=dABVn8suJKv3q9 KgJT/qNl/QxAacNfLYM9/PIudkwgriE7dyfoKcNnpkqAYoNAGCCqZOFOeTMwy4FlF8s+vs37wfRx3 UC+rJNs7EY6iJLSaQ/NHaWYr9FqEvYdq6iguHH9OyxjWqUXoAffpzvd/1Iq/Fi7tozexOomTokbsI iZenXssLA++MzzR53q6Ri4Tuar4TrO23PKyi7DNBnpoBd7MxUYeIciVI79yo5n4u5HEhyRUd++bGc s7DNgHsAm/Sd21EIW/whvHA9hbcXqW1IxIQKZWLMJwrOD+KfsP2pk3k6RCin6n3RDT437OIgMKsIb RFfNxKotaq1LbPbcljpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdSHc-006dKE-CZ; Thu, 21 Oct 2021 07:14:36 +0000 Received: from de-smtp-delivery-102.mimecast.com ([194.104.111.102]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdSH8-006dDK-Fs for linux-arm-kernel@lists.infradead.org; Thu, 21 Oct 2021 07:14:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1634800443; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1uNfU5n6gIiyZCQwYy1AEH18Z4Cg6pOsHo1y7Iyoq3A=; b=m4jl+AAVg34lMJheSbMm/j4uYClR0rQK57o1PMalC1MobmIjBdcnCezhTr/T+XmyipXCDT 5z6Drb2FH4S1vGQpw6xyseFP0yT2Ngh4I0jRt7ZH0ZCgHF/EBBM73SEg57Urm99BuchYOX RtIb8zMLZhBE6lJpUiknbwXYFuDVFeg= Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03lp2059.outbound.protection.outlook.com [104.47.9.59]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-16-Eo6sDTlnP4-WjxRHqGhQFA-1; Thu, 21 Oct 2021 09:14:02 +0200 X-MC-Unique: Eo6sDTlnP4-WjxRHqGhQFA-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=huoE5jHUg9S0MqxsZLjq0rkUpkxXjc6FMpCG8Rx60zLkdPWZgLSOKGQxDD+Yq/lOeTM054RbT8c3sk+sForHYMvjnkFtolw5Ey3Pm52c6TFECURrxbn9+iEVS9Hcsdgl3gNFVeSoThsl3ZVui9wu5YIN1NyrPY6LaSVBW7348F8lxYTwn1UrT7tm3qVEeU/LESo2+tM66LC0T/Pseq2a2h4g3+jGCymY2s1ugQaC+nvFWKcSxK64HooezNWVp8UH6fvXBTCjM8bUpLzkOmSW5XWikLyHx0q3ALrzbMcfagsY2nT3bqVADAqHKkersxmeU66BdtHUFb72xQ+5KRjA0g== 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=VwZV4JFI3uKHl20TnNkeX+eP+5cllUDV5bwlbhKzkJo=; b=MhcRylKEbaHumrWCk4+4hABf5Xyvnombu0rvrxMgqRBGGslF/XxRg+2dVHCXrs2Ewdw4N2KAryi1OPMeEUblWmlhwVT+aYrX9U2xa/L2R1I0pgEJ5V6/1EoESWPRBX6zlnPvAtDJqTWRvP3qHfJ2VMxL49bdbn5NP9j2ValxSUEj7EAEP9QOh0Y8w6srRDJyyRMKTjehYXdxWz2L3ICQQ4zFq4ZxH5+WhbQcPCrX1/oCXk6QDn4xMjpm5OSgVuyz4/0ldF7LfGsEEyNngYddGAiWNhW6ZGTzSg8i70qkXscBIuOdiWnZDjbgCf+O6hIR8GACPTr+F9gwBkaBLc+vTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=suse.com; Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) by VE1PR04MB7248.eurprd04.prod.outlook.com (2603:10a6:800:1aa::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Thu, 21 Oct 2021 07:14:01 +0000 Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::88cc:32fc:2cae:3fde]) by VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::88cc:32fc:2cae:3fde%7]) with mapi id 15.20.4608.018; Thu, 21 Oct 2021 07:14:01 +0000 From: Chester Lin To: s32@nxp.com, =?utf-8?q?Andreas_F=C3=A4rber?= , Matthias Brugger , devicetree@vger.kernel.org CC: Ulf Hansson , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Radu Nicolae Pirea , Dong Aisheng , BOUGH CHEN , "Ivan T . Ivanov" , "Lee, Chun-Yi" , Chester Lin Subject: [PATCH 3/3] arm64: dts: s32g2: add USDHC support Date: Thu, 21 Oct 2021 15:13:33 +0800 Message-ID: <20211021071333.32485-4-clin@suse.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20211021071333.32485-1-clin@suse.com> References: <20211021071333.32485-1-clin@suse.com> X-ClientProxiedBy: AS8PR05CA0025.eurprd05.prod.outlook.com (2603:10a6:20b:311::30) To VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) MIME-Version: 1.0 Received: from localhost (118.166.56.207) by AS8PR05CA0025.eurprd05.prod.outlook.com (2603:10a6:20b:311::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18 via Frontend Transport; Thu, 21 Oct 2021 07:14:00 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b803e789-cc03-4058-4ee9-08d994625b27 X-MS-TrafficTypeDiagnostic: VE1PR04MB7248: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:404; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y3QtaweZVZG6s2n+/3ryFFx0IE/BSo+F/nOIBK+Gx/ByDZR0040cQTzx3Wa01wu+VkhMb9VEZhO2Nw8pQsYCtOsd+HxLz3X6C8mo6MZCjznUDgTt9E4dD8sgXRmV+HpVF1PxG1PNMxzHJjjPfQEKIPVP+OzEeqpnPtXn1n0Ye/Nza5qcxYyBKUYkzDw9rimhD8/k4ZSOnXGCrrJ4KRfOBceVOM5RwR3qlBweiFOQUeosHgy1s3qmq86bvOVXN2O/6+D8Z1kRis86MJKrUCmJ5gylXCjcrIwpM2u6vXsdmUzngTylKW0SiJZaEKSIv3hMnber+H8ESewrUL8e0HZ1K6zBM2yZ7naud9zDsVY9jXvMeTsb16DRy2z61O4QaxbDrzNgkDQLVkUoggRwSwDHMIXYzN1BgNQ1ehq9zW/2ts+BPS0yU/yGD196RIiMcpYS1KmBv+IXdve1MBlFWnl+7Gkf+Bis9DbV2K9GMQJqgjKKateA4YuJfI2equxf46Hs+faLXNG/C7WTArPUCo4Sbf1GdYqzohRfSJCOpaJ0cZFyJsGuJuRav6bLpF6JbO1Qv/96JBY3hLK82SQr8FCsN11RO50Mca+Fe7Sm9Xu5kHLvOEp1L2UhXMlzFzVswtQFAYILoOMQv4Exrxt18X4cnA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0402MB3439.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(66556008)(66476007)(2616005)(55236004)(2906002)(956004)(8676002)(7416002)(38100700002)(6486002)(66946007)(36756003)(5660300002)(4326008)(508600001)(83380400001)(8936002)(1076003)(186003)(107886003)(26005)(110136005)(54906003)(6666004)(316002)(6496006)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zmVZ2kpkL85WgF5EN+rDoZApDjw1eOyDRgNTQJz5XCHBamU2BZAdplBeL5HFMiLRQHxoRhTXtwzDWD02O+FEYrIrmnBkfMVHbmEDkG6tLQEphxgsA9deuTclZD3g8jQZSuQyxK+aD4WRleH4PF/0H7kdCtJQ6UP8h7nIBVD8qpcxCt5k0UcF+SHvgE2wDJyXA0M4VYWJpaxi1GzbwAOxaQ+FVJ4i0oeq/6h40JOYk4bBtrAGVyZ1qlLOpU25LPpnETNIMpXFkPufuQOiruTDYtiL3GX5zEiQxujFvHLwX16Tvmpk/CZyzbEwY1WwDrT9VB3bv8O/M0thZZE5XKLUqMa5WX54OU/pATFrwzaBmpvtHgQ6TD36idNNCtUDoyvFWfnerKWlwFXK2CO7QF+jBs2LqhSyoSVZmUTYWLF0ajXzSw4NROo+/VdXlnUZ+CqBZOKwEbr8N5i3l7JlkKbAFmDtgrJB7vaY7kvd+XXOqwxVxb8DiTUunzeHEe86Qk/g3CZfUH63Wlu7iQwsqEq8WaHpXUCwZSjKVtiZP+zhnGaiJtwtIY0LeBq2kE7Tfa4QHWwnRSj0oz8izax9CR1IViI6iCKLhP+wRHnSAzPq/I6vBrAjH6izfL9blhDaJppddtiok/Ba3s85Q6b7BdeGmIkpNhPFWoq9Te8FaQZS/gto1SmJHyEEKqZLh5BRFRxEm4VuV/G3RCfrJgpDnJ+84HZSFnp3xn9uFBMIsq8vTPkbLyCQB8pgVg435Q0jRZEgim5CxoyfkZbvxvReH18sS48Jw15iOXUMC8kTNLNiCyZrc+einQ7e+YdVI2qk6rO6NwUSo7VkKLttUFhhqaOM19zgPV3OfUQEh2P3XcjAdKqwMliwacrDf7T7u+wrUWzpkYZaLERj/KfZOoKx59HuhfA/TC8JFKvWEF7HzM3e+gqyHjuSn3XrzfmyMGYG1dG/e0WVbQosZJBXuehylAP6/eMVlBZx2j33OIizTMF1LG3c/iDFbyB+juAR87CK8h26BppRgnX7pSDykO2J15PDgHkV13t1HHwIvFS850F6EfPcRzCouMac3V1qt2cN0umiD3f1ZWR4f7DrzabB7aKQw4zvs5YNfPAY6Fm/TIbgqBxPjVqyPaZt27Np6Xrz2tfVcaWlYWZqbJBOM+Io5ax0x3kSBhgiMUOE9jBH2ozxiRKGbWDOamNkkPvH/kv2qOt8/wT1A5ybNUh7sCdzVny3hLe408gN3/22PuUgv2J0328pUtNlSVR9kriuPzZFIdus7WhYeh2aIZFSPjQibZt7FcMddah3f2/hcfF9rKJod/6uBUCUR0pLajj5Lk1KmKUB X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: b803e789-cc03-4058-4ee9-08d994625b27 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3439.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2021 07:14:01.0112 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: clin@suse.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7248 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211021_001406_706681_FCE865FE X-CRM114-Status: GOOD ( 10.34 ) 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 Add a mmc node to support USDHC on NXP S32G2 platforms. Signed-off-by: Chester Lin --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 32 +++++++++++++++++++ .../arm64/boot/dts/freescale/s32g274a-evb.dts | 4 +++ .../boot/dts/freescale/s32g274a-rdb2.dts | 4 +++ 3 files changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index 59ea8a25aa4c..19e2e2561374 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -79,6 +79,26 @@ psci { }; }; + clocks { + usdhc_clk_module: usdhc_clk_module { + compatible = "fixed-clock"; + clock-frequency = <133333333>; + #clock-cells = <0>; + }; + + usdhc_clk_ahb: usdhc_clk_ahb { + compatible = "fixed-clock"; + clock-frequency = <400000000>; + #clock-cells = <0>; + }; + + usdhc_clk_core: usdhc_clk_core { + compatible = "fixed-clock"; + clock-frequency = <400000000>; + #clock-cells = <0>; + }; + }; + soc { compatible = "simple-bus"; #address-cells = <1>; @@ -109,6 +129,18 @@ uart2: serial@402bc000 { status = "disabled"; }; + usdhc0: mmc@402f0000 { + compatible = "nxp,s32g2-usdhc"; + reg = <0x402f0000 0x1000>; + interrupts = ; + bus-width = <8>; + clocks = <&usdhc_clk_module>, <&usdhc_clk_ahb>, + <&usdhc_clk_core>; + clock-names = "ipg", "ahb", "per"; + no-1-8-v; + status = "disabled"; + }; + gic: interrupt-controller@50800000 { compatible = "arm,gic-v3"; reg = <0x50800000 0x10000>, diff --git a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts index 9118d8d2ee01..89428f1883d9 100644 --- a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts +++ b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts @@ -32,3 +32,7 @@ memory@80000000 { &uart0 { status = "okay"; }; + +&usdhc0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts index e05ee854cdf5..30eae51121de 100644 --- a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts +++ b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts @@ -38,3 +38,7 @@ &uart0 { &uart1 { status = "okay"; }; + +&usdhc0 { + status = "okay"; +};