Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp126080pxb; Wed, 3 Feb 2021 01:08:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSsG5hzopfvib3u0JQuKyoIP2rDof7uUviuz/FaERj5Tvt/Z73RRlkZHUuOJk3uOOeg7/h X-Received: by 2002:a17:906:c296:: with SMTP id r22mr2265773ejz.158.1612343299072; Wed, 03 Feb 2021 01:08:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612343299; cv=none; d=google.com; s=arc-20160816; b=XRxPbApQDqPH7eXL7/kbmClRKSftyZX4a/YQ66IYAgJDpfvpfWeYYPg3MvoV6eGUuh pCxzsjIsqZuV34blSFbl6NlbfbPWfd4yEamTpruKsagu7qXtquQGUL/1WICDoxaBrukz D5PMoMect1fI5Hya9rE+5u3zmvhmYBY6cnk8uNRyasd0pBeFUMsIs/2/8gVYGiLIJPP0 2Ghpims1U96C0CGInleoG1Ko5dnc1LoHh/glcCiUUIpJSzea8hKpNR4ZzUNWcn8Gndpb SWgSiCbOlejX1tHA3+A6zxNikl5G5+PULnyQ6x2mZPp4MNWAQZ1OV/W6tWoPAd9DrTyr Cv8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=d23UwTHEaJuLvFKLmQ1eXRRioZoCSelI0Kjgek6ipOg=; b=zAfPWv0u0xZavZVBbvsduLhm5TpydThSFrIYuk5rf8RW78xtXtdVa3liUv+mgNYba/ ILjfqE4404UK2iFlJoK5whbN/K7VWVuJYC0IznDoKg1bwkQ6ht9+2kQ5Ti8p63Lc3rfC ZYEhzBEzG99uyxpKGGAWxCQmnILF52831sMXsvs7s4TCgapPQnzRWgVp4GQDD5ZHBmAP hZv9/xBx4WLL2PfjWpkwunZd3LSfORhXZ94xqILG9B1egPkZFt9fzfGSN9DXJylmvr6c Y4WRrc8sZSg3DDPsJE6K1JSF70+uI0d1aBozOvE/gLi70ahybtPOmphRXEvIcTbM9/Tg cUMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp10si953227ejc.168.2021.02.03.01.07.30; Wed, 03 Feb 2021 01:08:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232996AbhBCJFT (ORCPT + 99 others); Wed, 3 Feb 2021 04:05:19 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:47541 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233131AbhBCJE2 (ORCPT ); Wed, 3 Feb 2021 04:04:28 -0500 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 067791C0002; Wed, 3 Feb 2021 09:03:20 +0000 (UTC) Date: Wed, 3 Feb 2021 10:03:20 +0100 From: Alexandre Belloni To: Arnd Bergmann , soc@kernel.org Cc: Vladimir Zapolskiy , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Belloni , Gregory CLEMENT Subject: [PATCH RESEND v2] ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL Message-ID: <20210203090320.GA3760268@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email 2.29.2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit c17e9377aa81664d94b4f2102559fcf2a01ec8e7. The lpc32xx clock driver is not able to actually change the PLL rate as this would require reparenting ARM_CLK, DDRAM_CLK, PERIPH_CLK to SYSCLK, then stop the PLL, update the register, restart the PLL and wait for the PLL to lock and finally reparent ARM_CLK, DDRAM_CLK, PERIPH_CLK to HCLK PLL. Currently, the HCLK driver simply updates the registers but this has no real effect and all the clock rate calculation end up being wrong. This is especially annoying for the peripheral (e.g. UARTs, I2C, SPI). Signed-off-by: Alexandre Belloni Tested-by: Gregory CLEMENT --- Arnd, This is a very important fix that was sent back in may and october 2019 without any reply from the maintainers, please consider applying it so it can be backported on v5.10. arch/arm/boot/dts/lpc32xx.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/boot/dts/lpc32xx.dtsi b/arch/arm/boot/dts/lpc32xx.dtsi index 3a5cfb0ddb20..c87066d6c995 100644 --- a/arch/arm/boot/dts/lpc32xx.dtsi +++ b/arch/arm/boot/dts/lpc32xx.dtsi @@ -326,9 +326,6 @@ clk: clock-controller@0 { clocks = <&xtal_32k>, <&xtal>; clock-names = "xtal_32k", "xtal"; - - assigned-clocks = <&clk LPC32XX_CLK_HCLK_PLL>; - assigned-clock-rates = <208000000>; }; }; -- 2.29.2