From patchwork Mon Feb 7 13:24:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chester Lin X-Patchwork-Id: 12737218 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 55682C433F5 for ; Mon, 7 Feb 2022 13:27:29 +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=BJ5Fcr4ZUUIWjJp4RCNwR7EqXKDFHJLvv1B3lh3KuwA=; b=rrYPGNlctRWtQP zRxi/i4e4pVYjAbmUmXtGuwSHj3w55GtvjhhcZDW3KYN0/zbZKIGMiMnk6nugxP7rJpH6Nzgjr34M SuTot9qhNI9Ai/ssLYslNJQ/gJYmNzebn0kx+HgwD60ot87zxsH9H7LSA0I6hDZ+MvuOgxLz3vOrH XgWrOITBu6y+5v2GR5aZDVmDsbPEzEFm0WuvdRg4tPkWwS3wXrOdygbjkr+BRLrE8f7IqqB3gsJUS DsN9vmrR6GqXb+Piuc6mK0JcVzZEC6hxL6hAaiDsqXU3qjDkhKyqy9Hk6w12ULTrKowZ4QF6wg6Hu GWBik6sL1B+hAMbQCw4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nH41Y-00AGV6-AX; Mon, 07 Feb 2022 13:25:44 +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 1nH414-00AGN1-Ky for linux-arm-kernel@lists.infradead.org; Mon, 07 Feb 2022 13:25:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1644240313; 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=gYKhBCFcjdqHqYpQIDFOhQmzEsP9zP0KPqmM/XMv7bk=; b=SRcMuc6WSAbMX61d9qTsWYeXofmgJp3eec3xdXu7pK+I1oPeT9NiY32pEaxcclsFPsHQ5Z w5AN9CKB5WUrjC/YBfymMgI46z1IYZQik4g3gtgTigQFZcw4lKlYmLmfSgKcsfDTt0SI37 jFwdong9FWlLYxk0jvVvEmWJ/H/HGVI= Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03lp2057.outbound.protection.outlook.com [104.47.10.57]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-40-l5Lqx1ZcOwSK2uW8IDg00w-1; Mon, 07 Feb 2022 14:25:11 +0100 X-MC-Unique: l5Lqx1ZcOwSK2uW8IDg00w-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UCSvt82U6C6bJkql7v9bNMtFaOQPtnWjG7crb5bT8maU/LuJtspVsLQ4hnvZRSLPKwZV3ttvDNw30gdbXjfRHJk1g7+GlSUQIKIC5LIWm/pzuIB7h/RcByIx4eT5e3WHDBdX6DWn7/oMexHmjj8BRvFPY4sxjA9OfATsDC+WaoujoqUFQwmA7YRRsotXH+5o+PcKRle3jSelgCv/WHim+jzUY6cSjTjvkCAADJrzo5wdqfa9MRCfMujMeyLkssIkfL8s09Uslhmbs2MEKDlXVPdVCEsk6slH3AkybLGIzHn5ur8ZX9nXbibYQqsV8kUbEvYPsjPm3Ojl8cv7KQyXxQ== 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=1DbOz9q/IIebwBsvZjApZimPKKCr5fLccGW6lEdzFNE=; b=fW9/AT+Mt/GzdyAtwhPF0jQEfjL2u8h07tI6SwIbi8ta3n/2p/8rI47ZHmmmYZqrHCVbRmvUULC0Xb0vW3ETek91Bsyc2rbWr53Mll9UMtRvZx+Yc0v7iBClh+tcSgEDq57diSO/QawUDEu9kFRBJiPcTlN4nUl6raEfYQqBRrcdjfiW2beKMc+UjRXAjceo1oEB9LIV6Z/O6gecu+2dLaIQQEXyHmM1DJw0clVOz5RvWlMrdAuytPunxxtyguHpaxN/QvwXWzAwO/L7ty+tI4ppfxhIiVT+exSXWmdPh1Q086KoZNHifKrvJ1qtDlczK8TwC8GSeW1QIkL7sSjs9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) by PA4PR04MB9248.eurprd04.prod.outlook.com (2603:10a6:102:2a3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18; Mon, 7 Feb 2022 13:25:10 +0000 Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::e14a:7928:ecd6:f233]) by VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::e14a:7928:ecd6:f233%4]) with mapi id 15.20.4951.018; Mon, 7 Feb 2022 13:25:10 +0000 From: Chester Lin To: =?utf-8?q?Andreas_F=C3=A4rber?= , Matthias Brugger , Radu Nicolae Pirea , Costin Carabas , s32@nxp.com CC: Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "Ivan T . Ivanov" , "Lee, Chun-Yi" , Chester Lin Subject: [RFC PATCH 3/3] arm64: dts: s32g2: add USDHC support Date: Mon, 7 Feb 2022 21:24:44 +0800 Message-ID: <20220207132444.3653-4-clin@suse.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220207132444.3653-1-clin@suse.com> References: <20220207132444.3653-1-clin@suse.com> X-ClientProxiedBy: AM6PR01CA0072.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::49) To VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: be424502-4583-423d-76d0-08d9ea3d4409 X-MS-TrafficTypeDiagnostic: PA4PR04MB9248:EE_ 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: Def9apkmNp47w2YSFyZAt+3Yykr6cvz+qO2Jwpm5rBd7uvinFah2Pu6sAZ0Ac/JCM05pTgF5TtPFaFMmXa4JTt1q9uvdmP/z6ZF2R679XzDggW/vM+zJ1lfEPDy88yCeWFCIv4OOTMTSOcQMtTCkzgp+iWPIJXQV+rBKonazvOfoPWlT0a0TZ5y8k5o4Zq0AgMndZTlRFuanQVIvhDE+7qo/H+k+zqxcuXi0/psv9BDUYLL2J1I4+kbKseEmmDa1ktASFFFuHKlyy4nEK22NlfZtaQ47tc62xj5f7l7w8ug9ydkx9+oDhlPu5ZC/u1nukl56mIK/7ViMt7J8CR0VHWYo7UQyKq60dOwQH/xlf/Qe32CiwpvEbh/lroeg4UbClIZ5IsmnmxUeIw7G2VBY1FL713UKEYlt3k+rBJICyjKrHvYAyTq0oGe55LTv7amiFzqUARHhQhhQ6CWzjETCUSR3Ry9VLOVs/j1UQV573bhTtl8tUViw1uLNB9SBpt3oVaUJmazBEcCiPt/0AisRxUSuHBddwUi48QJty5Uxtq1TDSV59Rqe+qgt83yhvs9jmsjhqQSZhwbGCD2GcRZ//+EJI7BpHJO9fbOdjFuKTIPpTDbhwTav+vUf3xUa8Zdh96kmWaPNrEbmZ2aFLMGR2g== 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:(13230001)(366004)(6666004)(66556008)(8936002)(66946007)(5660300002)(6512007)(66476007)(4326008)(6506007)(8676002)(83380400001)(6486002)(36756003)(2616005)(1076003)(26005)(86362001)(110136005)(2906002)(54906003)(508600001)(38100700002)(107886003)(316002)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pKImq3ET/2UfPbN+cVd4aKIvS3v0BI4gY8kc/m1zQQ9c7PHSOOrGMgQutwa8bTSaXnEXXNp9Rn3mVinuutLdYZlV19ppwlSpMXTym8Iy6e7DMjt4f4eS0gysoUZHEfDUzqQBaPZyJftc+xlF1wUUgpoAy8sc41QxbnBSr9AEI2DqUiUrRuvhNP+hPnTOrmAmm7H4hbV+mAaXJT+3qyhgzXmZbFsNInDchkVR7E+A2oNCnonK5S7vtLEw7iTrPOy2O5sjsAgUCiCl1QuvqK1SyJHk8DOkmLhDHYq76Z9bqllx7wexblx5GsFg0U6VLvuO71clzpN57hY8zZ61CXk3aH1Kw/e+WXFd7bNRF0AEtCCHrxbpqahf6qedWDL/1VgTQp6XIcigJJ6WkSthc0oiPb2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7x3lHGNnQcx99QwmWDW2k3tTwzOHloPX2KekSgubEVWhy0egYwN3iCKzQg61QDkpHDQHNUrj9alLCnYCGrE0yoBsEATqNyRpk0= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: be424502-4583-423d-76d0-08d9ea3d4409 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3439.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2022 13:25:10.6261 (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: P2wETHnWOclzNHDdkULDpNkPVyshHBSybNNONCc7X+erJHDhQOReiUgrk/YPV1gu X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9248 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220207_052514_862193_19EC2A51 X-CRM114-Status: UNSURE ( 9.66 ) 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 a mmc node to support USDHC on NXP S32G2 platforms. Signed-off-by: Chester Lin --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 14 ++++++++++++++ arch/arm64/boot/dts/freescale/s32g274a-evb.dts | 4 ++++ arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts | 4 ++++ 3 files changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index 34652d36a9f1..fd073654d6f6 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -7,6 +7,7 @@ */ #include +#include / { compatible = "nxp,s32g2"; @@ -135,6 +136,19 @@ uart2: serial@402bc000 { status = "disabled"; }; + usdhc0: mmc@402f0000 { + compatible = "nxp,s32g2-usdhc"; + reg = <0x402f0000 0x1000>; + interrupts = ; + bus-width = <8>; + clocks = <&scmi_clks S32G2_SCMI_CLK_USDHC_MODULE>, + <&scmi_clks S32G2_SCMI_CLK_USDHC_AHB>, + <&scmi_clks S32G2_SCMI_CLK_USDHC_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"; +};