Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754217AbbGGG5B (ORCPT ); Tue, 7 Jul 2015 02:57:01 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41908 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751657AbbGGG4w (ORCPT ); Tue, 7 Jul 2015 02:56:52 -0400 X-Listener-Flag: 11101 Message-ID: <1436252206.3526.80.camel@mtksdaap41> Subject: Re: [PATCH v2 2/4] dt-bindings: ARM: Mediatek: Document devicetree bindings for clock controllers From: James Liao To: Daniel Kurtz CC: Stephen Boyd , "open list:OPEN FIRMWARE AND..." , Mike Turquette , srv_heupstream , "linux-kernel@vger.kernel.org" , Ricky Liang , Rob Herring , , Sascha Hauer , Matthias Brugger , "linux-arm-kernel@lists.infradead.org" Date: Tue, 7 Jul 2015 14:56:46 +0800 In-Reply-To: References: <1435633127-31952-1-git-send-email-jamesjj.liao@mediatek.com> <1435633127-31952-3-git-send-email-jamesjj.liao@mediatek.com> <1435805534.3526.23.camel@mtksdaap41> <5595CBDC.7090101@codeaurora.org> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2147 Lines: 61 Hi Daniel, On Fri, 2015-07-03 at 18:46 +0800, Daniel Kurtz wrote: > On Fri, Jul 3, 2015 at 7:40 AM, Stephen Boyd wrote: > > DT nodes typically have a reg property. Not having a reg property is a > > good indicator of a problem with the binding. A syscon is used when you > > have a DT node with a reg property and some driver attached to it, but > > you need to poke some bits in another register region that isn't part of > > the reg property. Instead of having multiple nodes with two reg > > properties where the second one is the same, we use a phandle and a syscon. > > > > If clock-controller isn't acceptable maybe clock-reset-contoller would > > work? Or "power-controller"? We certainly shouldn't be making up > > multiple nodes for one hardware block. Of course, the subject of the > > patch is "bindings for clock controllers", so it may be that the > > registers are predominantly clock related and so the name is appropriate > > already. > > Using "clock-controller" seems to fit best with the bindings > introduced by this patch. > > However, if these bindings are for hardware blocks that contain a grab > bag of various functionality that will be added in later patches, then > I think "syscon" might be best. I referred some dt-binding documents that contain clock and reset controller in the same unit: qcom,gcc.txt: clock-controller@900000 { compatible = "qcom,gcc-msm8960"; nvidia,tegra124-car.txt: tegra_car: clock { compatible = "nvidia,tegra124-car"; rockchip,rk3188-cru.txt: cru: cru@20000000 { compatible = "rockchip,rk3188-cru"; Rockchip use "Clock and Reset Unit" as their controller's name. The other two use "clock" or "clock-controller" as their controller's name. It looks like "clock-controller" is also an acceptable name for clock/reset controllers. So I would like to keep this name in next patch. Best regards, James -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/