Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp348732pxb; Thu, 21 Oct 2021 00:16:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNHaNy+gVJAXd+iE/Njjg3jbgFqbVg8CNj9LJ705GI60g0CuN5qcwn3S3knUwRjIieT6PC X-Received: by 2002:a05:6a00:1309:b0:44d:4d1e:c930 with SMTP id j9-20020a056a00130900b0044d4d1ec930mr3763406pfu.65.1634800567975; Thu, 21 Oct 2021 00:16:07 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l72si7075032pfd.346.2021.10.21.00.15.54; Thu, 21 Oct 2021 00:16:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=mimecast20200619 header.b=m4jl+AAV; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231278AbhJUHQh (ORCPT + 99 others); Thu, 21 Oct 2021 03:16:37 -0400 Received: from de-smtp-delivery-102.mimecast.com ([194.104.111.102]:52938 "EHLO de-smtp-delivery-102.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbhJUHQV (ORCPT ); Thu, 21 Oct 2021 03:16:21 -0400 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=20F=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> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain 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: =?us-ascii?Q?zmVZ2kpkL85WgF5EN+rDoZApDjw1eOyDRgNTQJz5XCHBamU2BZAdplBeL5HF?= =?us-ascii?Q?MiLRQHxoRhTXtwzDWD02O+FEYrIrmnBkfMVHbmEDkG6tLQEphxgsA9deuTcl?= =?us-ascii?Q?ZD3g8jQZSuQyxK+aD4WRleH4PF/0H7kdCtJQ6UP8h7nIBVD8qpcxCt5k0UcF?= =?us-ascii?Q?+SHvgE2wDJyXA0M4VYWJpaxi1GzbwAOxaQ+FVJ4i0oeq/6h40JOYk4bBtrAG?= =?us-ascii?Q?VyZ1qlLOpU25LPpnETNIMpXFkPufuQOiruTDYtiL3GX5zEiQxujFvHLwX16T?= =?us-ascii?Q?vmpk/CZyzbEwY1WwDrT9VB3bv8O/M0thZZE5XKLUqMa5WX54OU/pATFrwzaB?= =?us-ascii?Q?mpvtHgQ6TD36idNNCtUDoyvFWfnerKWlwFXK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R9kriuPzZFIdus7WhYeh2aIZFSPjQibZt7FcMddah3f2/hcfF9rKJo?= =?us-ascii?Q?d/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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 { }; }; =20 + clocks { + usdhc_clk_module: usdhc_clk_module { + compatible =3D "fixed-clock"; + clock-frequency =3D <133333333>; + #clock-cells =3D <0>; + }; + + usdhc_clk_ahb: usdhc_clk_ahb { + compatible =3D "fixed-clock"; + clock-frequency =3D <400000000>; + #clock-cells =3D <0>; + }; + + usdhc_clk_core: usdhc_clk_core { + compatible =3D "fixed-clock"; + clock-frequency =3D <400000000>; + #clock-cells =3D <0>; + }; + }; + soc { compatible =3D "simple-bus"; #address-cells =3D <1>; @@ -109,6 +129,18 @@ uart2: serial@402bc000 { status =3D "disabled"; }; =20 + usdhc0: mmc@402f0000 { + compatible =3D "nxp,s32g2-usdhc"; + reg =3D <0x402f0000 0x1000>; + interrupts =3D ; + bus-width =3D <8>; + clocks =3D <&usdhc_clk_module>, <&usdhc_clk_ahb>, + <&usdhc_clk_core>; + clock-names =3D "ipg", "ahb", "per"; + no-1-8-v; + status =3D "disabled"; + }; + gic: interrupt-controller@50800000 { compatible =3D "arm,gic-v3"; reg =3D <0x50800000 0x10000>, diff --git a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts b/arch/arm64/bo= ot/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 =3D "okay"; }; + +&usdhc0 { + status =3D "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts b/arch/arm64/b= oot/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 =3D "okay"; }; + +&usdhc0 { + status =3D "okay"; +}; --=20 2.30.0