Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3883471ybz; Tue, 28 Apr 2020 02:01:04 -0700 (PDT) X-Google-Smtp-Source: APiQypK74rRb4iyXI7I5etLVQAxetvuo4rBzW1VSg1vA+cHMQ/gO5W8YEFfTgSOy8ESopoiQF9hp X-Received: by 2002:a17:906:78c:: with SMTP id l12mr22248040ejc.189.1588064464829; Tue, 28 Apr 2020 02:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588064464; cv=none; d=google.com; s=arc-20160816; b=jd57j6wl6xxVYHqk1/UgV0egLbqn1VOjK9ST7MyaWmk01jD5IlzOJtaZzuWspxN68b p4M7sJ/nK236avUc58jmhY9cNhu/JcAMYks4BuVqO/DwC47GQl8ZushqWFa9Qa0GXvu8 9bxWoeYCT29XvC+w/v+32bSFIu2Oso7aTcEKPyCSG03avOAESQeRL7WVbwVscpCrmMpV TsLw6ZQYuhOm6zkw5zrrgr0yz+xQfShzMpg5xZZzK/U14dQh7rNNhIIrvoFvR3dqzTCs NkZDwVLjPknWuEyoLOG3968f1+XW8k6//qHJpHk73MLY/mcRb4B3u6Xm3z+l4R5w7DBh glkQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wlWsWgzvjaY6Zm713YqzHXb7hr0bB1APBMwSRZ1R5jQ=; b=BPNpSXXwmJUwJoNIQTOulaTLruOawBbRRS91RwMMTN2NNkB6Nw0EOJx9Jn7y1fNUYK QdI3qCUJppHMsqcBGaux4cHCc0cXKoG0eIg2Uadb35gJxg16ibl7HXjxAnC06USnEewI fdySfN05jOlkje+hBPoWJ3415JDgLWBgL0gceCox4v3aJdTyNYWreU9JD8FZO5FJp2x4 ZZ/j77omxtNtvdsWsHy4IKHb0GNpnkgdEnaX7l5C/rGE4aJQB90e4qqwfGzRUNOsWHD+ rl/cvlXWIMdOJqE54P86M5vF4XZU9/htOSUAKelZEKjQyS4UgA1jlmKRp3DJjJJkhT79 /vmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x9bXsXHq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q24si1337476ejb.184.2020.04.28.02.00.41; Tue, 28 Apr 2020 02:01:04 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=x9bXsXHq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726921AbgD1I4n (ORCPT + 99 others); Tue, 28 Apr 2020 04:56:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726271AbgD1I4m (ORCPT ); Tue, 28 Apr 2020 04:56:42 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B8D5C03C1AC for ; Tue, 28 Apr 2020 01:56:42 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id x26so9995496pgc.10 for ; Tue, 28 Apr 2020 01:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wlWsWgzvjaY6Zm713YqzHXb7hr0bB1APBMwSRZ1R5jQ=; b=x9bXsXHqaZwzQh11fgkLu9FwrsX7MONN5jJgeHm5EGQz3imOH1hWREYUBEmY/8LhEs paVGxCfQASR13jlekWOmNiE/5ETm4L0wemAzcCxWQdPF8MEekG31DnWCniZ5y8tTZNo5 Jjagg3er6eiTO97t9DMXhwrWbn84zjQCivHYbc5HGj8owg0nqMRKmUC+0D5edfgHxqiz Ad1h4ntdiHG9ZoeoQWAw/KwCbMyPVKKOraZwH6pd2Oooay0HJktN11ASNkZjrV3AKhMY XVPIm+B7w844ZulwJFCmp8gAx6a2bUpiq3A+kVh+NsGnFeSBlzazWSjUSB9o7Ny+yo1B F1Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wlWsWgzvjaY6Zm713YqzHXb7hr0bB1APBMwSRZ1R5jQ=; b=gMrokG+kOANS7FFuLW3Hk4r1XwbacRO07ZCtLuvAQrnDhAS6JtE6hCIQMxgmW0+Mds GE9lqMyN2fda8PplliXox/33sfsp0A2gatnT8z5Z6of1Tmvzk72HTCXBmvLRpWYV9WAQ A/LwOmmN03YfFMwiOi7mX5uT2LkD6wm/JjKQ7Qaq8kjSNfGSVT13/W55O+NRItt9FPol PRxjJhX4ZhJmLvP4e2k3bcdSBMqhu52i/mk4kLlmxOVrDbwTdqYMDh+h1hpBrqcFLRyp p0JStwUXP3VOq1DW/2wwC4k2ygihfpfvS3rgSYK+JGpeeOlLjPVWxAr+BbdexBBLH4EQ LQ0A== X-Gm-Message-State: AGi0PuaodwyDmBb1amlsMXbhmgcTlCR0HwWGea3I433SMe0j6VhRp5hZ kdYvFnIWuVrIEyibHBAbpvpBGQ== X-Received: by 2002:a63:63c1:: with SMTP id x184mr12378474pgb.116.1588064201941; Tue, 28 Apr 2020 01:56:41 -0700 (PDT) Received: from localhost ([122.171.118.46]) by smtp.gmail.com with ESMTPSA id g22sm1498422pju.21.2020.04.28.01.56.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Apr 2020 01:56:41 -0700 (PDT) Date: Tue, 28 Apr 2020 14:26:39 +0530 From: Viresh Kumar To: peng.fan@nxp.com Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, rjw@rjwysocki.net, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] cpufreq: imx-cpufreq-dt: support i.MX7ULP Message-ID: <20200428085639.6kt6qxxu44omajug@vireshk-i7> References: <1588058460-11105-1-git-send-email-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1588058460-11105-1-git-send-email-peng.fan@nxp.com> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28-04-20, 15:21, peng.fan@nxp.com wrote: > From: Peng Fan > > i.MX7ULP's ARM core clock design is totally different compared > with i.MX7D/8M SoCs which supported by imx-cpufreq-dt. It needs > get_intermediate and target_intermedate to configure clk MUX ready, > before let OPP configure ARM core clk. > |---FIRC > |------RUN---...---SCS(MUX2) --------| > ARM --(MUX1) |---SPLL_PFD0(CLK_SET_RATE_GATE) > |------HSRUN--...--HSRUN_SCS(MUX3)---| > |---SRIC > > FIRC is step clk, SPLL_PFD0 is the normal clk driving ARM core. > MUX2 and MUX3 share same inputs. So if MUX2/MUX3 both sources from > SPLL_PFD0, both MUXes will lose input when configure SPLL_PFD0. > So the target_intermediate will configure MUX2/MUX3 to FIRC, to avoid > ARM core lose clk when configure SPLL_PFD0. > > Signed-off-by: Peng Fan > --- > > V2: > Fix boot break. Tested on i.MX8MN DDR4 EVK. Applied. Thanks. -- viresh