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


Groups > linux.kernel > #1370277 > unrolled thread

Re: [PATCH v2 04/16] arm64: dts: Add Hi6220 gpio configuration nodes

Started byLinus Walleij <linus.walleij@linaro.org>
First post2016-04-03 21:30 +0200
Last post2016-04-12 11:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2 04/16] arm64: dts: Add Hi6220 gpio configuration nodes Linus Walleij <linus.walleij@linaro.org> - 2016-04-03 21:30 +0200
    Re: [PATCH v2 04/16] arm64: dts: Add Hi6220 gpio configuration nodes Guodong Xu <guodong.xu@linaro.org> - 2016-04-12 11:20 +0200

#1370277 — Re: [PATCH v2 04/16] arm64: dts: Add Hi6220 gpio configuration nodes

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-04-03 21:30 +0200
SubjectRe: [PATCH v2 04/16] arm64: dts: Add Hi6220 gpio configuration nodes
Message-ID<rjVSG-8av-7@gated-at.bofh.it>
On Sat, Apr 2, 2016 at 11:29 AM, Guodong Xu <guodong.xu@linaro.org> wrote:

> From: Zhong Kaihua <zhongkaihua@huawei.com>
>
> Add Hi6220 gpio configuration nodes
>
> Signed-off-by: Zhong Kaihua <zhongkaihua@huawei.com>
> Signed-off-by: Kong Xinwei <kong.kongxinwei@hisilicon.com>
>

Get rid of that blank line.

> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>

> +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
> @@ -249,5 +249,264 @@
>                         clocks = <&ao_ctrl 27>;
>                         clock-names = "apb_pclk";
>                 };
> +
> +               gpio0: gpio@f8011000 {
> +                       compatible = "arm,pl061", "arm,primecell";
> +                       reg = <0x0 0xf8011000 0x0 0x1000>;
> +                       interrupts = <0 52 0x4>;
> +                       gpio-controller;
> +                       #gpio-cells = <2>;
> +                       interrupt-controller;
> +                       #interrupt-cells = <2>;
> +                       clocks = <&ao_ctrl 2>;
> +                       clock-names = "apb_pclk";
> +                       status = "ok";
> +               };

This part with all GPIO controllers looks nice.

> new file mode 100644
> index 0000000..09242f0
> --- /dev/null
> +++ b/arch/arm64/boot/dts/hisilicon/hikey-gpio.dtsi
> @@ -0,0 +1,607 @@
> +/ {
> +       gpio_rstout_n:gpio_rstout_n {
> +               gpios;
> +       };
> +       gpio_pmu_peri_en:gpio_pmu_peri_en {
> +               gpios;
> +       };
> +       gpio_sysclk0_en:gpio_sysclk0_en {
> +               gpios;
> +       };
> +       gpio_jtag_tdo:gpio_jtag_tdo {
> +               gpios;
> +       };
> +       /* LCB: PWR_HOLD_GPIO0_0 */
> +       gpio_pwr_hold:gpio_pwr_hold {
> +               gpios = <&gpio0 0 0>;
> +       };

(...)

I don't understand any stuff in this hikey-gpio.dtsi file.

What does all this mean?

If it has any practical use whatsoever then explain it in the
commit message, but right now it just looks like a big list
of placeholders with no use, but you can copy-paste them
into device nodes the day you need them?

If they are unused, just drop this file please.

Yours,
Linus Walleij

[toc] | [next] | [standalone]


#1376580

FromGuodong Xu <guodong.xu@linaro.org>
Date2016-04-12 11:20 +0200
Message-ID<rn2Ej-4JV-17@gated-at.bofh.it>
In reply to#1370277
On 4 April 2016 at 03:28, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Sat, Apr 2, 2016 at 11:29 AM, Guodong Xu <guodong.xu@linaro.org> wrote:
>
>> From: Zhong Kaihua <zhongkaihua@huawei.com>
>>
>> Add Hi6220 gpio configuration nodes
>>
>> Signed-off-by: Zhong Kaihua <zhongkaihua@huawei.com>
>> Signed-off-by: Kong Xinwei <kong.kongxinwei@hisilicon.com>
>>
>
> Get rid of that blank line.

Will fix.

Sorry missed that in v3.

>
>> Acked-by: Rob Herring <robh@kernel.org>
>> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
>
>> +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
>> @@ -249,5 +249,264 @@
>>                         clocks = <&ao_ctrl 27>;
>>                         clock-names = "apb_pclk";
>>                 };
>> +
>> +               gpio0: gpio@f8011000 {
>> +                       compatible = "arm,pl061", "arm,primecell";
>> +                       reg = <0x0 0xf8011000 0x0 0x1000>;
>> +                       interrupts = <0 52 0x4>;
>> +                       gpio-controller;
>> +                       #gpio-cells = <2>;
>> +                       interrupt-controller;
>> +                       #interrupt-cells = <2>;
>> +                       clocks = <&ao_ctrl 2>;
>> +                       clock-names = "apb_pclk";
>> +                       status = "ok";
>> +               };
>
> This part with all GPIO controllers looks nice.
>
>> new file mode 100644
>> index 0000000..09242f0
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/hisilicon/hikey-gpio.dtsi
>> @@ -0,0 +1,607 @@
>> +/ {
>> +       gpio_rstout_n:gpio_rstout_n {
>> +               gpios;
>> +       };
>> +       gpio_pmu_peri_en:gpio_pmu_peri_en {
>> +               gpios;
>> +       };
>> +       gpio_sysclk0_en:gpio_sysclk0_en {
>> +               gpios;
>> +       };
>> +       gpio_jtag_tdo:gpio_jtag_tdo {
>> +               gpios;
>> +       };
>> +       /* LCB: PWR_HOLD_GPIO0_0 */
>> +       gpio_pwr_hold:gpio_pwr_hold {
>> +               gpios = <&gpio0 0 0>;
>> +       };
>
> (...)
>
> I don't understand any stuff in this hikey-gpio.dtsi file.
>
> What does all this mean?
>
> If it has any practical use whatsoever then explain it in the
> commit message, but right now it just looks like a big list
> of placeholders with no use, but you can copy-paste them
> into device nodes the day you need them?
>
> If they are unused, just drop this file please.

I will drop this.

Sorry missed this in v2. I will fix this in next version.

-Guodong

>
> Yours,
> Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web