Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1283570

Re: [PATCH v2 1/9] clk: hi3519: add dt-binding document and header file

Path csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From xuejiancheng <xuejiancheng@huawei.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/9] clk: hi3519: add dt-binding document and header file
Date Fri, 04 Dec 2015 04:30:02 +0100
Message-ID <qBPei-5Js-7@gated-at.bofh.it> (permalink)
References <qBshI-7mN-3@gated-at.bofh.it> <qByGu-3cm-29@gated-at.bofh.it>
X-Original-To Arnd Bergmann <arnd@arndb.de>
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version 1.0
Content-Type text/plain; charset="windows-1252"
Content-Transfer-Encoding 7bit
X-Originating-IP [10.67.217.211]
X-Cfilter-Loop Reflected
X-Mirapoint-Virus-Rapid-Raw score=unknown(0), refid=str=0001.0A020205.566106C5.002E,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-ID 9f3ebffdf0262d309131b86c7411f4a0
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 76
Organization linux.* mail to news gateway
X-Original-Cc <robh+dt@kernel.org>, <pawel.moll@arm.com>, <mark.rutland@arm.com>, <ijc+devicetree@hellion.org.uk>, <galak@codeaurora.org>, <mturquette@baylibre.com>, <sboyd@codeaurora.org>, <xuwei5@hisilicon.com>, <haojian.zhuang@linaro.org>, <zhangfei.gao@linaro.org>, <bintian.wang@huawei.com>, <yanhaifeng@hisilicon.com>, <yanghongwei@hisilicon.com>, <suwenping@hisilicon.com>, <ml.yang@hisilicon.com>, <gaofei@hisilicon.com>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-clk@vger.kernel.org>
X-Original-Date Fri, 4 Dec 2015 11:21:28 +0800
X-Original-Message-ID <566106B8.7080205@huawei.com>
X-Original-References <1449110364-23464-1-git-send-email-xuejiancheng@huawei.com> <1615805.jmP28L2rmX@wuerfel>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1283570

Show key headers only | View raw


Hi Arnd,

On 2015/12/3 17:44, Arnd Bergmann wrote:
> On Thursday 03 December 2015 10:39:24 Jiancheng Xue wrote:
>> +#ifndef __DTS_HI3519_CLOCK_H
>> +#define __DTS_HI3519_CLOCK_H
> 
> Please try to avoid adding headers like this if you can at all.
> 
> I might ask you to merge the header file in one merge window
> otherwise and submit the platform code one kernel later, as they
> tendn to cause us needless dependencies otherwise.
> 

Sorry. In v1, Rob suggested putting binding doc and header files in
a separate patch. The clock driver indeed depends on the header.

I will put the header and the clock driver in a patch, and keep the
binding doc in another patch.

> 
>> +/* fixed rate */
>> +#define HI3519_FIXED_400M              1
>> +#define HI3519_FIXED_200M              2
>> +#define HI3519_FIXED_125M              3
>> +#define HI3519_FIXED_150M              4
>> +#define HI3519_FIXED_75M               5
>> +#define HI3519_FIXED_300M              6
>> +#define HI3519_FIXED_50M               7
>> +#define HI3519_FIXED_24M               8
>> +#define HI3519_FIXED_3M                        9
>> +
>> +/* mux clocks */
>> +#define HI3519_FMC_MUX                 32
>> +#define HI3519_I2C_MUX                 33
>> +#define HI3519_UART_MUX                        34
>> +#define HI3519_SYSAXI_MUX              35
>> +
>> +/*fixed factor clocks*/
>> +#define HI3519_SYSAPB_CLK              64
>> +
>> +/* gate clocks */
>> +#define HI3519_FMC_CLK                 129
>> +#define HI3519_UART0_CLK               153
>> +#define HI3519_UART1_CLK               154
>> +#define HI3519_UART2_CLK               155
>> +#define HI3519_UART3_CLK               156
>> +#define HI3519_UART4_CLK               157
> 
> Where do those numbers come from? They are not consecutive, so it sounds
> like they are directly from the data sheet and won't be needed in the driver.
> If that's true, just use the numbers directly, as you do for everything
> else.

The numbers are defined by myself, not directly from the data sheet. Some numbers
are reserved for device nodes which will be added later. So they are not consecutive now.

> 
>> +#define HI3519_NR_CLKS                 256
>> +#define HI3519_NR_RSTS                 256
>>
> These seem to not be needed at all.

These are used in drivers/clk/hisilicon/clk-hi3519.c.

> 
> 	Arnd
> 
> .
> 

--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/9] clk: hi3519: add dt-binding document and header file Jiancheng Xue <xuejiancheng@huawei.com> - 2015-12-03 04:00 +0100
  Re: [PATCH v2 1/9] clk: hi3519: add dt-binding document and header file Arnd Bergmann <arnd@arndb.de> - 2015-12-03 10:50 +0100
    Re: [PATCH v2 1/9] clk: hi3519: add dt-binding document and header  file xuejiancheng <xuejiancheng@huawei.com> - 2015-12-04 04:30 +0100
      Re: [PATCH v2 1/9] clk: hi3519: add dt-binding document and header file Arnd Bergmann <arnd@arndb.de> - 2015-12-04 12:00 +0100
        Re: [PATCH v2 1/9] clk: hi3519: add dt-binding document and header  file xuejiancheng <xuejiancheng@huawei.com> - 2015-12-07 09:10 +0100
          Re: [PATCH v2 1/9] clk: hi3519: add dt-binding document and header file Arnd Bergmann <arnd@arndb.de> - 2015-12-07 10:40 +0100
            Re: [PATCH v2 1/9] clk: hi3519: add dt-binding document and header  file xuejiancheng <xuejiancheng@huawei.com> - 2015-12-08 02:40 +0100
            Re: [PATCH v2 1/9] clk: hi3519: add dt-binding document and header  file xuejiancheng <xuejiancheng@huawei.com> - 2015-12-08 10:50 +0100
              Re: [PATCH v2 1/9] clk: hi3519: add dt-binding document and header file Arnd Bergmann <arnd@arndb.de> - 2015-12-08 11:30 +0100

csiph-web