Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp642942ybl; Sat, 17 Aug 2019 07:45:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYbiZNFkLR08Y5f3/KWoudzukx4na3VqAXXlOw2MiHeFMjG9lkzO3AyyNSEr0fi2QystzD X-Received: by 2002:a17:90a:fb8e:: with SMTP id cp14mr12040422pjb.54.1566053127368; Sat, 17 Aug 2019 07:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566053127; cv=none; d=google.com; s=arc-20160816; b=bLDjW1WgtU2AoOSSabfjk9oahQTMM2+5rjRvxYTFLhVbVj4pBdKnyMvb6HX9PjBHbF 7o2TLnMIu8Em6JWFTABN+YiH3c49hCLPnTSwZB6aMpAIwk/SXjg7yTlBV6g9PCQHuQST qLbonp3QdR2lZgvRP5ySIlstjbsKmWLmxeFvQ8jkedpJeCuC+jOx0mRMxD1sxZOoXu/+ rpmmkHva59yDhXssEpBlG6r9pFz+0N8gbcrEVLGUWUscwGxOV+PoevV+8WCLkZUnG1t+ DfQlnZsOfNJnSfg1Zh0no7dS+a2Bi4nFTeajuGrgVfaWAy3kfrRW4YSR/pO0iC2TTIya ZMUA== 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=u+ouuMQrNVti/jSM5pYCBsXYcjd9f+fOqg85jip3rp8=; b=Lkx223d5L4tq8q68/+87jWvm8ATgIUy4FBxoengjjG9/QZ00q3TtGxSxjj61lcIgSj Q3wO76voxeecpRTTuy7bE/n5S0Bt24e1waZLCjyG4gmv/+3IYkuBMxUy50SAV+lb6TAX ZvOMIIgOsirnpz65S6r3iCRNRsA3hbzEG5hvyc5zY6jxPyFdqHcfJMXSB5ohJTlJP3ud 5qa5lOd+Rc1Uch1ibZOMg7JwEcxblqkYG4Oj83/QH7Gi1ZlUY+wKxizYn/wplla0F0N5 LVm+W3qIuV5ZgGe4Oi7V/8mlMrTWXS15QEcsrahzESTYlpD/mlG4V3mOJuHAYHJ8QYzU sJww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UWWveDza; 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 y5si6183854plt.128.2019.08.17.07.45.08; Sat, 17 Aug 2019 07:45: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=UWWveDza; 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 S1726128AbfHQOmY (ORCPT + 99 others); Sat, 17 Aug 2019 10:42:24 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:33050 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfHQOmY (ORCPT ); Sat, 17 Aug 2019 10:42:24 -0400 Received: by mail-ot1-f66.google.com with SMTP id q20so11445941otl.0; Sat, 17 Aug 2019 07:42:23 -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=u+ouuMQrNVti/jSM5pYCBsXYcjd9f+fOqg85jip3rp8=; b=UWWveDzaXrnRWzm77yDCOLyoGFGeMfwlcrcoDAlg+n2BRt2WEWB+dpBiXK97kiEVRW YLslFXHdVfC/GFkbxBh6Gdu+SWw8331QjQC4zEte152sB0ESTXRTCOUbwt/2NLDYtOKx 8x4YttqP2cffWMMb59Y5HOAWsDO97/1519Du2PTbYAKeCg14TS/QiD6i9PDXlLQWNvXR 6kslMkAzXMm9HtWfEnB4f0gVx6gPQn57wPLjuujlARLCoOugYV8BGr1cOT43lj9FNhae QlaM/ig6tXqy2Ch72M9GC//cNQXpQ6crg3hfg3Q0rHRMqQ/FIk0B3+y5YmIQCpkT+Wi1 GWWg== 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=u+ouuMQrNVti/jSM5pYCBsXYcjd9f+fOqg85jip3rp8=; b=VkoUw6yaygih1gnIuD+w142Wc52KdPj/pYd/8kXL0vILO6afv1lyvmql/PiTjw2+Ux t1QVgqlghUUvc7Yvpuo4AYCChXA5eCKTXtewnkWAXg6/udfesnXlwqbQWjtIY6x75zq+ PRBa9KNY9OJJPPWjeyMIMbpHnW8wB/wxuclDeZnioEOTMYRgqEaP2Ad0bUfLXPoSgy8S aKn0w+xDEPY7rB1qRFqDcuVLHvb7iHcXsjHdj5eErVHtTBMYZWKbSRpYjmg3XD94aVUz YJDUBOE4m5JLiNsdh50xyUXqIdQvaYzg2yeaILt2+OxamPSbWFp5+/T/5B10nVBOqA63 S3GQ== X-Gm-Message-State: APjAAAWzOO9QVJNl8CQ52xPKSENAPVDiXouy2xQxdo8Hu7FhzMyR3WQ9 tmlXNksdDi8PjXrbwDjIM3JvTtZZFK1KKODJDRg= X-Received: by 2002:a05:6830:1592:: with SMTP id i18mr5384197otr.86.1566052943046; Sat, 17 Aug 2019 07:42:23 -0700 (PDT) MIME-Version: 1.0 References: <20190724022310.28010-1-gch981213@gmail.com> <20190724022310.28010-5-gch981213@gmail.com> <20190813155143.GA19830@bogus> In-Reply-To: <20190813155143.GA19830@bogus> From: Chuanhong Guo Date: Sat, 17 Aug 2019 22:42:12 +0800 Message-ID: Subject: Re: [PATCH v2 4/6] dt: bindings: add mt7621-pll dt binding documentation To: Rob Herring Cc: "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 Tue, Aug 13, 2019 at 11:51 PM Rob Herring wrote: > [...] > > +Example: > > + pll { > > + compatible = "mediatek,mt7621-pll"; > > You didn't answer Stephen's question on v1. I thought he was asking why there's a syscon in compatible string. I noticed that the syscon in my previous patch is a copy-paste error from elsewhere and dropped it. > > Based on this binding, there is no way to control/program the PLL. Is > this part of some IP block? The entire section is called "system control" in datasheet and is occupied in arch/mips/ralink/mt7621.c [0] Two clocks provided here is determined by reading some read-only registers in this part. There's another register in this section providing clock gates for every peripherals, but MTK doesn't provide a clock plan in their datasheet. I can't determine corresponding clock frequencies for every peripherals, thus unable to write a working clock driver. > > > + > > + #clock-cells = <1>; > > + clock-output-names = "cpu", "bus"; > > + }; > > -- > > 2.21.0 > > Regards, Chuanhong Guo [0] https://elixir.bootlin.com/linux/latest/source/arch/mips/ralink/mt7621.c#L156