Message ID | 20230625124238.4071717-3-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6911213vqr; Sun, 25 Jun 2023 06:17:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5o5XiBKIhkBeeoJOz2s4LvcCNK1LuI2KgmxEnXHhbrNIoT6IM2MopnLZVMGrkGl9HGjqZ8 X-Received: by 2002:a17:902:db12:b0:1b7:4702:5b67 with SMTP id m18-20020a170902db1200b001b747025b67mr5638868plx.15.1687699056939; Sun, 25 Jun 2023 06:17:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687699056; cv=pass; d=google.com; s=arc-20160816; b=DE4U0tRSPNCiPAovCjMSvz3l0S4n05xNxu4q8D1UcjeZmHW8eBV3bVdaUrNLMzR1Q0 h/vCyiglcFTPx08tVIS4Dc4yQlbSclmNHcTvKWJC4nFHgUJnu/fMo248ontp92WdHX5k ooW65hrn/jUF8mPIaIt1yXyjwgyopUWhP+URwz5XrQVlF9tOkqzHE1fu82pYEfvpn/Ir p9wb6x6JneIV1HBP3TiQtv0GKsqNmCcSkNgO2WI1hoh/hOrgJ6TA2A+Fll/KwAa/IJWk WHwbSpGQ9gocoj+lhISTg4v7K56Aowv8d1YWiNYxnWauRlfQEz3XCwkihVjJqXfFlqDt 9Jjw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cp40HZhMaV3BAbqklg6lJOSUHuiQWmRVJ8ZEz4xetzE=; fh=+GjY6BstAbIECTIKlqbrYwGCOAIa6ShBgDl2Zs7aXrU=; b=NvMbhHqd8w6zrbfKBNyAey3aLEhD/CdMQWtoZQLqMfFAj6rM3D8pjiixzN6yZgoIKv NsnXYg0M/6UkTLLycRb5rrvE/MxdZ6dQs0ZAN18ZIhOdMuz2edGEZCm4+RejnKDTVfSx HcpgTsZOti+eATgOlYHIBFJaB1K3f/XG4IcPcYvL55q4B9zZwVRq07DdYi/V4eslPCeH reFFZgu23Kp/W7QYJq3kaZfvxGL7aQg8CO0qSF5cqpB7+IdUXs3C4wgsMF6RTbJAZ2Cg l5XPE4LGUjEjX78j4AUUjhH+sS5w46o36ye9VtZrHx7+lWCu0SSi1TjbScNzl0puXKeK OyRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=KH4IXVKf; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n19-20020a634d53000000b005537d2a84fdsi3089983pgl.41.2023.06.25.06.17.24; Sun, 25 Jun 2023 06:17:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=KH4IXVKf; 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 2620:137:e000::1:20 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 S232237AbjFYMiE (ORCPT <rfc822;duw91626@gmail.com> + 99 others); Sun, 25 Jun 2023 08:38:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230516AbjFYMh7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 25 Jun 2023 08:37:59 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2059.outbound.protection.outlook.com [40.107.22.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4E56F5; Sun, 25 Jun 2023 05:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PN3hw4yq7xytjMOcz1qAGnfsIFGaT9OdYG5mcSmwKddWXYMMGg7xJYkwbeo2MJHaT274QzhqzB/vxYpa8rybNBu6auSv3cy2aCH2GQexShrzhof+U4s+bKY4aiTZ2LDbxjrIjrqc8ObI0SfDJ2GPOYIiWUSALxvdteQrzuf5RBpXuY0Qkqc4Hc0k48uIMp/n8z105X/wATqaVYenhhgzjasyZ/OnZaqrOGGBb0VYFY0pj8EvjMrjmm9YSo2HzsfxCtrV/2l8gpvPh5dekoRGwsdD+9gHxU1GrrIIO7OXtZ0gGGtGY+6crIkH87yi8X8SmfwMc3BhxvKNJKt+AoHu7g== 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=cp40HZhMaV3BAbqklg6lJOSUHuiQWmRVJ8ZEz4xetzE=; b=BLiOOQK3RHu0uzNBxn2NYuvgQss4WgUIwbFibCjd+LVGuUzPhyfrP44jqV8CKYqyYXj3tnb5YL2WqVOrxxySaGX7RP6dZrNygCHVY6jA8ENPzeynk8IcR8Jm8SnHqIqfua5zesk1/37kiuU0dXQFD03pAdmK8gW5VHs667zg76DFE/ixvzhbcUrfXHaIR66Y78PxIugjrT40+3XVrCEI6kEumfmDv6xF5gh6C9a2ggzmn5lGM9r+L6WwmZnZi9mRJ0uOHa/MUE7ppz4iD/QQpTHsk7OGU2yBocstIN7a0JTu6dMLFMugLNaQYOfwXcsO9t3i1EMscprJyoT3tQGkYw== 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=cp40HZhMaV3BAbqklg6lJOSUHuiQWmRVJ8ZEz4xetzE=; b=KH4IXVKfOCD/wdE6mGZGnyLwWCKzVhM5uzg4mZ/W3CSdLCJXJ7UhFYNAgQ/iYgD2VE3BmT/JlxXS8jffHBJoCIi6GjtTxPJHhwIy/wAxzukdjO9hhMyN/fjnbj6V7tUua7GsXHH+ENWk64DdmJUeZo4mqZz5EUlGD+Ka0bR/7rw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AS4PR04MB9314.eurprd04.prod.outlook.com (2603:10a6:20b:4e5::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.26; Sun, 25 Jun 2023 12:37:56 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::efff:43d6:6f46:eea]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::efff:43d6:6f46:eea%7]) with mapi id 15.20.6521.026; Sun, 25 Jun 2023 12:37:56 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com>, Haibo Chen <haibo.chen@nxp.com>, Ye Li <ye.li@nxp.com> Subject: [PATCH 02/10] arm64: dts: imx8ulp: set default clock for SDHC Date: Sun, 25 Jun 2023 20:42:30 +0800 Message-Id: <20230625124238.4071717-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230625124238.4071717-1-peng.fan@oss.nxp.com> References: <20230625124238.4071717-1-peng.fan@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0111.apcprd01.prod.exchangelabs.com (2603:1096:4:40::15) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AS4PR04MB9314:EE_ X-MS-Office365-Filtering-Correlation-Id: 439656e8-fe65-4b52-a672-08db7579003a X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rwNuac30RIgx9UxAvvFjW1MqDAVK9Lgn2hRwJe/JdqPClCXR1fdL3+RcfyvmBKWDHSHlnAnb7libr1RMsZ5KnFygL52oMVWxFKl8PUEQRq6ZCfdhS+EuQe9Gi7tUJ/mHFa0Z2CTTmWzBrJ71F0JfHFe4BR9MwYltNaLT662jJ9u4TtukkNWu06wk2l1V4/Lo/Aa7Iu7hpY4GHzgGB8F4eYV2suIWhud8BE9l7LErnQA86Z02g2NJjAUURIZ3pao/0FhnEVtZVnpTC2D8D4k9v4MkDzfVsPZ6B3l6lX9sAJNnTzhBzbtmfkQ2YW7MOUmUvK6S4DvO6PvJujIJKHwR3aBrU83PV/FS0t3FSQGImBF2iYX/DqFQJc3PiIS0Y/1HucRzDjr8O8dI6CakLfkoAa/mU60Jd3W9ZQMDMennFLAR3r277KJ3Piye7jZjDv7MMjJgL2ZKU0CWs7cbtdXjVae9up284OCuiatf/nvV2uUUBLz1bavym0HfMe9MqRCCt3eFavN3wcYcQ128USbcO7At1NmLtTk6tglcsEQ5tkqocRClNeRaMgXrMO4gqAthEgmW1MMo9WQTL+VucyxKAvI+YHU01LiHZQpkq04aq4nwKSGWoFmhhL47Nl0fmA6SepmvYhk5nlNLbLqsqHjkCg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(346002)(136003)(376002)(366004)(39860400002)(451199021)(5660300002)(4326008)(66946007)(66556008)(66476007)(478600001)(316002)(8676002)(8936002)(2906002)(54906003)(86362001)(41300700001)(6486002)(52116002)(186003)(6512007)(6506007)(1076003)(26005)(38100700002)(38350700002)(6666004)(83380400001)(2616005)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pe5yzRWGkocRkvLS+4wA1YcxF+FnYIY0SxrFKc/nDtwY7OqdM6Sg0D7XD7+naPvh+dVmFeLs5tcrSBs7h1Dq4+Uc6pAua3HlFvt2MfYa4Z1AliRa3k3YOlYKM7285TSdX6HOdnh7E/Ay2JXoZHKAvdIMp3o9wlF/l2Z6EOgGj3aZzPoumv3nKdQ70bD6qg/OGXXzvRwMO3ASBhQn04EBgj2xUj9ogaOcjJ6YuXmCjJ+vZ3hvH2GTm/kf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NwO+ReFwAo28iqyB2qefk9/aeUK9fQMJnhQyMpf7sb1Bj5dq9t632LEsY7sXH5rAYXTVZ5YP8pe1W4SpBBdM9bv9m8Hduh2+31EZe6KckkdDsW9fXvM6EQU2nXSdv8+NydoKlhrQyeJhs+vrX+Qg7VgscRB2+Ya+UPJzNXWEIDaIbRG7qeJzjhs3vSUKgXxSxR/Uzw3WKFjQ/gSR0y+ngHNqnT6quvUJ+NkPYJl5swdose6UWt0TRlJ2uGakT7RFAX/Jek7oaAfQ7YmAeQL0lLgSs1wI X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 439656e8-fe65-4b52-a672-08db7579003a X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2023 12:37:56.1138 (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: vuQsyoV18TD+EVIoeyq8vC0T42rWJJTPwv8Apig4ppZq5/hd+MOvPEJ+fKfCGGt13UrJ/joNs8DjZYysd7GD0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9314 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769680726411062024?= X-GMAIL-MSGID: =?utf-8?q?1769680726411062024?= |
Series |
arm64: dts: imx8ulp: add more nodes
|
|
Commit Message
Peng Fan (OSS)
June 25, 2023, 12:42 p.m. UTC
From: Peng Fan <peng.fan@nxp.com> Set default clock rate and parents for SDHC[0,1,2]. The PLL3 PFD2 maximum frequency is 332Mhz, we can't set it to 389Mhz as USDHC clock parent. Because PLL3 PFD0 is used for NIC, PFD1 is used for audio, the only choice is PFD3 which can reach to 400Mhz. USDHC1 and USDHC2 maximum PCC clock rate is 200Mhz in Over Drive mode, and 100Mhz in Nominal/Low Drive mode, when PTE or PTF is used. The patch adjusts clock parent to PLL3 PFD3 DIV1 for USDHC0, PLL3 PFD3 DIV2 for USDHC1 and USDHC2. And set the max rate to meet restrictions. Signed-off-by: Haibo Chen <haibo.chen@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> --- arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi index 8116d6eeb738..ba0edb9a009b 100644 --- a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi @@ -370,6 +370,10 @@ usdhc0: mmc@298d0000 { <&pcc4 IMX8ULP_CLK_USDHC0>; clock-names = "ipg", "ahb", "per"; power-domains = <&scmi_devpd IMX8ULP_PD_USDHC0>; + assigned-clocks = <&cgc1 IMX8ULP_CLK_SPLL3_PFD3_DIV1>, + <&pcc4 IMX8ULP_CLK_USDHC0>; + assigned-clock-parents = <0>, <&cgc1 IMX8ULP_CLK_SPLL3_PFD3_DIV1>; + assigned-clock-rates = <389283840>, <389283840>; fsl,tuning-start-tap = <20>; fsl,tuning-step = <2>; bus-width = <4>; @@ -385,6 +389,10 @@ usdhc1: mmc@298e0000 { <&pcc4 IMX8ULP_CLK_USDHC1>; clock-names = "ipg", "ahb", "per"; power-domains = <&scmi_devpd IMX8ULP_PD_USDHC1>; + assigned-clocks = <&cgc1 IMX8ULP_CLK_SPLL3_PFD3_DIV2>, + <&pcc4 IMX8ULP_CLK_USDHC1>; + assigned-clock-parents = <0>, <&cgc1 IMX8ULP_CLK_SPLL3_PFD3_DIV2>; + assigned-clock-rates = <194641920>, <194641920>; fsl,tuning-start-tap = <20>; fsl,tuning-step = <2>; bus-width = <4>; @@ -400,6 +408,10 @@ usdhc2: mmc@298f0000 { <&pcc4 IMX8ULP_CLK_USDHC2>; clock-names = "ipg", "ahb", "per"; power-domains = <&scmi_devpd IMX8ULP_PD_USDHC2_USB1>; + assigned-clocks = <&cgc1 IMX8ULP_CLK_SPLL3_PFD3_DIV2>, + <&pcc4 IMX8ULP_CLK_USDHC2>; + assigned-clock-parents = <0>, <&cgc1 IMX8ULP_CLK_SPLL3_PFD3_DIV2>; + assigned-clock-rates = <194641920>, <194641920>; fsl,tuning-start-tap = <20>; fsl,tuning-step = <2>; bus-width = <4>;