Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp630430pxb; Thu, 21 Oct 2021 06:35:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQDeURtO1XdAgGLR32y5g6calZwWH9+0jXhSw/7OaH4Iy3EN67922pXlCuxlF4Xpn88DRE X-Received: by 2002:a17:902:e984:b0:13f:17c2:8f0a with SMTP id f4-20020a170902e98400b0013f17c28f0amr5318502plb.74.1634823338936; Thu, 21 Oct 2021 06:35:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634823338; cv=pass; d=google.com; s=arc-20160816; b=cwWWDMxPoitBdJ/nsx+b4f9K96ECO9UXc4qHpLlvSmSFll/DxbeZdf/CzCwB3tRHIx njq7uj0flP9bsxDKt91TDIgKBO+Z+im0Edz3bBE+EvbodKl0AhZ05SMqrHs0zOJ9Ha5a 7Zv+xgRA8W7wNDhpLb4i7RKz8pPYLB+7nrksICl5D4XmtjwNt38aEBLG/yx7SKJbXUz2 vIdJOz9vR1YNm3owosS5kENAunwyg6IPeixFLf/IuPgAraBdwclQPQkDX+KLwDg/sjQw JB1C9iOlvFRL8cUGmxNyw7K2nMLt1Urr+scaqaKP0mYUaqsn6z6Ya07i//jumQSNBAFH +MvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=bCrAJkfFWnZZcy5cMJxjWW8wogxNsDnCrNlWlXoFDKw=; b=cngo2QkqYudMsypNck/SZmy7argdWYGMPvhF+J+XeQTPXx2BnIdS1wrDns1EyRy9Yb gLXnuFvMeNSuA+DRfzjM+b5fG8eCY2kBEKmo/X/QLx5Kh2nvSkh2V/2mpcf1FE6eynh7 qnK8xtt1KdFLQtFqq2aR4o0iAGLhHYufvKGiFXD38bWDIdMi/c3zAVSJOELMZpwlUlEf ony+JnqC0xr/UPBv9ZjiRtakuAv8LiK5/WTORNz5sNc/zi93CgMB3HnEfLp03W2vnS4t caaXBL8xE4W7I1PRofPWyG/E9spAI+/3GB65tywE707sbnR/1+yWFOZixpg+lTJIV/V+ 1F+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=ELOQJzMq; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si6956926pgl.474.2021.10.21.06.35.22; Thu, 21 Oct 2021 06:35:38 -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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=ELOQJzMq; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231203AbhJUNfT (ORCPT + 99 others); Thu, 21 Oct 2021 09:35:19 -0400 Received: from mail-eopbgr80080.outbound.protection.outlook.com ([40.107.8.80]:42368 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230393AbhJUNfR (ORCPT ); Thu, 21 Oct 2021 09:35:17 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ARsGhWG/mEski5CgRegDa75FXvxYW6tmXFBGBKvDOTMy870l3dDjUyct1rTvDZuinMgb3GkOOvlTmXImua9kK4AHD7bj2xq6QX2mkBq3hPcLEzkKRg5DM11ifsHEuYxwvVq8X6+wxz21MKnhTVHUZWrvokkVVNWScGmy5uJC7iOPV0WLDV0g1MCmrW04YQC9VA4ziAYKfRFkbeBzNuSQe/ECdY978n1iJEnvLKMjyZfahlsNonnd8cUhf0bUWRc/v30BjFnXE27saQmtNI0oQDcD13OAk/gVmtlaaI86zIK6lPMHj1cLxSwsyd8gmB3kEQJTONIgox6foXR5J5T1Sw== 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=bCrAJkfFWnZZcy5cMJxjWW8wogxNsDnCrNlWlXoFDKw=; b=EHRYjktxymcWilhu3PqGCmtNrohamXDUvN8BJPJ3IOzTkO9NldaAN1E7nAi9XGTNvca/zVYS8REaSmgl3mg9hDW40j2SP6KHtfOmPp78caHwxpieMB5hbajJVNaVUZnJL9P9UvyvMhqITBJmVMk92bav8k0fZ4IJzNrehkYqiAVVEa/ia8dkv74nP/T0eq8ghpbK1IUkr4VGlV+tyyznvzRdZ6XTaNdBNMpRLcJi2UyZ6TR3cEQP0al8WoEJbw+QF+SjgAxVHc4Uyoqu6YA2svYIBRCM0Kp1gP1k9oKr622iq5zf0kRgvzPTTNB2kJl5nAOhgraiIdQY9h34Tjvh6w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bCrAJkfFWnZZcy5cMJxjWW8wogxNsDnCrNlWlXoFDKw=; b=ELOQJzMqk0Fhu5UNMN7xTDIlnCnBuLEdaNbumGWHFk+wgrB3aaI1jk0Kq0g/cya7AH5T4d21JvPITXMDCLodHvI+FmF1rYZXBtCVx9SBfWqvkMQXUn+XAOwFydtnVCuQC2MggWU0SSXv/1Xn7BzwNL5lagxsbkb5kGQevf0Es8Y= Authentication-Results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5101.eurprd04.prod.outlook.com (2603:10a6:803:5f::31) by VI1PR04MB6126.eurprd04.prod.outlook.com (2603:10a6:803:102::13) 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 13:32:58 +0000 Received: from VI1PR04MB5101.eurprd04.prod.outlook.com ([fe80::4884:f408:7c51:bdcf]) by VI1PR04MB5101.eurprd04.prod.outlook.com ([fe80::4884:f408:7c51:bdcf%7]) with mapi id 15.20.4608.018; Thu, 21 Oct 2021 13:32:58 +0000 Message-ID: <7b44bbd45bd6ab4c3815bbc6266d51ce5187ccab.camel@oss.nxp.com> Subject: Re: [PATCH 3/3] arm64: dts: s32g2: add USDHC support From: "Radu Nicolae Pirea (NXP OSS)" To: Chester Lin , s32@nxp.com, Andreas =?ISO-8859-1?Q?F=E4rber?= , 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, Dong Aisheng , BOUGH CHEN , "Ivan T . Ivanov" , "Lee, Chun-Yi" Date: Thu, 21 Oct 2021 16:32:52 +0300 In-Reply-To: <20211021071333.32485-4-clin@suse.com> References: <20211021071333.32485-1-clin@suse.com> <20211021071333.32485-4-clin@suse.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AM0P190CA0011.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::21) To VI1PR04MB5101.eurprd04.prod.outlook.com (2603:10a6:803:5f::31) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.141] (89.45.21.213) by AM0P190CA0011.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::21) 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 13:32:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 851c8a5f-9c6c-41d3-bee7-08d994974b9b X-MS-TrafficTypeDiagnostic: VI1PR04MB6126: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4125; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gOrm7imr6dEPq2j7Ak6ic09h1gBm3tHKOnq0BpNh0V4fgdrqek62xLvvgtvSI2Jg12UF1chhs0JAgQfgMBcjrSkEnlST2yNWNPPtkT7r0zIGfOS1PlC/8X+Q8FjRfvskm/jsFEVMKZGqmDNcUKugkZfRoybwUrm9rDi/Z2ZOFJfAKtOdHY1Daxi+AFGy4vfIYEt/8QYELxeBShG/OrdhQpgWupdiCuJ/EcJERXzgBTa8EJeeEXWNVh0/uZa4nGewiDvLG2FQu4KcshqWIEMCp2/PyDN0mp3yExYcjk/VPyQz5+zYmNnSsedfp+Cd0R3IrJAOs/lsWwPKQy2oGXVFOu+NdkoiusOriBsgfUCiwhrZk7UWXIJU9W0jaWE86w4j33plXbzknL5fsC3AHw8R9GVrwm5/BkzRH+rsgDTUHh/Xlb7XQGVUDiFhx/N3MOlTuXy2w7qHAzRhOXMhKScBBOzivlysqf3cMKhHIb2KjU/9Wv2OqZqv+NCI+qLmD77YhdjUblElO5r/dOXiI7jLYzGBcJmbTfdQvVM1JehOPtYMwPEhXfrvQShQcMrQsYzw83wmT3reB1KP+g0fjJ5r4L1eYMXEVqCinmULq7QID4eHtkksgWL57U+2iIbI9OI3SeTfdyKKiEjtXNX2+FWFD8ZagsqnMqezhtv8/woxFUd+RDLLnglh+AnGCpozxRYlNNIIrcflsXzogHYl1wVl2pnu+kRcqVdvs6pJj6cjuUw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5101.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(6666004)(6486002)(26005)(66476007)(2906002)(956004)(16576012)(4001150100001)(2616005)(66556008)(54906003)(508600001)(4326008)(8936002)(5660300002)(186003)(38100700002)(86362001)(38350700002)(7416002)(52116002)(83380400001)(66946007)(316002)(110136005)(8676002)(41350200001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RkY3UDU3SlZyODJmcWp6YUlEMC9IaWs4VlN4aFVYMldONFZXbkc5NzFwcmM3?= =?utf-8?B?SjVkLzZWRkloY3h3ZnNtYk1Da0RpZU41Zi9JN3ZBWTRjdlJYZnBHNE1TOVFY?= =?utf-8?B?bU8vVmFqdFhzTnIrdGY0YXQ5UWpCWXVKVWRlS0lKdk9IOXpHN1VJZWowM1Iw?= =?utf-8?B?eG5SenFHNkxzZGx1NURxQzRuV24zTlJtNzRWV3FPTnB6UU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4reW5QL3M4eHpJck9nZ042SnpjdE1QR3RDT1RpK3gzN29ZWk9Y?= =?utf-8?B?TmhmdnRlbmpmRitna2pOZmJuM3pQR3RnNGJVN3dodHNOTUVqeUx5dU1tSG9V?= =?utf-8?B?QmlsbUQzWFZZSCtXSXZxRWs0VWRReGdMd3o2ckZUL1ZZamtTM2xyaktMeXFY?= =?utf-8?B?Snk1bFBmOHlaNm9RQ3lKT045OWNLRnFPWnNBeXQra1U4d1FYU2JhQ2xoTTVP?= =?utf-8?B?cEhaOGZmNVhBTUlxQ3dBbWU3V0N0d0NNNXZOSXI2VE54d0YrU0VHdkxNZ1NF?= =?utf-8?B?dnFJWmQxcURjTDNQR1FNbU15TGtOZ2l5RHRBLy9mTU9KMVhGSzU1dG91ZDZR?= =?utf-8?B?aWZVSUdKRlNXZHVhMnB2KytuUjlJZ0ZBUW9rSkF1RXlsREFBVUtBeXdPdkZm?= =?utf-8?B?dm84TmduVVF2SElxUERvL2NXNlBqc3gvRVZ2V2FUeWpNRW8xdDF4WlBJdnF2?= =?utf-8?B?NUdNY05uTGxwczluTE96ckd4dFFxWXpVUTB6UFFINzF2Q3RxY3c0d3g1TkV5?= =?utf-8?B?aUNqdEhScTRQVWRLem1MZEJKMFBOQlRKc2V0V1J3c094WE5aVm1pb3BJbjdr?= =?utf-8?B?NXQ4ZUxyVXhCS2pTRzBYdSszaHBNOXpYNDViUi9Cb05MaW81aThyUGo2NSts?= =?utf-8?Q?kvqmPf+w/B7EleVuV6ZxKJuzRNvasdsKyCDHdWQ?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 851c8a5f-9c6c-41d3-bee7-08d994974b9b X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5101.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2021 13:32:58.0815 (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: radu-nicolae.pirea@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6126 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chester, On Thu, 2021-10-21 at 15:13 +0800, Chester Lin wrote: > 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>; > +               }; Adding the clock bindings as fixed-clock doesn't describe the hardware. Using fixed-clock is suitable for quartz crystals and oscillators. Here we should have the bindings to the clock driver. Are you planning to submit such driver soon or you will add here more fixed clocks every time you add a peripheral in the dts? Cheers. Radu P. > +       }; > + >         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 = IRQ_TYPE_LEVEL_HIGH>; > +                       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"; > +};