Received: by 10.192.165.148 with SMTP id m20csp1750778imm; Thu, 3 May 2018 04:59:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp6Ox1XLelFR32rM7AkH3ohYn5Z6FD63yBKDsC/AgOy/Pmg6DXyQd0vw93cdj6Mqn2PmmZY X-Received: by 2002:a17:902:3225:: with SMTP id y34-v6mr24198692plb.180.1525348797635; Thu, 03 May 2018 04:59:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525348797; cv=none; d=google.com; s=arc-20160816; b=nLyYElT/2LnA0Vo3rgbIekouwbw1oSmhJqbUqFfe3GeE/euJ7G3zdFdrEs043YKHmK kFSYdN+hbnoPJZlSxE0Ql2YJ5pe/Fs9RXM836NVJ1q2Ity7Uj5WBix7SgsDRjPmLd+Dn SURgBTsEgZoDuz7Re1CEY34ldw0cReudDJhGbfod9DgGCgh+KatjDorOslnSPAeSmWjT rIRz8vlyTZXS0Z4ePY9d+MAAQRnxvkl5lLzCvfxp66EBHkACgxBMaXdynopCsFU3eMIw OyDyBXU/f4FUVb44fX/WSzUZLNh4e/rF162Povb3RZT61ZTyf5piUes+AekMBilHMdu4 /quA== 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:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=KeHBE3rIH7Wx5JXOJklnkY8vYmgF6x5G+AFtvSruzaI=; b=bjCVDP1F4Ph7ZZ/tQOVg79grm+xRHZkvxd0bvfOE2AVjc+b8u39Eog+KUVFkqidbwg oJt0K2M4GkiZnIvB7SDu5sL/gGA3Jhwx27yI5fPNNfklk4HPOJrNe/brAFxr4BRg3GQO f6eSN+35KtSj0L0oBGCuPat4sywgd0+w7vnnYwekNiqsMUhmsTNbaDjY05j1cG/Itw7t 7t6j+c1aE05kA5WFyCJge2aCdhV3k9lFykfpWriSLjRd+OcV8vTRvIvNq8oHpsGcTTDH i99JnS9U1tD1Tbvmwu6G7kRV5pj/edq7OFBFCZE60BSYBb6EGdoZFpKEKQKbeStnMSBS 71pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GTFDVioa; 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 u14si168470pfa.84.2018.05.03.04.59.42; Thu, 03 May 2018 04:59:57 -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=GTFDVioa; 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 S1751432AbeECL7e (ORCPT + 99 others); Thu, 3 May 2018 07:59:34 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:45465 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751121AbeECL7a (ORCPT ); Thu, 3 May 2018 07:59:30 -0400 Received: by mail-lf0-f68.google.com with SMTP id y14-v6so25188523lfy.12; Thu, 03 May 2018 04:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KeHBE3rIH7Wx5JXOJklnkY8vYmgF6x5G+AFtvSruzaI=; b=GTFDVioaz8s3NJxuCmCqf0thW39BA5V61F7Tj7WnU+kqg4VZ0momp+qTyD+tmqPBqQ J6BzpypiXMJqn9IhyRS4Zv/3BpMn63ZoQ0qOVvExg20c0Yjof0850y7F7m2ImYJ4mbPs 1xF7VwbKFVYqbLf+gRtQu+DURU/BC1DVGHcXzYnHdF5Ni8CykozUMxU0KnfvuhwzhcHc GcSJUxgXhkACinF7+1iSoURNl3VgjKrEbUr2CRMNHDGlotT8dAPF/jfxLW8gHxYZvbm9 XwL1xS2zWKTQsHdNMYxWti+/Sko/1Ch6phyCGMjNbfJvVvfhaXoPBnZPl2Pj72BvaLZ6 yhkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=KeHBE3rIH7Wx5JXOJklnkY8vYmgF6x5G+AFtvSruzaI=; b=j/rW1sEtGn5yzJbf5rySQjEgmK8kO0IRbbCRxDe1vZ2PWCAC5nd6bVGTWl9x66LNxS STWLTrXOtAE2zAcAQ7QMu0C1iOiCcspvNYI67EY5/2tye1nIreoesSD/5XywPbId4CG9 5jdZPM8RZAUyHoCZJJaOssEu1xG0gwk7P+5ZYiTgiagtTHFySBFFxLzBD6m/7Si2bm/2 vmVR6J26RZYwqhZgZZf7y/KRXJMDZLSjQUhGBSP3hJewu/Wzd96eCEN98jVAYxn+sZAM mkfQPpPvSgOrmJhwtlp1J9ZV2Z1t20faZ6OrmNxn8e+ZDKsvaBwd1Uzkjy76X7pb9OgP BCtw== X-Gm-Message-State: ALQs6tDRtj4H3r/9Kgkhtp85XcNUIMcAIY0wdqeHY1c2gr3PUfQoAPPO X4RnCAUuvy3Z52EAMntRBG6pH5/7 X-Received: by 2002:a2e:8541:: with SMTP id u1-v6mr15402638ljj.10.1525348768245; Thu, 03 May 2018 04:59:28 -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 g24-v6sm1478641ljk.7.2018.05.03.04.59.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 04:59:27 -0700 (PDT) Subject: Re: [PATCH v1 1/4] clk: tegra20: Add DEV1/DEV2 OSC dividers 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> From: Dmitry Osipenko 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 3uc4K1eb3yvTNNaPsNRzvAUCWlflPAIbAwUJA8JnAAULCQgHAgYVCgkICwIEFgIDAQIeAQIX gAAKCRDTNNaPsNRzv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3XxXzHVa4QUp00BNVWyiJ/t9JHT4S5mdyLfcKm7ddc9 Message-ID: <7c4e96ea-8bcf-1643-1b0f-29dc85b62b7b@gmail.com> Date: Thu, 3 May 2018 14:59:26 +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: <1524834018.6979.13.camel@ziswiler.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.