Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1981582lqz; Tue, 2 Apr 2024 03:56:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMQtPZAqmHDbs5xRoA0ov0mnAUcIFFL5w2WbWDhAmt+/NbqcBPjwHwCfZDUYMuNzsM1E9gmg8emQFeE/hh+cDG9qqGjbv/IOzEWagJ0A== X-Google-Smtp-Source: AGHT+IEzDLIeaX/6hQgRG+fjKbjsWGCVlIJxIZWjzmJ1QsP4AOJkxH0R5D3VPSeJ/2ad/oRRNEJB X-Received: by 2002:a17:903:247:b0:1e0:36e:2bb9 with SMTP id j7-20020a170903024700b001e0036e2bb9mr17311005plh.11.1712055410333; Tue, 02 Apr 2024 03:56:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712055410; cv=pass; d=google.com; s=arc-20160816; b=Bwqg71AxD1Rok8qXCbtrYIm7lwb5uiqbYqm4CKdFrVd7RAh4ta22FcIEQtrbqDqi87 WY9REAlxOzso/zF6KxzNT3kebdjvCkt35JNhTi+fXzNeRL6gzraGoGUDI8qpG3cCsQ02 ngde19k6/Hk0y2zUc1NgouPNz5CsHJHwZvAX035k8Oe6QYHiLeDIPHNqZwPqIaTor2yS EV9oc92fx9z/Pv/bOUIALiamCEPn7mvZ3gwXImo3h5hL440Hp50Gee7ELp2EEMP4LN6H xtI10VBlTFLRryUR0PtZiG+7UtWnVqLOgiN9q2dF7rLUNC0VduAo3ovKzULeJRv23gIb tOSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HL6yYIAfmTq4orQz8KSraMu08Ey5PkjYaek7rExViLg=; fh=A2c0kXlPvmqyvZtzxCYylzxuuzKkn5VgsUkFHgjfuB0=; b=zv3hDzBEJqsOIYSetH5n/UWDtTLwouKjY5aaDheJKkHNobFDrLfpQMq9wQS2gFqzPz 4NaKdVBK+offZJqtwBVPyD6OHVQHX53kh2E1Eq6KTnqxYoNusR0Ur5h1ro4QqbpNP8lZ cSBV9aIgrfMt4IMMaS78z3wDiDEzf5lB+QJeiOMbX9drQ2AUvF1JK+1XqEzYVvhLNpIo jroL+pSp4XYBmxp49BNbuALQLbSgr3DuvcOCDWTm89ogxNh6Wq5xKTpasVH8RSjbBTWh pdNToHRLpqFwlKHBU9pGq+vTlVzVQbXrVKMPp/5W21bZv3uRIgB8tTtg/geAdh4/WJUE SKLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@yeah.net header.s=s110527 header.b=VNu7cS6I; arc=pass (i=1 spf=pass spfdomain=yeah.net dkim=pass dkdomain=yeah.net dmarc=pass fromdomain=yeah.net); spf=pass (google.com: domain of linux-kernel+bounces-127789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yeah.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lw6-20020a1709032ac600b001e0b8743f67si11099563plb.265.2024.04.02.03.56.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 03:56:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@yeah.net header.s=s110527 header.b=VNu7cS6I; arc=pass (i=1 spf=pass spfdomain=yeah.net dkim=pass dkdomain=yeah.net dmarc=pass fromdomain=yeah.net); spf=pass (google.com: domain of linux-kernel+bounces-127789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yeah.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 05891288577 for ; Tue, 2 Apr 2024 10:56:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 478C25FEE6; Tue, 2 Apr 2024 10:56:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=yeah.net header.i=@yeah.net header.b="VNu7cS6I" Received: from mail-177131.yeah.net (mail-177131.yeah.net [123.58.177.131]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B86F6605BA; Tue, 2 Apr 2024 10:56:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=123.58.177.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712055396; cv=none; b=qCvLL8SxaWToRjG8DYTaWnzPdG1CV5VwwTN4/foX1P1FL10recUxnlPIu5mL/02yZsCn+SrAbr/RRgVPJ6tUHtwy77oVaMkxHvgarJJlNlc4w3yDtxcPxPGi8UbQkfMs69BYFO4pY87PIFAj/fujeI+4D0Gch6q0O82R9P0zlHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712055396; c=relaxed/simple; bh=ZsQBIyXKKSheuF7mF3S6XPB3YrTCv+P0r+MuG3O/sww=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=I/px1oBa4HdlOGejlsfOQhSUM+BPuT0Pk80fQxbnC+kKx1pxn/08QgT6LmkzzDvHuWGk8OdGO+GII6+n2DoppJiiQ9iUDSQLmRAYI8k99oZspy2G01N1/Y+m7zI7r16CKp7Kdz18eLlg9hEECe+Qi1kl0H4zzpC96u4ymmDtTy4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yeah.net; spf=pass smtp.mailfrom=yeah.net; dkim=pass (1024-bit key) header.d=yeah.net header.i=@yeah.net header.b=VNu7cS6I; arc=none smtp.client-ip=123.58.177.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yeah.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yeah.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yeah.net; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version: Content-Type; bh=HL6yYIAfmTq4orQz8KSraMu08Ey5PkjYaek7rExViLg=; b=VNu7cS6INVdcwM+6pNaYKAjz3A2GHUDmyqhZWbK0VIuHzo3qOD2TYP6ttmW+WW 5G48e74VnTMRoqYxj503QRPPyOYOO2x1V4SqFTj2ev6EzArNOowif4jDTu27L7hS Or5iqK9IVHUewtXmEY/uHA73Qu626ycrTUftGDkl05PNk= Received: from dragon (unknown [223.68.79.243]) by smtp1 (Coremail) with SMTP id ClUQrAD3HyBE5AtmXiWkAQ--.64379S3; Tue, 02 Apr 2024 18:56:05 +0800 (CST) Date: Tue, 2 Apr 2024 18:56:04 +0800 From: Shawn Guo To: Frank Li Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Dong Aisheng , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , open list Subject: Re: [PATCH 1/1] arm64: dts: imx8-ss-conn: fix usdhc wrong lpcg clock order Message-ID: References: <20240322164706.2626088-1-Frank.Li@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240322164706.2626088-1-Frank.Li@nxp.com> X-CM-TRANSID:ClUQrAD3HyBE5AtmXiWkAQ--.64379S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7GF1rZr43Aw4DJryfAFWrKrg_yoWkKwb_Xw 18Xrn5KFZrurZayF95ArWxu3y8K3W7Ar1UJas2yr4xXF98G3yUCr1UJ3yrurn8WFnFqws8 AF4DJrWkJryS9jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0kwIDUUUUU== X-CM-SenderInfo: pvkd40hjxrjqh1hdxhhqhw/1tbiDQe0ZVszXX2VXgAAsY On Fri, Mar 22, 2024 at 12:47:05PM -0400, Frank Li wrote: > The actual clock show wrong frequency: > > echo on >/sys/devices/platform/bus\@5b000000/5b010000.mmc/power/control > cat /sys/kernel/debug/mmc0/ios > > clock: 200000000 Hz > actual clock: 166000000 Hz > ^^^^^^^^^ > ..... > > According to > > sdhc0_lpcg: clock-controller@5b200000 { > compatible = "fsl,imx8qxp-lpcg"; > reg = <0x5b200000 0x10000>; > #clock-cells = <1>; > clocks = <&clk IMX_SC_R_SDHC_0 IMX_SC_PM_CLK_PER>, > <&conn_ipg_clk>, <&conn_axi_clk>; > clock-indices = , , > ; > clock-output-names = "sdhc0_lpcg_per_clk", > "sdhc0_lpcg_ipg_clk", > "sdhc0_lpcg_ahb_clk"; > power-domains = <&pd IMX_SC_R_SDHC_0>; > } > > "per_clk" should be IMX_LPCG_CLK_0 instead of IMX_LPCG_CLK_5. > > After correct clocks order: > > echo on >/sys/devices/platform/bus\@5b000000/5b010000.mmc/power/control > cat /sys/kernel/debug/mmc0/ios > > clock: 200000000 Hz > actual clock: 198000000 Hz > ^^^^^^^^ > ... > > Fixes: 16c4ea7501b1 ("arm64: dts: imx8: switch to new lpcg clock binding") > Signed-off-by: Frank Li Applied, thanks!