Received: by 10.192.165.148 with SMTP id m20csp1756354imm; Thu, 3 May 2018 05:03:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr83k3kbsfkF2HsiQc5lXCEMqb0F4neUvexee0xvS8LghxW3U6786P1rHobEP9XvwcLrWxD X-Received: by 2002:a63:6f81:: with SMTP id k123-v6mr19341217pgc.115.1525349028233; Thu, 03 May 2018 05:03:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525349028; cv=none; d=google.com; s=arc-20160816; b=woH4M64dXXKWXg/0QbhjM1hud01YXz5WaGMNFm5J25pf3VpEcpzBZPW5/bIT4H1YuR RcdHVScsJxA6AO2HDE1RWQ0FbvB6sjK5oWY6WVfd5Ii22iqqIgVo/7cOBwPPPoSXa1Wz dMlJHE2JtUlAlfZSu5yR9JJ0hZmbGQ5PbBLZ1BmztfgdCO7f+7/Bqoc89XoyVcBJjazp bbl/VzlPDcGbhf84koACD552Af+J7H1UtMqYrUetsTcXK+kV+8Ac0ZBOIYIUXCXSxrEN FvHNDP4CR6cIhr+bRgq63O7f4szkHKjyf4xTtwDO+XZx8sootn1sQMIh9Uun2cmfweYR Fupg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:references:cc:to:from:subject :dkim-signature:arc-authentication-results; bh=7s1F5rTKInxldIPVZlS1kcRF3FZvkG6HcEWZI3GJ1ss=; b=wYmlzeKhMbEzWzgAl/9eTtlR8jwcb2sFW+XhtfQBxvxyrVjssi2ENuKB7bEZGTUdIk /g0/rkwmxNb3tD+8G7X0ghE5Iw3kUNYhY4Ph64oNiHwrglL73O3jFos+Q72XkI7PvU1o zvfvpR6J39ub0QIHY3YhzqHCp7keAfw2cu0meLL4iC6iz3ldJ23E6cBTTAWI5PNNTxyX J6cJo+lLQ7mawqSIMepW6mipi6zHI+gYnqAywt/HdI3j7FE0RtLB9ajZx28iU4UiOA7u XVAJblUUVuglssVSqotl8edACIIA2Wt/tJGaDSDPJUhZAaXnlrKabpklU468fcRWtOs+ jJfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D4kYB5dP; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be3-v6si12996183plb.289.2018.05.03.05.03.32; Thu, 03 May 2018 05:03:48 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D4kYB5dP; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751860AbeECMCr (ORCPT + 99 others); Thu, 3 May 2018 08:02:47 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:33102 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751154AbeECMCk (ORCPT ); Thu, 3 May 2018 08:02:40 -0400 Received: by mail-lf0-f68.google.com with SMTP id m18-v6so25581693lfb.0; Thu, 03 May 2018 05:02:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7s1F5rTKInxldIPVZlS1kcRF3FZvkG6HcEWZI3GJ1ss=; b=D4kYB5dPFZ93RYHf7OBE2Jg1CPQwHyPe7AZOzTItQJRCc0JqZH8olFxYELbnvvyt2B cN8CZKxLXj2zG9yRdbxGRPLnIRgfmpFEaXrAKeNJs9N/wmk/z8vyN2oqK3nRWO8iItA0 10akQn0t67e6DwpPf4NBH/5VEXxlws1Ks0PbPhiyjY1EU0zmfwYuHhVEJKeLy9k89qOx mePxcQgJ5VzIieaKTkpST1t74tAOzF8IQdRTRnNhB4l73IeOBIeNuRcmjJa9YENOmm88 aROcz3eOHLGNSZXf0xgQdw71oFSOFOMczPwJwNzUD9Hci3+/bFAyBeGF0/v0IuM+iwPK JbZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=7s1F5rTKInxldIPVZlS1kcRF3FZvkG6HcEWZI3GJ1ss=; b=MY5SmBSwDnfsjxtWKlCh3mvlVhcIa+QZYoMGY6K8/hNuEbNg0qZJVb6fHAOBDRMpy5 k4qxIcuf1xhyzaTTSgP55CS8Dio6Mb+e+540m6Tf0rUJukQQZ+iYCmPLsjzJDZex2Oj9 kJmA6aPIwtor/8hKFhM9mHhOsSkz1Vkd/ix8VAdMaDlFjJGh2XdEeHeeXpfO4zBWokNp laP6UUS4n9oE7oN7sQmPLRGRuIjlFvOoBJ3z84hrIZXR+ItVqSSedL6JF0d4pNwgOf6I acLljRsi8rhEsRpxVXvc/0HVbgUTE0A2ksplvYKQyAl+1r2RyDrqvJSFpfKZdnZRqJ4Q b8Pg== X-Gm-Message-State: ALQs6tD8GvlRFyeeVCHeKHF+jkU++VxqygWfgKY+K3Y2eiiatGrZmmJY vhp4W9amhR7AzIsZwlIWuUDX/YOI X-Received: by 2002:a19:7303:: with SMTP id o3-v6mr14108641lfc.48.1525348957996; Thu, 03 May 2018 05:02:37 -0700 (PDT) Received: from [192.168.1.145] (ppp109-252-91-130.pppoe.spdop.ru. [109.252.91.130]) by smtp.googlemail.com with ESMTPSA id j15-v6sm2787484lji.89.2018.05.03.05.02.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 05:02:37 -0700 (PDT) Subject: Re: [PATCH v1 1/4] clk: tegra20: Add DEV1/DEV2 OSC dividers From: Dmitry Osipenko To: Marcel Ziswiler , Thierry Reding , Jonathan Hunter , Peter De Schrijver , Prashant Gaikwad , Stephen Boyd , Michael Turquette , Linus Walleij , Marc Dietrich Cc: linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180426235818.10018-1-digetx@gmail.com> <20180426235818.10018-2-digetx@gmail.com> <1524832404.6979.9.camel@ziswiler.com> <1524834018.6979.13.camel@ziswiler.com> <7c4e96ea-8bcf-1643-1b0f-29dc85b62b7b@gmail.com> Openpgp: preference=signencrypt Autocrypt: addr=digetx@gmail.com; prefer-encrypt=mutual; keydata= xsBNBFpX5TwBCADQhg+lBnTunWSPbP5I+rM9q6EKPm5fu2RbqyVAh/W3fRvLyghdb58Yrmjm KpDYUhBIZvAQoFLEL1IPAgJBtmPvemO1XUGPxfYNh/3BlcDFBAgERrI3BfA/6pk7SAFn8u84 p+J1TW4rrPYcusfs44abJrn8CH0GZKt2AZIsGbGQ79O2HHXKHr9V95ZEPWH5AR0UtL6wxg6o O56UNG3rIzSL5getRDQW3yCtjcqM44mz6GPhSE2sxNgqureAbnzvr4/93ndOHtQUXPzzTrYB z/WqLGhPdx5Ouzn0Q0kSVCQiqeExlcQ7i7aKRRrELz/5/IXbCo2O+53twlX8xOps9iMfABEB AAHNIkRtaXRyeSBPc2lwZW5rbyA8ZGlnZXR4QGdtYWlsLmNvbT7CwJQEEwEIAD4WIQSczHcO 3uc4K1eb3yvTNNaPsNRzvAUCWlflPAIbAwUJA8JnAAULCQgHAgYVC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q7qQ c5eR+JJtyLEA0Jt4cQGhpzHtWB0yB3XxXzHVa4QUp00BNVWyiJ/t9JHT4S5mdyLfcKm7ddc9 Message-ID: <440e71db-cd0b-c4d8-eb24-ac8ebec9ae75@gmail.com> Date: Thu, 3 May 2018 15:02:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <7c4e96ea-8bcf-1643-1b0f-29dc85b62b7b@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03.05.2018 14:59, Dmitry Osipenko wrote: > On 27.04.2018 16:00, Marcel Ziswiler wrote: >> On Fri, 2018-04-27 at 15:54 +0300, Dmitry Osipenko wrote: >>> Hi Marcel, >>> >>> On 27.04.2018 15:33, Ziswiler wrote: >>>> Hi Dmitry >>>> >>>> Isn't the CLK_RST_CONTROLLER_MISC_CLK_ENB_0 the other way around >>>> e.g. >>>> DEV1_OSC_DIV_SEL at bit 23:22 and DEV2_OSC_DIV_SEL at 21:20? >>>> >>>> On Fri, 2018-04-27 at 02:58 +0300, Dmitry Osipenko wrote: >>>>> CDEV1/CDEV2 clocks could have corresponding oscillator clock >>>>> divider >>>>> as >>>>> a parent. Add these dividers in order to be able to provide that >>>>> parent >>>>> option. >>>>> >>>>> Signed-off-by: Dmitry Osipenko >>>>> --- >>>>> drivers/clk/tegra/clk-tegra20.c | 12 ++++++++++++ >>>>> 1 file changed, 12 insertions(+) >>>>> >>>>> diff --git a/drivers/clk/tegra/clk-tegra20.c >>>>> b/drivers/clk/tegra/clk- >>>>> tegra20.c >>>>> index 0ee56dd04cec..16cf4108f2ff 100644 >>>>> --- a/drivers/clk/tegra/clk-tegra20.c >>>>> +++ b/drivers/clk/tegra/clk-tegra20.c >>>>> @@ -26,6 +26,8 @@ >>>>> #include "clk.h" >>>>> #include "clk-id.h" >>>>> >>>>> +#define MISC_CLK_ENB 0x48 >>>>> + >>>>> #define OSC_CTRL 0x50 >>>>> #define OSC_CTRL_OSC_FREQ_MASK (3<<30) >>>>> #define OSC_CTRL_OSC_FREQ_13MHZ (0<<30) >>>>> @@ -831,6 +833,16 @@ static void __init >>>>> tegra20_periph_clk_init(void) >>>>> periph_clk_enb_refcnt); >>>>> clks[TEGRA20_CLK_PEX] = clk; >>>>> >>>>> + /* cdev1 OSC divider */ >>>>> + clk_register_divider(NULL, "cdev1_osc_div", "clk_m", >>>>> + 0, clk_base + MISC_CLK_ENB, 20, 2, >>>> >>>> So it would be: >>>> >>>> + 0, clk_base + MISC_CLK_ENB, 22, 2, >>>> >>>>> + CLK_DIVIDER_POWER_OF_TWO, NULL); >>>>> + >>>>> + /* cdev2 OSC divider */ >>>>> + clk_register_divider(NULL, "cdev2_osc_div", "clk_m", >>>>> + 0, clk_base + MISC_CLK_ENB, 22, 2, >>>> >>>> And: >>>> >>>> + 0, clk_base + MISC_CLK_ENB, 20, 2, >>>> >>>>> + CLK_DIVIDER_POWER_OF_TWO, NULL); >>>>> + >>>>> /* cdev1 */ >>>>> clk = clk_register_fixed_rate(NULL, "cdev1_fixed", NULL, >>>>> 0, >>>>> 26000000); >>>>> clk = tegra_clk_register_periph_gate("cdev1", >>>>> "cdev1_fixed", >>>>> 0, >>> >>> Indeed, good catch! I'll wait for more comments and then re-spin >>> patchset with >>> the fix. Thank you. >> >> You are very welcome. Thank you! >> >> Other than that it all looks proper and works fine at least in the >> configuration we use on Colibri T20. So you may add my reviewed and >> tested bys to the whole series: >> >> Reviewed-by: Marcel Ziswiler >> Tested-by: Marcel Ziswiler > > Marcel, you previously mentioned that reverting of your DT patch works for the > Colibri now. Does that reverting also work for the 4.17 kernel? If yes, I may > add stable tag to the revert-patch to get back paz00 working with 4.17. If it's > not working, we should figure out why pll_p_out4 is getting disabled as it > should be a distinct issue. Oh, I just found that Thierry already asked to get this patches included into 4.17. Anyway would be nice to know if a sole DT revert works with 4.17 for you.