From: Bintian <bintian.wang@huawei.com>
To: Arnd Bergmann <arnd@arndb.de>, <linux-arm-kernel@lists.infradead.org>
Cc: <mark.rutland@arm.com>, <dan.zhao@hisilicon.com>,
<btw@mail.itp.ac.cn>, <catalin.marinas@arm.com>,
<wangbinghui@hisilicon.com>, <will.deacon@arm.com>,
<huxinwei@huawei.com>, <haojian.zhuang@linaro.org>,
<yanhaifeng@gmail.com>, <rob.herring@linaro.org>,
<mturquette@linaro.org>, <victor.lixin@hisilicon.com>,
<xuwei5@hisilicon.com>, <jh80.chung@samsung.com>,
<sledge.yanwei@huawei.com>, <kong.kongxinwei@hisilicon.com>,
<heyunlei@huawei.com>, <puck.chen@hisilicon.com>,
<zhangfei.gao@linaro.org>, <z.liuxinliang@huawei.com>,
<devicetree@vger.kernel.org>, <khilman@linaro.org>,
<pawel.moll@arm.com>, <ijc+devicetree@hellion.org.uk>,
<tyler.baker@linaro.org>, <olof@lixom.net>, <robh+dt@kernel.org>,
<linux@arm.linux.org.uk>, <zhenwei.wang@hisilicon.com>,
<w.f@huawei.com>, <guodong.xu@linaro.org>,
<tomeu.vizoso@collabora.com>, <sboyd@codeaurora.org>,
<linux-kernel@vger.kernel.org>, <galak@codeaurora.org>,
<xuejiancheng@huawei.com>, <jorge.ramirez-ortiz@linaro.org>,
<xuyiping@hisilicon.com>, <liguozhu@hisilicon.com>
Subject: Re: [PATCH v2 3/6] clk: hi6220: Document devicetree bindings for hi6220 clock
Date: Tue, 14 Apr 2015 20:37:11 +0800 [thread overview]
Message-ID: <552D09F7.7080603@huawei.com> (raw)
In-Reply-To: <2456827.cDpE8M58pn@wuerfel>
Hello Arnd,
On 2015/4/14 18:19, Arnd Bergmann wrote:
> On Tuesday 14 April 2015 11:35:26 Bintian wrote:
>> Hello Arnd,
>>
>> On 2015/4/13 23:32, Arnd Bergmann wrote:
>>> On Monday 13 April 2015 17:17:37 Bintian Wang wrote:
>>>> +- compatible: the compatible should be one of the following strings to
>>>> + indicate the clock controller functionality.
>>>> +
>>>> + - "hisilicon,aoctrl"
>>>> + - "hisilicon,sysctrl"
>>>> + - "hisilicon,mediactrl"
>>>> + - "hisilicon,pmctrl"
>>>> +
>>>>
>>>
>>> These ones already have bindings, you can't reuse the strings.
>>> Please work with someone in hisilicon to set up a registry of
>>> device names so you can avoid conflicts in the future.
>> All the clock registers are under above four system controllers,
>> discussed with Mark and Haojian two months ago, I think using above
>> same four binding strings is enough for clk module.
>> On second thoughts, there really some problems for future hisilicon
>> code upstream, how about change back to the first version of this
>> patch set, just like following:
>> + sys_ctrl: sys_ctrl {
>> + compatible = "hisilicon,sysctrl", "syscon";
>> + #address-cells = <1>;
>> + #size-cells = <1>;
>> + reg = <0x0 0xf7030000 0x0 0x2000>;
>> + ranges = <0 0x0 0xf7030000 0x2000>;
>> +
>> + clock_sys: clock1@0 {
>> + compatible = "hisilicon,hi6220-clock-sys";
>> + reg = <0 0x1000>;
>> + #clock-cells = <1>;
>> + };
>> + };
>
> Sub-nodes are fine, but you also can't have a device node that
> is just 'compatible = "hisilicon,sysctrl", "syscon";' when
> hisilicon,sysctrl can refer to multiple mutually incompatible
> controllers.
>
> The minimum fix would be to mandate the string to be
> compatible = "hisilicon,hi6220-sysctrl", "hisilicon,sysctrl", "syscon";
> for this model, and use respective compatible strings for the other
> chips.
It's really a smart fix!
For the four system controllers, how about change the following strings:
+ - "hisilicon,aoctrl"
+ - "hisilicon,sysctrl"
+ - "hisilicon,mediactrl"
+ - "hisilicon,pmctrl"
to
+ - "hisilicon,hi6220-aoctrl"
+ - "hisilicon,hi6220-sysctrl"
+ - "hisilicon,hi6220-mediactrl"
+ - "hisilicon,hi6220-pmctrl"
?
and I also use "hisilicon,hi6220-xxxx" for hi6220 clk driver directly ?
>
> For the documentation, I think it would make sense to move that
> description to "hisilicon,sysctrl" and list all the variants of that
> component and the respective compatible strings there, rather than
> have one document per chip and list multiple components in it.
Sure,
Thanks,
Bintian
>
> Arnd
>
> .
>
next prev parent reply other threads:[~2015-04-14 12:41 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-13 9:17 [PATCH v2 0/6] arm64,hi6220: Enable Hisilicon Hi6220 SoC Bintian Wang
2015-04-13 9:17 ` [PATCH v2 1/6] arm64: Enable Hisilicon ARMv8 SoC family in Kconfig and defconfig Bintian Wang
2015-04-20 21:10 ` Kevin Hilman
2015-04-21 0:39 ` Bintian
2015-04-13 9:17 ` [PATCH v2 2/6] arm64: hi6220: Document devicetree bindings for Hisilicon hi6220 SoC Bintian Wang
2015-04-13 9:17 ` [PATCH v2 3/6] clk: hi6220: Document devicetree bindings for hi6220 clock Bintian Wang
2015-04-13 15:32 ` Arnd Bergmann
2015-04-14 3:35 ` Bintian
2015-04-14 10:19 ` Arnd Bergmann
2015-04-14 12:37 ` Bintian [this message]
2015-04-14 13:20 ` Arnd Bergmann
2015-04-14 14:37 ` Brent Wang
2015-04-13 9:17 ` [PATCH v2 4/6] clk: hi6220: Clock driver support for Hisilicon hi6220 SoC Bintian Wang
2015-04-13 11:56 ` Paul Bolle
2015-04-13 13:17 ` Bintian
2015-04-13 14:15 ` Paul Bolle
2015-04-13 13:30 ` Arnd Bergmann
2015-04-13 13:57 ` Bintian
2015-04-13 15:34 ` Arnd Bergmann
2015-04-14 8:53 ` YiPing Xu
2015-04-13 9:17 ` [PATCH v2 5/6] arm64: Kconfig: Add clock support to ARCH_HISI Bintian Wang
2015-04-13 9:17 ` [PATCH v2 6/6] arm64: dts: Add dts files for Hisilicon Hi6220 SoC Bintian Wang
2015-04-14 14:44 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=552D09F7.7080603@huawei.com \
--to=bintian.wang@huawei.com \
--cc=arnd@arndb.de \
--cc=btw@mail.itp.ac.cn \
--cc=catalin.marinas@arm.com \
--cc=dan.zhao@hisilicon.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=guodong.xu@linaro.org \
--cc=haojian.zhuang@linaro.org \
--cc=heyunlei@huawei.com \
--cc=huxinwei@huawei.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jh80.chung@samsung.com \
--cc=jorge.ramirez-ortiz@linaro.org \
--cc=khilman@linaro.org \
--cc=kong.kongxinwei@hisilicon.com \
--cc=liguozhu@hisilicon.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=mturquette@linaro.org \
--cc=olof@lixom.net \
--cc=pawel.moll@arm.com \
--cc=puck.chen@hisilicon.com \
--cc=rob.herring@linaro.org \
--cc=robh+dt@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=sledge.yanwei@huawei.com \
--cc=tomeu.vizoso@collabora.com \
--cc=tyler.baker@linaro.org \
--cc=victor.lixin@hisilicon.com \
--cc=w.f@huawei.com \
--cc=wangbinghui@hisilicon.com \
--cc=will.deacon@arm.com \
--cc=xuejiancheng@huawei.com \
--cc=xuwei5@hisilicon.com \
--cc=xuyiping@hisilicon.com \
--cc=yanhaifeng@gmail.com \
--cc=z.liuxinliang@huawei.com \
--cc=zhangfei.gao@linaro.org \
--cc=zhenwei.wang@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox