Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4844745imu; Wed, 19 Dec 2018 01:01:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/UTty2C7CRLbDKGq2nYs6l8MOZryCl0mRxWHSy3BQ9arsNHu27N94tYtcPAwVE9zPcc2mEP X-Received: by 2002:a62:c711:: with SMTP id w17mr836232pfg.50.1545210116566; Wed, 19 Dec 2018 01:01:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545210116; cv=none; d=google.com; s=arc-20160816; b=nN8ClfarHvNuXwD3q3Dy9C+wuYCRLqKJkPnaEoubo4QfI995Bb+6I/QLMhn9XWeVPp R2EtNoISc+NPAf3HFqpOPjOlOeiK6MsB/e30KhA7SfaMe9HvURQDyhJQ04Ob/z9ygAFx TmxnCT+pzPeo8utExdz9frLq0UGGZlemCrGhEK3dcVFfP9M2LuojrYFlsIqcogwHnFPS 1gOxm7HZdJ8bgH3thvP/VawNJysgUfp94EZs0coROMJdg2IGVz4LWGjXU6hMpPOLExyA cN3VjfJ5H/QKfqGnMEFxjWCyxi/FkP36L5UJSlJBTE0h+Aew1xGJJMUSUQGFYCDAFT2v 7Wgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=7q+kfWT8reImHqTfJ/ybbAdaAflTKaKq6eXYGOH8OS8=; b=i159cFDUJqFeBtDkd0o/YBssuZeV1ESFQr5dZv0qsSornOWx3KS8rCElDtdopGdSyu 8WoW0R7unP0ZZxMBRW/CvgWZYtZidXKiP2EVlvUWT8owNscKrHng8vl1f1TGLChLuiq5 gWdVbq16DAU9P3xHtsXc5YejsF3XpreAg+KsvP8Iyh0SPWZW2GyyPBA0ggaHcZmwphrg +VXWtz4lakXiR9rXRSyEHPD0NYtrVy4dL0ESIo5/z2nRP+gRidAZXtifxwpPXTfMiOMX sgsbAr5uwqy1JJvA1TVD26zZr4bRtRR8oSNTgkXV5jbwZHdJ2WdOocPq2rDpJDD6tcyh 9CPg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j132si11960843pfc.84.2018.12.19.01.01.40; Wed, 19 Dec 2018 01:01:56 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728503AbeLSIwH (ORCPT + 99 others); Wed, 19 Dec 2018 03:52:07 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:33819 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727868AbeLSIwG (ORCPT ); Wed, 19 Dec 2018 03:52:06 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gZXa9-0002xp-9j; Wed, 19 Dec 2018 09:51:57 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gZXa8-0008Ri-JT; Wed, 19 Dec 2018 09:51:56 +0100 Date: Wed, 19 Dec 2018 09:51:56 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Anson Huang Cc: "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , Fabio Estevam , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx , "linux-pwm@vger.kernel.org" Subject: Re: [PATCH] ARM: dts: imx6sl: correct PWM ipg clock source Message-ID: <20181219085156.2o5xxrodrqrc62ba@pengutronix.de> References: <1545197799-9082-1-git-send-email-Anson.Huang@nxp.com> <20181219083640.42jmibqzn2t3i4t2@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Wed, Dec 19, 2018 at 08:44:13AM +0000, Anson Huang wrote: > i.MX6SL current setting has no issue, because the ipg_clk_s is from perclk which is always > ON, but it does NOT match the clock info in reference manual, while other i.MX6 SoCs > are having correct clock settings for PWM IPG clock. > > It is just an improvement, NOT fix a real problem. OK, so it's merge window material as I expected. > > > Signed-off-by: Anson Huang > > > --- > > > arch/arm/boot/dts/imx6sl.dtsi | 8 ++++---- > > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > > > > diff --git a/arch/arm/boot/dts/imx6sl.dtsi > > > b/arch/arm/boot/dts/imx6sl.dtsi index e7524e7..4b4813f 100644 > > > --- a/arch/arm/boot/dts/imx6sl.dtsi > > > +++ b/arch/arm/boot/dts/imx6sl.dtsi > > > @@ -338,7 +338,7 @@ > > > compatible = "fsl,imx6sl-pwm", "fsl,imx27-pwm"; > > > reg = <0x02080000 0x4000>; > > > interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>; > > > - clocks = <&clks IMX6SL_CLK_PWM1>, > > > + clocks = <&clks IMX6SL_CLK_PERCLK>, > > > <&clks IMX6SL_CLK_PWM1>; > > > clock-names = "ipg", "per"; > > > > It's a bit irritating that IMX6SL_CLK_PERCLK is used for the "ipg" clk, not the > > "per" clk. Is this correct? > > Yes, you can check the i.MX6SL CCM chapter for PWM clocks, the ipg_clk_s > is from perclk and its enabled control is VCC which is always ON. The "per" > clock is for PWM function, NOT register access, I tried disabling the PWM per clock, > PWM registers still can be accessed. OK, then Acked-by: Uwe Kleine-K?nig > > Industrial Linux Solutions | > > https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww. > > pengutronix.de%2F&data=02%7C01%7Canson.huang%40nxp.com%7C7bf > > fc7bad61545fb595508d6658d1d0f%7C686ea1d3bc2b4c6fa92cd99c5c301635 > > %7C0%7C0%7C636808054141733417&sdata=dDv2spIwbQmkpu7mhEm > > 8bRHyKKviSO%2BQ33ZU7nD1bJQ%3D&reserved=0 | haha, something between you and me mangles links. I bet it's on your side. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |