Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7099836ybp; Wed, 16 Oct 2019 03:54:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUFdgxMViWXTrLPTRjyJYMcrqE4DWtPG07ERXNZdehuQawCaJuueiRoG/L8iDjQaEvBiwz X-Received: by 2002:a17:906:b2d3:: with SMTP id cf19mr39359347ejb.118.1571223257065; Wed, 16 Oct 2019 03:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571223257; cv=none; d=google.com; s=arc-20160816; b=iOF9U5w3ApSjXuN69R0VdFPn3Hf9nbpQUAx5wYafDLpXvobfRxmThJFe9PY9vvhmZG rZFU53SOiLXH6NOGb+RKLeFcmZ4ke+gs2aFZjsoSjN8Bh6W6lDR/nnM8E4zNE/Hr84OV WlycJBpO9fxLYGUltYUzgBHk+kZ3dL0PHZcyB9Y7CwEgAHMDDKxEiwDVImETjW8xEciC ZEmSr/2AmxWyff9WoEW62GiSmy9THSwzCaRDMuUUYoEUKPIJY/yGz3mZlwzHsCfxeXHf ReaoxTGPk4nhNDSAzboZlivCZi9IuA0UN9e21kMzHBZJayIucIaZeOw5pNrUCMJldchV vIjA== 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=ptEUzxunQm7l2iYigH3t0USGVSF6JPo4mdVZelt2zu4=; b=drBXXNRktbF6OAhkKhs0AUs8rxw+h5RA9aFQK9UEhDHhjTV4hzuoKhB8Sb8WF8iQvj PsIALWNi371SwWY7ZelvHKWQOuWNz+KsliSQJaXpR54zfA/jKO4bo4F2F4799mg/K6db 9kFAU8zPU/WUZlrLHJH/lOSolUCgofYi9vtG5gUOnMDOJZUyeVsFIJ/BQEIPAWU0l/zF zxgWu12/Phpbm6iNAy9XeKYzLSM623tmfLCWbv8x0mMOctSV7oTiNeCHrfgHys0KbTKA CJQ4y6+CUXqehLCvuXw8gQohy2lQGI72ehzPbb+j91QlQkuDkzapE2cwXQVE93ECVh6S awdg== 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 f31si18970191ede.253.2019.10.16.03.53.26; Wed, 16 Oct 2019 03:54:17 -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 S2390081AbfJPCRl (ORCPT + 99 others); Tue, 15 Oct 2019 22:17:41 -0400 Received: from inva021.nxp.com ([92.121.34.21]:39636 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732007AbfJPCRk (ORCPT ); Tue, 15 Oct 2019 22:17:40 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4B89F20093F; Wed, 16 Oct 2019 04:17:39 +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 612F12004B9; Wed, 16 Oct 2019 04:17:22 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id D1B864030C; Wed, 16 Oct 2019 10:17:06 +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 4/5] arm64: dts: imx8mn: Move usdhc clocks assignment to board DT Date: Wed, 16 Oct 2019 10:14:26 +0800 Message-Id: <1571192067-19600-4-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/imx8mn-ddr4-evk.dts | 4 ++++ arch/arm64/boot/dts/freescale/imx8mn.dtsi | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts b/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts index 1b90faac..5c96203 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts @@ -186,6 +186,8 @@ }; &usdhc2 { + assigned-clocks = <&clk IMX8MN_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>; @@ -197,6 +199,8 @@ }; &usdhc3 { + assigned-clocks = <&clk IMX8MN_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/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 73e3711..46c218e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -598,8 +598,6 @@ <&clk IMX8MN_CLK_NAND_USDHC_BUS>, <&clk IMX8MN_CLK_USDHC1_ROOT>; clock-names = "ipg", "ahb", "per"; - assigned-clocks = <&clk IMX8MN_CLK_USDHC1>; - assigned-clock-rates = <400000000>; fsl,tuning-start-tap = <20>; fsl,tuning-step= <2>; bus-width = <4>; @@ -628,8 +626,6 @@ <&clk IMX8MN_CLK_NAND_USDHC_BUS>, <&clk IMX8MN_CLK_USDHC3_ROOT>; clock-names = "ipg", "ahb", "per"; - assigned-clocks = <&clk IMX8MN_CLK_USDHC3_ROOT>; - assigned-clock-rates = <400000000>; fsl,tuning-start-tap = <20>; fsl,tuning-step= <2>; bus-width = <4>; -- 2.7.4