Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1121365ybl; Sat, 17 Aug 2019 19:30:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyO6Z+KZVatY3GQj0Dbf+xozqHlK5Wr0taIYLXWt1SE28Jm0Ri+3QaKnt++eVt2uF5iTdY X-Received: by 2002:a63:4e05:: with SMTP id c5mr13679518pgb.82.1566095448912; Sat, 17 Aug 2019 19:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566095448; cv=none; d=google.com; s=arc-20160816; b=B+mmJRhR5p94FERAw3jMixiXftalSCxCMsqg1svLlt7S7+hw2rVz+KOtg2xKcB0PvO ccBRsTjMuWGAHMBqviHePddzrYlc+5bgXO51WbNtwkJG9WeO2VvFI91/c6+ZLcp6e6sV Iubzs96JiW7ZLDe0POA3MjtbxO1V0kxe5gbf4Mfquo9KOkd+H5mXQiLwQHa4Zk2QaQAm 74LiByTP2qTCmsG2EMEzJOLEKPXXz+PI8zR8l7eK9ODV7q1yN0TTXxHqn15v7vs7t88Y L4xu+MAOXBfEqSQQbSbnOmssd8t86YaJMduxUrkTDtWPSSixd2h0KcX6R/XUiv1DErUP pvDg== 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=Epy/wiFdMahX+RcrO6BylN4SVEqUlDpp4VHq8uy62L8=; b=yDZduHYxHr4q6MYaYid/xwKT1vKX5xTaLodK1PcS7TjLBCMHdbUstrEfuDCrXWJ0LO 8tvBKPfE2OF9IjIe4yPqS9fIw6YCkgei6m3onF643zbtvMUdORgYBJSEG9y8mUW/nLKU QqcTmRWTqAF+Oc9SPpP8cZfl4k/e3r0w/ognau27MFay8XV+vNs6o4N82J6TBWBVbtIC 5BT+bjlFakJs1HzBkpiL8qLXlBYxnk9F76fXGS4clqhmBa+mOtHP+LA6MrgDoHyOOCq3 N+7wHIUKQjAxcfrPzC6siDB+WUi/p+9Zxlh5QIGQFIVJaSrI+cu2arASKjT5beJwtu1l IlKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CW3drVPL; 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 x7si7131949plv.130.2019.08.17.19.30.32; Sat, 17 Aug 2019 19:30: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=CW3drVPL; 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 S1726416AbfHRC3l (ORCPT + 99 others); Sat, 17 Aug 2019 22:29:41 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:41690 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbfHRC3l (ORCPT ); Sat, 17 Aug 2019 22:29:41 -0400 Received: by mail-oi1-f195.google.com with SMTP id g7so7459366oia.8; Sat, 17 Aug 2019 19:29:40 -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=Epy/wiFdMahX+RcrO6BylN4SVEqUlDpp4VHq8uy62L8=; b=CW3drVPLLqonFPNLRtQRlHJk3CvJCBF10ngKwEO2lvD/+AgY+xETP3TTv1BsSYpBju CRRKhcHLUli8oBCxhgvkmuQcOFJ9+NJNf/jR9MNiDHQ3840tjdPrHnS3FNloeYUcY0JH hrc1JE3FUgGtJ6+ueIh3Z0L6LhVcNWuxdC5LxtJyr9aXWdk84OG4K4BVYh2I9gN3Wz6L yCBsMpPtDI/AXny+iBCytakPEYy52T2htxPCp5qkEDS8qLPzHYGrAte/BMgubreVpWj/ 28kkXb1DDSzQPj3omc8QcuLk+Cg/4Wppibg6od+YcNmUSepCmnLAqUZbweCEFNo6dHzv duQA== 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=Epy/wiFdMahX+RcrO6BylN4SVEqUlDpp4VHq8uy62L8=; b=XXyMuAheCNeSseVbGLbSwmYu/Ih2fnQuo7hJlYg6oPjYmaDb90fZnxK7GxvaGBFMIh sTCVxCUYXkNYOWwOUdENW1foOEqO1gO4aCdkT++NeLxTGAftlt6Mcj4meGY38NTaOxcb jSU8FnOVIpqgJ2yc900hQ6rO4/oiNGYvSrRehi53PLhtljdPkJ6fE6jwga72/nKjsacs U4PPH4EHAtB/LDGzQJF0J1p89OxOF/vT4h/PWBACC4lwc0EOexcxvkeTiux2SXbEOKIW 8rFgx3TiML4OSrGfHpmMGDqQa4+ITUfkGwyWlJjcEJSiLeKWE8jc4Lf01rxGnNS7jjjZ 2uSQ== X-Gm-Message-State: APjAAAWHvGepWnMXWhTxL9jG4FMcPG7VlTEdVuTHBE7Y3TlHQoO2gF5g Sf06ujjFxlY2nyrbIay0MYjPewb7LBY3HMkHOME= X-Received: by 2002:aca:df08:: with SMTP id w8mr9038674oig.84.1566095380102; Sat, 17 Aug 2019 19:29:40 -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: <6b6ee744-61d3-8848-19e7-0a301fe4d1b3@rempel-privat.de> From: Chuanhong Guo Date: Sun, 18 Aug 2019 10:29:29 +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 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:06 AM Oleksij Rempel wrote: > >> SYSC_REG_CPLL_CLKCFG1 register is a clock gate controller. It is used to enable or disable clocks. > >> Jist wild assumption. All peripheral devices are suing bus clock. > > > > This assumption is incorrect. When this patchset is applied in > > OpenWrt, I asked the author why there's still a fixed clock in > > mt7621.dtsi, He told me that there's another clock for those unchanged > > peripherals and he doesn't have time to write a clock provider for it. > > Can you please provide a link to this patch or email. This discussion is in Chinese and using an IM software so there's no link available. > 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. > > With this information the clk driver will provide gate functionality and > a set of hardcoded clocks. With this driver will work part of power > management and nice devicetree without fixed clocks. Regards, Chuanhong Guo