Re: [PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-07-01 Thread Mike Turquette
Quoting Javier Martinez Canillas (2014-06-26 11:15:35)
> This patch adds a dt-binding include for Maxim 77686
> PMIC clock IDs that can be to be shared between the
> clk-max77686 clock driver and DeviceTree source files.
> 
> Signed-off-by: Javier Martinez Canillas 
> Reviewed-by: Krzysztof Kozlowski 

Looks good to me.

Regards,
Mike

> ---
> 
> Changes since v4: None
> 
> Changes since v3: None
> 
>  drivers/clk/clk-max77686.c |  7 +--
>  include/dt-bindings/clock/maxim,max77686.h | 23 +++
>  2 files changed, 24 insertions(+), 6 deletions(-)
>  create mode 100644 include/dt-bindings/clock/maxim,max77686.h
> 
> diff --git a/drivers/clk/clk-max77686.c b/drivers/clk/clk-max77686.c
> index 3d7e8dd..185b611 100644
> --- a/drivers/clk/clk-max77686.c
> +++ b/drivers/clk/clk-max77686.c
> @@ -30,12 +30,7 @@
>  #include 
>  #include 
>  
> -enum {
> -   MAX77686_CLK_AP = 0,
> -   MAX77686_CLK_CP,
> -   MAX77686_CLK_PMIC,
> -   MAX77686_CLKS_NUM,
> -};
> +#include 
>  
>  struct max77686_clk {
> struct max77686_dev *iodev;
> diff --git a/include/dt-bindings/clock/maxim,max77686.h 
> b/include/dt-bindings/clock/maxim,max77686.h
> new file mode 100644
> index 000..7b28b09
> --- /dev/null
> +++ b/include/dt-bindings/clock/maxim,max77686.h
> @@ -0,0 +1,23 @@
> +/*
> + * Copyright (C) 2014 Google, Inc
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + *
> + * Device Tree binding constants clocks for the Maxim 77686 PMIC.
> + */
> +
> +#ifndef _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H
> +#define _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H
> +
> +/* Fixed rate clocks. */
> +
> +#define MAX77686_CLK_AP0
> +#define MAX77686_CLK_CP1
> +#define MAX77686_CLK_PMIC  2
> +
> +/* Total number of clocks. */
> +#define MAX77686_CLKS_NUM  (MAX77686_CLK_PMIC + 1)
> +
> +#endif /* _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H */
> -- 
> 2.0.0.rc2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-07-01 Thread Mike Turquette
Quoting Javier Martinez Canillas (2014-06-26 11:15:35)
 This patch adds a dt-binding include for Maxim 77686
 PMIC clock IDs that can be to be shared between the
 clk-max77686 clock driver and DeviceTree source files.
 
 Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk
 Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com

Looks good to me.

Regards,
Mike

 ---
 
 Changes since v4: None
 
 Changes since v3: None
 
  drivers/clk/clk-max77686.c |  7 +--
  include/dt-bindings/clock/maxim,max77686.h | 23 +++
  2 files changed, 24 insertions(+), 6 deletions(-)
  create mode 100644 include/dt-bindings/clock/maxim,max77686.h
 
 diff --git a/drivers/clk/clk-max77686.c b/drivers/clk/clk-max77686.c
 index 3d7e8dd..185b611 100644
 --- a/drivers/clk/clk-max77686.c
 +++ b/drivers/clk/clk-max77686.c
 @@ -30,12 +30,7 @@
  #include linux/mutex.h
  #include linux/clkdev.h
  
 -enum {
 -   MAX77686_CLK_AP = 0,
 -   MAX77686_CLK_CP,
 -   MAX77686_CLK_PMIC,
 -   MAX77686_CLKS_NUM,
 -};
 +#include dt-bindings/clock/maxim,max77686.h
  
  struct max77686_clk {
 struct max77686_dev *iodev;
 diff --git a/include/dt-bindings/clock/maxim,max77686.h 
 b/include/dt-bindings/clock/maxim,max77686.h
 new file mode 100644
 index 000..7b28b09
 --- /dev/null
 +++ b/include/dt-bindings/clock/maxim,max77686.h
 @@ -0,0 +1,23 @@
 +/*
 + * Copyright (C) 2014 Google, Inc
 + *
 + * This program is free software; you can redistribute it and/or modify
 + * it under the terms of the GNU General Public License version 2 as
 + * published by the Free Software Foundation.
 + *
 + * Device Tree binding constants clocks for the Maxim 77686 PMIC.
 + */
 +
 +#ifndef _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H
 +#define _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H
 +
 +/* Fixed rate clocks. */
 +
 +#define MAX77686_CLK_AP0
 +#define MAX77686_CLK_CP1
 +#define MAX77686_CLK_PMIC  2
 +
 +/* Total number of clocks. */
 +#define MAX77686_CLKS_NUM  (MAX77686_CLK_PMIC + 1)
 +
 +#endif /* _DT_BINDINGS_CLOCK_MAXIM_MAX77686_CLOCK_H */
 -- 
 2.0.0.rc2
 
 --
 To unsubscribe from this list: send the line unsubscribe linux-kernel in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 Please read the FAQ at  http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-06-27 Thread Javier Martinez Canillas
Hello Andreas,

On 06/27/2014 10:26 AM, Andreas Färber wrote:
> Hi Javier,
> 
> Am 27.06.2014 09:53, schrieb Javier Martinez Canillas:
>> Hello Andreas,
>> 
>> On 06/27/2014 09:48 AM, Andreas Färber wrote:
>>> Am 26.06.2014 20:15, schrieb Javier Martinez Canillas:
 This patch adds a dt-binding include for Maxim 77686
 PMIC clock IDs that can be to be shared between the
>>>
>>> "can be shared"?
>>>
>> 
>> As it should be quite clear right now I'm not a native English speaker.
> 
> Guessed so, me neither. But since it's v5 already and no native speaker
> pointed it out, I took the liberty to do so while verifying that the
> LD02 typo didn't propagate into your bindings documentation (it didn't).
> 
>> I meant
>> that the header file can be included by both Device Tree source files and the
>> max77802 driver.
> 
> AFAIU "clock IDs to be shared" and "clock IDs that can be shared" would
> both be valid, but above a verb is missing (e.g., "can be used to").
> 
> Thanks for your upstreaming efforts, and don't let me discourage you.
> 

No discourage at all, your feedback is highly appreciated and sorry that I
didn't catch all these typos when working on the DT documentation.

> Best regards,
> 
> Andreas
> 

Best regards,
Javier
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-06-27 Thread Andreas Färber
Hi Javier,

Am 27.06.2014 09:53, schrieb Javier Martinez Canillas:
> Hello Andreas,
> 
> On 06/27/2014 09:48 AM, Andreas Färber wrote:
>> Am 26.06.2014 20:15, schrieb Javier Martinez Canillas:
>>> This patch adds a dt-binding include for Maxim 77686
>>> PMIC clock IDs that can be to be shared between the
>>
>> "can be shared"?
>>
> 
> As it should be quite clear right now I'm not a native English speaker.

Guessed so, me neither. But since it's v5 already and no native speaker
pointed it out, I took the liberty to do so while verifying that the
LD02 typo didn't propagate into your bindings documentation (it didn't).

> I meant
> that the header file can be included by both Device Tree source files and the
> max77802 driver.

AFAIU "clock IDs to be shared" and "clock IDs that can be shared" would
both be valid, but above a verb is missing (e.g., "can be used to").

Thanks for your upstreaming efforts, and don't let me discourage you.

Best regards,

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-06-27 Thread Javier Martinez Canillas
Hello Andreas,

On 06/27/2014 09:48 AM, Andreas Färber wrote:
> Am 26.06.2014 20:15, schrieb Javier Martinez Canillas:
>> This patch adds a dt-binding include for Maxim 77686
>> PMIC clock IDs that can be to be shared between the
> 
> "can be shared"?
> 

As it should be quite clear right now I'm not a native English speaker. I meant
that the header file can be included by both Device Tree source files and the
max77802 driver.

> Regards,
> Andreas
> 

Best regards,
Javier
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-06-27 Thread Andreas Färber
Am 26.06.2014 20:15, schrieb Javier Martinez Canillas:
> This patch adds a dt-binding include for Maxim 77686
> PMIC clock IDs that can be to be shared between the

"can be shared"?

Regards,
Andreas

> clk-max77686 clock driver and DeviceTree source files.
> 
> Signed-off-by: Javier Martinez Canillas 
> Reviewed-by: Krzysztof Kozlowski 
> ---
> 
> Changes since v4: None
> 
> Changes since v3: None

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-06-27 Thread Andreas Färber
Am 26.06.2014 20:15, schrieb Javier Martinez Canillas:
 This patch adds a dt-binding include for Maxim 77686
 PMIC clock IDs that can be to be shared between the

can be shared?

Regards,
Andreas

 clk-max77686 clock driver and DeviceTree source files.
 
 Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk
 Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com
 ---
 
 Changes since v4: None
 
 Changes since v3: None

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-06-27 Thread Javier Martinez Canillas
Hello Andreas,

On 06/27/2014 09:48 AM, Andreas Färber wrote:
 Am 26.06.2014 20:15, schrieb Javier Martinez Canillas:
 This patch adds a dt-binding include for Maxim 77686
 PMIC clock IDs that can be to be shared between the
 
 can be shared?
 

As it should be quite clear right now I'm not a native English speaker. I meant
that the header file can be included by both Device Tree source files and the
max77802 driver.

 Regards,
 Andreas
 

Best regards,
Javier
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-06-27 Thread Andreas Färber
Hi Javier,

Am 27.06.2014 09:53, schrieb Javier Martinez Canillas:
 Hello Andreas,
 
 On 06/27/2014 09:48 AM, Andreas Färber wrote:
 Am 26.06.2014 20:15, schrieb Javier Martinez Canillas:
 This patch adds a dt-binding include for Maxim 77686
 PMIC clock IDs that can be to be shared between the

 can be shared?

 
 As it should be quite clear right now I'm not a native English speaker.

Guessed so, me neither. But since it's v5 already and no native speaker
pointed it out, I took the liberty to do so while verifying that the
LD02 typo didn't propagate into your bindings documentation (it didn't).

 I meant
 that the header file can be included by both Device Tree source files and the
 max77802 driver.

AFAIU clock IDs to be shared and clock IDs that can be shared would
both be valid, but above a verb is missing (e.g., can be used to).

Thanks for your upstreaming efforts, and don't let me discourage you.

Best regards,

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-06-27 Thread Javier Martinez Canillas
Hello Andreas,

On 06/27/2014 10:26 AM, Andreas Färber wrote:
 Hi Javier,
 
 Am 27.06.2014 09:53, schrieb Javier Martinez Canillas:
 Hello Andreas,
 
 On 06/27/2014 09:48 AM, Andreas Färber wrote:
 Am 26.06.2014 20:15, schrieb Javier Martinez Canillas:
 This patch adds a dt-binding include for Maxim 77686
 PMIC clock IDs that can be to be shared between the

 can be shared?

 
 As it should be quite clear right now I'm not a native English speaker.
 
 Guessed so, me neither. But since it's v5 already and no native speaker
 pointed it out, I took the liberty to do so while verifying that the
 LD02 typo didn't propagate into your bindings documentation (it didn't).
 
 I meant
 that the header file can be included by both Device Tree source files and the
 max77802 driver.
 
 AFAIU clock IDs to be shared and clock IDs that can be shared would
 both be valid, but above a verb is missing (e.g., can be used to).
 
 Thanks for your upstreaming efforts, and don't let me discourage you.
 

No discourage at all, your feedback is highly appreciated and sorry that I
didn't catch all these typos when working on the DT documentation.

 Best regards,
 
 Andreas
 

Best regards,
Javier
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/