Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7100228ybp; Wed, 16 Oct 2019 03:54:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHTcE6Hyb2Z074viihxamsXIzXS4/dylGnoMrNfRT0ijDP0+tSjLYtcv8UX34Il+AGV1B2 X-Received: by 2002:a17:906:8d6:: with SMTP id o22mr38766348eje.153.1571223282176; Wed, 16 Oct 2019 03:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571223282; cv=none; d=google.com; s=arc-20160816; b=k9zOF04+Di/X+LfOTZbjkutSe1titbNEKW9PMQB3qLH3aKELsUGmldxxMgnn0t62sO WOZYhnydNtuKX9yVaYJ0PriW2xMsaneOu27ru5U1Kp1WbM7ndPM6k7uo+2GQu6QNvU7G IJWU/1ExvP3EPkvmEWtaz1mTaamHvoFnX+Re+VR8JA0jLbRI1svOkaKIJZIenRTp3FPe Wjl/nxWHeiQBwXpF6B0TZvs92V49dwBJEAffVl56DGsuh6cUgoernxYf4DgY6HF5dWY0 cS5K64FdAN6zVV5dYuULYUcG7ClISE48YG+I2meUWN6WJk2n4/aEUqcFmlPAErv9eu2H M8gQ== 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=rKR9yQ/PfLFrpjg+usRr0ueZk/qbEm0BB4npe7OWho0=; b=BS0BFhLE8KDYh3wg/oZAg8dw8OMNIVeoc3ogBQF1SxPz1cztHAvuX/eShuM6T9Incw CtQ+vIYsR/rmMeLRdjJCj16oN70ztTbcS/PrY5xprRDwUZbPCzaKh8XWte4J3JW6Juew 1SGIov/BAYxdy9FmGusHoS/NjtcVmAkyYiUxTZX7Cmqh/M0xk6x/RUESGJ5UVmrG0EL1 FGrbCZZYYaenojJRk9VFpyOYWP5yzSPrdNZbwcyACdApMYsnC50PWnPAgSa3sjCX9QDf xotEko5s6ez9O9I4Kr3ucc6FExfX2PSpEpB+ec7t1KF/Iq8EFEFxOcctTVhAHcRXCb3f SSKw== 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 om23si14577232ejb.194.2019.10.16.03.54.18; Wed, 16 Oct 2019 03:54:42 -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 S2390320AbfJPCRq (ORCPT + 99 others); Tue, 15 Oct 2019 22:17:46 -0400 Received: from inva021.nxp.com ([92.121.34.21]:39850 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732007AbfJPCRp (ORCPT ); Tue, 15 Oct 2019 22:17:45 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1EF0E200923; Wed, 16 Oct 2019 04:17:44 +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 30C8D20093E; Wed, 16 Oct 2019 04:17:27 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 7911F40342; Wed, 16 Oct 2019 10:17:09 +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 5/5] ARM: dts: imx7ulp: Move usdhc clocks assignment to board DT Date: Wed, 16 Oct 2019 10:14:27 +0800 Message-Id: <1571192067-19600-5-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/arm/boot/dts/imx7ulp-evk.dts | 2 ++ arch/arm/boot/dts/imx7ulp.dtsi | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts index 4245b33..f1093d2 100644 --- a/arch/arm/boot/dts/imx7ulp-evk.dts +++ b/arch/arm/boot/dts/imx7ulp-evk.dts @@ -77,6 +77,8 @@ }; &usdhc0 { + assigned-clocks = <&pcc2 IMX7ULP_CLK_USDHC0>; + assigned-clock-parents = <&scg1 IMX7ULP_CLK_NIC1_DIV>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc0>; cd-gpios = <&gpio_ptc 10 GPIO_ACTIVE_LOW>; diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index 25e6f09..d37a192 100644 --- a/arch/arm/boot/dts/imx7ulp.dtsi +++ b/arch/arm/boot/dts/imx7ulp.dtsi @@ -223,8 +223,6 @@ <&scg1 IMX7ULP_CLK_NIC1_DIV>, <&pcc2 IMX7ULP_CLK_USDHC0>; clock-names = "ipg", "ahb", "per"; - assigned-clocks = <&pcc2 IMX7ULP_CLK_USDHC0>; - assigned-clock-parents = <&scg1 IMX7ULP_CLK_NIC1_DIV>; bus-width = <4>; fsl,tuning-start-tap = <20>; fsl,tuning-step = <2>; @@ -239,8 +237,6 @@ <&scg1 IMX7ULP_CLK_NIC1_DIV>, <&pcc2 IMX7ULP_CLK_USDHC1>; clock-names = "ipg", "ahb", "per"; - assigned-clocks = <&pcc2 IMX7ULP_CLK_USDHC1>; - assigned-clock-parents = <&scg1 IMX7ULP_CLK_NIC1_DIV>; bus-width = <4>; fsl,tuning-start-tap = <20>; fsl,tuning-step = <2>; -- 2.7.4