Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1302880ybl; Sun, 18 Aug 2019 00:20:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxc4gSzCeLwGW8gatJE1/AhZfYrioAM54fw2l6rwXa1tA4TAi6HS9iYbnfmovyHW6PHIG6g X-Received: by 2002:a17:902:6b07:: with SMTP id o7mr16566762plk.180.1566112827798; Sun, 18 Aug 2019 00:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566112827; cv=none; d=google.com; s=arc-20160816; b=nimSeI+xxjkhP3qWMqw9/pL6aNmXecPSPmtQs+uFZwUENY+u/GbZDNfU5Q29p7ZCis kqOvgQQFZq7/4mALVEEiQBrm/4Ajrd/3MnYJrDpIVbLTutRzo6hUFr6FiUdrfIJrDujp 5eKVxDXEfU+lfotsgrcpna+Yka+h4KHrvfF6+f8Y/aY9SsQJaERI7SSUQAQDA0LjsMso kGZFTM49J+eKnVMqQq9L7WzXRikAeg6677GgwVXzHpEUWs66UIuGXk4g6spaSFNw6lKl BaAYcGF6uNbmP1LqFzA9IP4TbJV0b1uzkgXHm5sYsAw1CqxwW8ccKGtS5lqQB3I16QGJ XIeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=l3gV2KQAk+24sUCcPZUWGgMw3Dm+sc+Ox5ibH9xYpcQ=; b=IszA/EszLtcTwLyO8Lq0FBfIZPk8uT80T+c2Zs2QR668yJB2TV+72W8Gq9+B3zGDvc DJZ9O+tVc1BmrqtM1iP0mRek120WqDTIFQaDZCE+gQaeS+sesuyIR/Q52D1dCmwIRPpH eCR1HMmLrKIXZ6IRkS55tEVsyVtfm70gAIP/Mdc5pxIDyauj6BKOp67FiXrzwK1GVc8h drrwB6NfrRdXUcynP1eBuL57TL7SsoT12Shqi2IHXzL9VhDexqe5RUen1Pi0emh+w3iu PTe7naScTpUxfoZnQ5Te1XPDTCoVEPWqv4o0LMJUkHkpmiXJ30KsIx9jQsz8AqzEWCVS A/CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xq9n7rYs; 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 c1si653882pld.348.2019.08.18.00.20.11; Sun, 18 Aug 2019 00:20:27 -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=Xq9n7rYs; 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 S1726247AbfHRHTU (ORCPT + 99 others); Sun, 18 Aug 2019 03:19:20 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:33692 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725290AbfHRHTU (ORCPT ); Sun, 18 Aug 2019 03:19:20 -0400 Received: by mail-oi1-f193.google.com with SMTP id q10so4135176oij.0; Sun, 18 Aug 2019 00:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l3gV2KQAk+24sUCcPZUWGgMw3Dm+sc+Ox5ibH9xYpcQ=; b=Xq9n7rYsgmSdz/cTXIDtxyVx178tu5+JS4tfsINLZRygFxfjMU4PNb00VSKmpnV+qo LSLNvwfcXrtWLF6+ZDN/RXs6+vdvMh7kTg5izHZxGRhImMYpZhMiIgejf8nInzBSEu65 8ZNaFG9WDFiS1YCabNDS6vOkE+Qf1yDFB+kkr/B32W/YOrC7VQe04vYPh5LOUqcrR26S yFe9ufgCKUpJp63v7vx0agEUoWj7JIHB/CWF09UpPDS7OD3IYdP8FdOT/zMDM5czkvti t/3BuNmTXUZg6C1iMhKvIUGQ7U/XtHAGU9WENde6HofIxm5brhhBrGM8MbG1XYR5IKf4 ABcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l3gV2KQAk+24sUCcPZUWGgMw3Dm+sc+Ox5ibH9xYpcQ=; b=Et8PhGoCwMgDd1S368sxVuXYo20vLRmunwpePwP9w0V4lhqKwReggbq97UA13/zLbY tQ6A07HnPb43tFq973G25yfLEvdsTmiUBWsD6XpCd52D2Ys3YbFcQF/Q2JmwYyeCEEzI id+Hh29msakhfzh5Zuou8NI+94cDFHc5/wbAwTbG+BYV+ukvId/Y3UETuDqgfPMT5fpY 5R1zWxVaWJO6ZRMd3XA/PS03UufVIqi9OIVN39S+eLYXGgEPPZRPZVLyJvCzVGmM6BEp d4j8kQfn0psz7ZO6fPdwT+RGz+rs0C8V53l0qOsUDw4NJLISZGju1HRWpK2Y53F1TUUV EmTQ== X-Gm-Message-State: APjAAAXXEfT4XtxZRJf5s4CQYVJFSUFMXhUx6bbrEvJxNLr6yzM85Vki 9iqo3FhXgQB3iZJfU7YhV8M7UD1zQq1PlI5Ea6U= X-Received: by 2002:aca:df08:: with SMTP id w8mr9418590oig.84.1566112758963; Sun, 18 Aug 2019 00:19:18 -0700 (PDT) MIME-Version: 1.0 References: <20190724022310.28010-1-gch981213@gmail.com> <20190724022310.28010-5-gch981213@gmail.com> <20190813155143.GA19830@bogus> <2d48f4a4-7d30-547b-21ee-6aadabe7d7c3@gmx.net> <6b6ee744-61d3-8848-19e7-0a301fe4d1b3@rempel-privat.de> In-Reply-To: From: Chuanhong Guo Date: Sun, 18 Aug 2019 15:19:08 +0800 Message-ID: Subject: Re: [PATCH v2 4/6] dt: bindings: add mt7621-pll dt binding documentation To: Oleksij Rempel Cc: Rob Herring , "open list:COMMON CLK FRAMEWORK" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , "open list:MIPS" , "open list:STAGING SUBSYSTEM" , Michael Turquette , Stephen Boyd , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , John Crispin , Greg Kroah-Hartman , Weijie Gao , NeilBrown , Paul Fertser Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Sun, Aug 18, 2019 at 2:10 PM Oleksij Rempel wrote: > > >> We have at least 2 know registers: > >> SYSC_REG_CPLL_CLKCFG0 - it provides some information about boostrapped > >> refclock. PLL and dividers used for CPU and some sort of BUS (AHB?). > >> SYSC_REG_CPLL_CLKCFG1 - a banch of gates to enable/disable clocks for > >> all or some ip cores. > >> What is probably missing is a set of dividers for > >> each ip core. From your words it is not document. > > > > The specific missing part I was referring to, is parent clocks for > > every gates. I'm not going to assume this with current openwrt device > > tree because some peripherals doesn't have a clock binding at all or > > have a dummy one there. > > Ok, then I do not understand what is the motivation to upstream > something what is not nearly ready for use. Why isn't it "ready for use" then? A complete mt7621-pll driver will contain two parts: 1. A clock provider which outputs several clocks 2. A clock gate with parent clocks properly configured Two clocks provided here are just two clocks that can't be controlled in kernel no matter where it goes (arch/mips/ralink or drivers/clk). Having a working CPU clock provider is better than defining a fixed clock in dts because CPU clock can be controlled by bootloader. (BTW description for CPU PLL register is also missing in datasheet.) Clock gate is an unrelated part and there is no information to properly implement it unless MTK decided to release a clock plan somehow. > This code is currently on prototyping phase Code for clock calculation is done, not "prototyping". > It means, we cannot expect that this driver will be fixed any time soon. I think clock gating is a separated feature instead of a broken part that has to be fixed. Regards, Chuanhong Guo