Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7074844ybp; Wed, 16 Oct 2019 03:28:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCHxVNGDxNQiZxl2PFPt22rC2BPlwJBCpZb50UwsdwTszHedEOlxXWDYlNlnaMLCEDwv3q X-Received: by 2002:aa7:dc50:: with SMTP id g16mr26353510edu.67.1571221720375; Wed, 16 Oct 2019 03:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571221720; cv=none; d=google.com; s=arc-20160816; b=I6fJ50oSfrNM693YIZq9exc8kLZMNYiDyvySUC8CZ2EJdI9EqI6+AsC/7SajAGU4pU njcvKB4CcMmTJ7nX0GWa+8NAxWIahhNNUkNRg3b+170fAqkH+IsAPY8wVA/nnAp1wkL9 dCsz5R0j7FXwpqCN3/rufMCELML9q+QA23un0nDaL6vyytAs4ET9ISjp2RfGYTasdM77 tEjWLCj3p+OhJwe8TXxDGuGfxWXKA6cYdgozkEoTRVhswPrJqwZvpUlFjv+69ffIZ4wh 0RqrZLPKA6WIDTGCJoekknz8CfPATIwreNF9a7BnR58M5yMUuv4W8YYOIjnizehwGV0v yfSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=ovQprLDuorG+BqMCtnYZTbITFh9xt2DLIAIs7NKn1Zk=; b=XTHDjF4f7p3RJmJiXcHrx9M45+OAfnArgpFpPGVu6nCpYMUlI8LEKFeUSrlgPC0/2+ awiSi7tAMONx0AjwWB1jQJmeXhVm8nLsaCGoieZUy9NSUWae/HtUU8LjpjKCiIgWzsdc OFHuDl7Lk0cbOQ6DKclyVZ5w9TU17BahX8+6Mdgu/50mXEZvl4w0G50YPtzwJ1GplhOT cWCOCZzQzwYK0MN7zwEpxmVghF77xEePmUXrjKNmlJ53PXHiF51SfvzTeApJN+5ZBFKr /mcJf80Y+qSJ5ZE1u5DJUoOPqzy+WeFYc9VG67WcKT2ESjMpKFJoSrca5UlGKVN2xHvi qAIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z9si16679587edz.77.2019.10.16.03.28.17; Wed, 16 Oct 2019 03:28:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2389926AbfJPCRh (ORCPT + 99 others); Tue, 15 Oct 2019 22:17:37 -0400 Received: from inva021.nxp.com ([92.121.34.21]:39434 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389292AbfJPCRg (ORCPT ); Tue, 15 Oct 2019 22:17:36 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id B2A4020093F; Wed, 16 Oct 2019 04:17:34 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 68038200880; Wed, 16 Oct 2019 04:17:17 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 331BE40314; Wed, 16 Oct 2019 10:17:04 +0800 (SGT) From: Anson Huang To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, jun.li@nxp.com, ping.bai@nxp.com, daniel.baluta@nxp.com, leonard.crestez@nxp.com, daniel.lezcano@linaro.org, l.stach@pengutronix.de, ccaione@baylibre.com, abel.vesa@nxp.com, andrew.smirnov@gmail.com, jon@solid-run.com, baruch@tkos.co.il, angus@akkea.ca, pavel@ucw.cz, agx@sigxcpu.org, troy.kisky@boundarydevices.com, gary.bisson@boundarydevices.com, dafna.hirschfeld@collabora.com, richard.hu@technexion.com, andradanciu1997@gmail.com, manivannan.sadhasivam@linaro.org, aisheng.dong@nxp.com, peng.fan@nxp.com, fugang.duan@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 3/5] arm64: dts: imx8mm: Move usdhc clocks assignment to board DT Date: Wed, 16 Oct 2019 10:14:25 +0800 Message-Id: <1571192067-19600-3-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571192067-19600-1-git-send-email-Anson.Huang@nxp.com> References: <1571192067-19600-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org usdhc's clock rate is different according to different devices connected, so clock rate assignment should be placed in board DT according to different devices connected on each usdhc port. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 4 ++++ arch/arm64/boot/dts/freescale/imx8mm.dtsi | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts index faefb71..ac91f6d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts @@ -293,6 +293,8 @@ }; &usdhc2 { + assigned-clocks = <&clk IMX8MM_CLK_USDHC2>; + assigned-clock-rates = <200000000>; pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; @@ -304,6 +306,8 @@ }; &usdhc3 { + assigned-clocks = <&clk IMX8MM_CLK_USDHC3_ROOT>; + assigned-clock-rates = <400000000>; pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc3>; pinctrl-1 = <&pinctrl_usdhc3_100mhz>; diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 8aafad2..9258150 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -698,8 +698,6 @@ <&clk IMX8MM_CLK_NAND_USDHC_BUS>, <&clk IMX8MM_CLK_USDHC1_ROOT>; clock-names = "ipg", "ahb", "per"; - assigned-clocks = <&clk IMX8MM_CLK_USDHC1>; - assigned-clock-rates = <400000000>; fsl,tuning-start-tap = <20>; fsl,tuning-step= <2>; bus-width = <4>; @@ -728,8 +726,6 @@ <&clk IMX8MM_CLK_NAND_USDHC_BUS>, <&clk IMX8MM_CLK_USDHC3_ROOT>; clock-names = "ipg", "ahb", "per"; - assigned-clocks = <&clk IMX8MM_CLK_USDHC3_ROOT>; - assigned-clock-rates = <400000000>; fsl,tuning-start-tap = <20>; fsl,tuning-step= <2>; bus-width = <4>; -- 2.7.4