diff mbox

[RESEND] ARM: dts: exynos5: add pwm DT nodes to Exynos5250 and Exynos5420

Message ID 1381383731-4359-1-git-send-email-l.krishna@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Leela Krishna Amudala Oct. 10, 2013, 5:42 a.m. UTC
Add the device-tree binding for the PWM controller to Exynos5250 and Exynos5420

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Olof Johansson <olofj@chromium.org>
Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
---
 arch/arm/boot/dts/exynos5250.dtsi |    9 +++++++++
 arch/arm/boot/dts/exynos5420.dtsi |    9 +++++++++
 2 files changed, 18 insertions(+)

Comments

Sachin Kamat Oct. 10, 2013, 5:48 a.m. UTC | #1
Hi Leela,

On 10 October 2013 11:12, Leela Krishna Amudala <l.krishna@samsung.com> wrote:
> Add the device-tree binding for the PWM controller to Exynos5250 and Exynos5420
>
> Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
> Signed-off-by: Olof Johansson <olofj@chromium.org>
> Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
> ---
>  arch/arm/boot/dts/exynos5250.dtsi |    9 +++++++++
>  arch/arm/boot/dts/exynos5420.dtsi |    9 +++++++++
>  2 files changed, 18 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
> index 864ae90..99abc72 100644
> --- a/arch/arm/boot/dts/exynos5250.dtsi
> +++ b/arch/arm/boot/dts/exynos5250.dtsi
> @@ -521,6 +521,15 @@
>                 };
>         };
>
> +       pwm: pwm@12dd0000 {
> +               compatible = "samsung,exynos4210-pwm";
> +               reg = <0x12dd0000 0x100>;
> +               samsung,pwm-outputs = <0>, <1>, <2>, <3>;
> +               #pwm-cells = <3>;
> +               clocks = <&clock 311>;
> +               clock-names = "timers";
> +       };
> +
>         amba {
>                 #address-cells = <1>;
>                 #size-cells = <1>;
> diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
> index d537cd7..80afc8b 100644
> --- a/arch/arm/boot/dts/exynos5420.dtsi
> +++ b/arch/arm/boot/dts/exynos5420.dtsi
> @@ -206,6 +206,15 @@
>                 clock-names = "uart", "clk_uart_baud0";
>         };
>
> +       pwm: pwm@12dd0000 {
> +               compatible = "samsung,exynos4210-pwm";
> +               reg = <0x12dd0000 0x100>;
> +               samsung,pwm-outputs = <0>, <1>, <2>, <3>;
> +               #pwm-cells = <3>;
> +               clocks = <&clock 279>;
> +               clock-names = "timers";
> +       };
> +

Looking at the properties in the above 2 nodes, can't we have the
common ones defined in exynos5.dtsi?
Leela Krishna Amudala Oct. 10, 2013, 8:41 a.m. UTC | #2
Hi Sachin,

On Thu, Oct 10, 2013 at 11:18 AM, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Hi Leela,
>
> On 10 October 2013 11:12, Leela Krishna Amudala <l.krishna@samsung.com> wrote:
>> Add the device-tree binding for the PWM controller to Exynos5250 and Exynos5420
>>
>> Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
>> Signed-off-by: Olof Johansson <olofj@chromium.org>
>> Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
>> ---
>>  arch/arm/boot/dts/exynos5250.dtsi |    9 +++++++++
>>  arch/arm/boot/dts/exynos5420.dtsi |    9 +++++++++
>>  2 files changed, 18 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
>> index 864ae90..99abc72 100644
>> --- a/arch/arm/boot/dts/exynos5250.dtsi
>> +++ b/arch/arm/boot/dts/exynos5250.dtsi
>> @@ -521,6 +521,15 @@
>>                 };
>>         };
>>
>> +       pwm: pwm@12dd0000 {
>> +               compatible = "samsung,exynos4210-pwm";
>> +               reg = <0x12dd0000 0x100>;
>> +               samsung,pwm-outputs = <0>, <1>, <2>, <3>;
>> +               #pwm-cells = <3>;
>> +               clocks = <&clock 311>;
>> +               clock-names = "timers";
>> +       };
>> +
>>         amba {
>>                 #address-cells = <1>;
>>                 #size-cells = <1>;
>> diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
>> index d537cd7..80afc8b 100644
>> --- a/arch/arm/boot/dts/exynos5420.dtsi
>> +++ b/arch/arm/boot/dts/exynos5420.dtsi
>> @@ -206,6 +206,15 @@
>>                 clock-names = "uart", "clk_uart_baud0";
>>         };
>>
>> +       pwm: pwm@12dd0000 {
>> +               compatible = "samsung,exynos4210-pwm";
>> +               reg = <0x12dd0000 0x100>;
>> +               samsung,pwm-outputs = <0>, <1>, <2>, <3>;
>> +               #pwm-cells = <3>;
>> +               clocks = <&clock 279>;
>> +               clock-names = "timers";
>> +       };
>> +
>
> Looking at the properties in the above 2 nodes, can't we have the
> common ones defined in exynos5.dtsi?
>

Yes, we can do it, will change and post the next version

> --
> With warm regards,
> Sachin
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
kgene@kernel.org Nov. 12, 2013, 11:39 a.m. UTC | #3
Leela Krishna Amudala wrote:
> 
> Hi Sachin,
> 
> On Thu, Oct 10, 2013 at 11:18 AM, Sachin Kamat <sachin.kamat@linaro.org>
> wrote:
> > Hi Leela,
> >
> > On 10 October 2013 11:12, Leela Krishna Amudala <l.krishna@samsung.com>
> wrote:
> >> Add the device-tree binding for the PWM controller to Exynos5250 and
> Exynos5420
> >>
> >> Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
> >> Signed-off-by: Olof Johansson <olofj@chromium.org>
> >> Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
> >> ---
> >>  arch/arm/boot/dts/exynos5250.dtsi |    9 +++++++++
> >>  arch/arm/boot/dts/exynos5420.dtsi |    9 +++++++++
> >>  2 files changed, 18 insertions(+)
> >>
> >> diff --git a/arch/arm/boot/dts/exynos5250.dtsi
> b/arch/arm/boot/dts/exynos5250.dtsi
> >> index 864ae90..99abc72 100644
> >> --- a/arch/arm/boot/dts/exynos5250.dtsi
> >> +++ b/arch/arm/boot/dts/exynos5250.dtsi
> >> @@ -521,6 +521,15 @@
> >>                 };
> >>         };
> >>
> >> +       pwm: pwm@12dd0000 {
> >> +               compatible = "samsung,exynos4210-pwm";
> >> +               reg = <0x12dd0000 0x100>;
> >> +               samsung,pwm-outputs = <0>, <1>, <2>, <3>;
> >> +               #pwm-cells = <3>;
> >> +               clocks = <&clock 311>;
> >> +               clock-names = "timers";
> >> +       };
> >> +
> >>         amba {
> >>                 #address-cells = <1>;
> >>                 #size-cells = <1>;
> >> diff --git a/arch/arm/boot/dts/exynos5420.dtsi
> b/arch/arm/boot/dts/exynos5420.dtsi
> >> index d537cd7..80afc8b 100644
> >> --- a/arch/arm/boot/dts/exynos5420.dtsi
> >> +++ b/arch/arm/boot/dts/exynos5420.dtsi
> >> @@ -206,6 +206,15 @@
> >>                 clock-names = "uart", "clk_uart_baud0";
> >>         };
> >>
> >> +       pwm: pwm@12dd0000 {
> >> +               compatible = "samsung,exynos4210-pwm";
> >> +               reg = <0x12dd0000 0x100>;
> >> +               samsung,pwm-outputs = <0>, <1>, <2>, <3>;
> >> +               #pwm-cells = <3>;
> >> +               clocks = <&clock 279>;
> >> +               clock-names = "timers";
> >> +       };
> >> +
> >
> > Looking at the properties in the above 2 nodes, can't we have the
> > common ones defined in exynos5.dtsi?
> >
> 
Sorry for late, I missed...

Well, upcoming exynos5 SoC has different properties so would be better if we
could keep current version for pwm.

> Yes, we can do it, will change and post the next version
> 
Let me ignore your v2 patch and take this one.

Thanks,
Kukjin

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Leela Krishna Amudala Dec. 12, 2013, 11:35 a.m. UTC | #4
Hi Kukjin,

Even though you said it is applied, I didn't see this patch in any of
your trees.
Can you kindly look into this patch and take necessary action..?

Best Wishes,
Leela Krishna.

On Tue, Nov 12, 2013 at 8:39 PM, Kukjin Kim <kgene@kernel.org> wrote:
> Leela Krishna Amudala wrote:
>>
>> Hi Sachin,
>>
>> On Thu, Oct 10, 2013 at 11:18 AM, Sachin Kamat <sachin.kamat@linaro.org>
>> wrote:
>> > Hi Leela,
>> >
>> > On 10 October 2013 11:12, Leela Krishna Amudala <l.krishna@samsung.com>
>> wrote:
>> >> Add the device-tree binding for the PWM controller to Exynos5250 and
>> Exynos5420
>> >>
>> >> Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
>> >> Signed-off-by: Olof Johansson <olofj@chromium.org>
>> >> Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
>> >> ---
>> >>  arch/arm/boot/dts/exynos5250.dtsi |    9 +++++++++
>> >>  arch/arm/boot/dts/exynos5420.dtsi |    9 +++++++++
>> >>  2 files changed, 18 insertions(+)
>> >>
>> >> diff --git a/arch/arm/boot/dts/exynos5250.dtsi
>> b/arch/arm/boot/dts/exynos5250.dtsi
>> >> index 864ae90..99abc72 100644
>> >> --- a/arch/arm/boot/dts/exynos5250.dtsi
>> >> +++ b/arch/arm/boot/dts/exynos5250.dtsi
>> >> @@ -521,6 +521,15 @@
>> >>                 };
>> >>         };
>> >>
>> >> +       pwm: pwm@12dd0000 {
>> >> +               compatible = "samsung,exynos4210-pwm";
>> >> +               reg = <0x12dd0000 0x100>;
>> >> +               samsung,pwm-outputs = <0>, <1>, <2>, <3>;
>> >> +               #pwm-cells = <3>;
>> >> +               clocks = <&clock 311>;
>> >> +               clock-names = "timers";
>> >> +       };
>> >> +
>> >>         amba {
>> >>                 #address-cells = <1>;
>> >>                 #size-cells = <1>;
>> >> diff --git a/arch/arm/boot/dts/exynos5420.dtsi
>> b/arch/arm/boot/dts/exynos5420.dtsi
>> >> index d537cd7..80afc8b 100644
>> >> --- a/arch/arm/boot/dts/exynos5420.dtsi
>> >> +++ b/arch/arm/boot/dts/exynos5420.dtsi
>> >> @@ -206,6 +206,15 @@
>> >>                 clock-names = "uart", "clk_uart_baud0";
>> >>         };
>> >>
>> >> +       pwm: pwm@12dd0000 {
>> >> +               compatible = "samsung,exynos4210-pwm";
>> >> +               reg = <0x12dd0000 0x100>;
>> >> +               samsung,pwm-outputs = <0>, <1>, <2>, <3>;
>> >> +               #pwm-cells = <3>;
>> >> +               clocks = <&clock 279>;
>> >> +               clock-names = "timers";
>> >> +       };
>> >> +
>> >
>> > Looking at the properties in the above 2 nodes, can't we have the
>> > common ones defined in exynos5.dtsi?
>> >
>>
> Sorry for late, I missed...
>
> Well, upcoming exynos5 SoC has different properties so would be better if we
> could keep current version for pwm.
>
>> Yes, we can do it, will change and post the next version
>>
> Let me ignore your v2 patch and take this one.
>
> Thanks,
> Kukjin
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Kim Kukjin Dec. 18, 2013, 5:40 p.m. UTC | #5
On 12/12/13 20:35, Leela Krishna Amudala wrote:
> Hi Kukjin,
>
> Even though you said it is applied, I didn't see this patch in any of
> your trees.
> Can you kindly look into this patch and take necessary action..?
>
Applied, thanks.
Kukjin

> Best Wishes,
> Leela Krishna.
>
> On Tue, Nov 12, 2013 at 8:39 PM, Kukjin Kim<kgene@kernel.org>  wrote:
>> Leela Krishna Amudala wrote:
>>>
>>> Hi Sachin,
>>>
>>> On Thu, Oct 10, 2013 at 11:18 AM, Sachin Kamat<sachin.kamat@linaro.org>
>>> wrote:
>>>> Hi Leela,
>>>>
>>>> On 10 October 2013 11:12, Leela Krishna Amudala<l.krishna@samsung.com>
>>> wrote:
>>>>> Add the device-tree binding for the PWM controller to Exynos5250 and
>>> Exynos5420
>>>>>
>>>>> Signed-off-by: Andrew Bresticker<abrestic@chromium.org>
>>>>> Signed-off-by: Olof Johansson<olofj@chromium.org>
>>>>> Signed-off-by: Leela Krishna Amudala<l.krishna@samsung.com>
>>>>> ---
>>>>>   arch/arm/boot/dts/exynos5250.dtsi |    9 +++++++++
>>>>>   arch/arm/boot/dts/exynos5420.dtsi |    9 +++++++++
>>>>>   2 files changed, 18 insertions(+)
>>>>>
>>>>> diff --git a/arch/arm/boot/dts/exynos5250.dtsi
>>> b/arch/arm/boot/dts/exynos5250.dtsi
>>>>> index 864ae90..99abc72 100644
>>>>> --- a/arch/arm/boot/dts/exynos5250.dtsi
>>>>> +++ b/arch/arm/boot/dts/exynos5250.dtsi
>>>>> @@ -521,6 +521,15 @@
>>>>>                  };
>>>>>          };
>>>>>
>>>>> +       pwm: pwm@12dd0000 {
>>>>> +               compatible = "samsung,exynos4210-pwm";
>>>>> +               reg =<0x12dd0000 0x100>;
>>>>> +               samsung,pwm-outputs =<0>,<1>,<2>,<3>;
>>>>> +               #pwm-cells =<3>;
>>>>> +               clocks =<&clock 311>;
>>>>> +               clock-names = "timers";
>>>>> +       };
>>>>> +
>>>>>          amba {
>>>>>                  #address-cells =<1>;
>>>>>                  #size-cells =<1>;
>>>>> diff --git a/arch/arm/boot/dts/exynos5420.dtsi
>>> b/arch/arm/boot/dts/exynos5420.dtsi
>>>>> index d537cd7..80afc8b 100644
>>>>> --- a/arch/arm/boot/dts/exynos5420.dtsi
>>>>> +++ b/arch/arm/boot/dts/exynos5420.dtsi
>>>>> @@ -206,6 +206,15 @@
>>>>>                  clock-names = "uart", "clk_uart_baud0";
>>>>>          };
>>>>>
>>>>> +       pwm: pwm@12dd0000 {
>>>>> +               compatible = "samsung,exynos4210-pwm";
>>>>> +               reg =<0x12dd0000 0x100>;
>>>>> +               samsung,pwm-outputs =<0>,<1>,<2>,<3>;
>>>>> +               #pwm-cells =<3>;
>>>>> +               clocks =<&clock 279>;
>>>>> +               clock-names = "timers";
>>>>> +       };
>>>>> +
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index 864ae90..99abc72 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -521,6 +521,15 @@ 
 		};
 	};
 
+	pwm: pwm@12dd0000 {
+		compatible = "samsung,exynos4210-pwm";
+		reg = <0x12dd0000 0x100>;
+		samsung,pwm-outputs = <0>, <1>, <2>, <3>;
+		#pwm-cells = <3>;
+		clocks = <&clock 311>;
+		clock-names = "timers";
+	};
+
 	amba {
 		#address-cells = <1>;
 		#size-cells = <1>;
diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
index d537cd7..80afc8b 100644
--- a/arch/arm/boot/dts/exynos5420.dtsi
+++ b/arch/arm/boot/dts/exynos5420.dtsi
@@ -206,6 +206,15 @@ 
 		clock-names = "uart", "clk_uart_baud0";
 	};
 
+	pwm: pwm@12dd0000 {
+		compatible = "samsung,exynos4210-pwm";
+		reg = <0x12dd0000 0x100>;
+		samsung,pwm-outputs = <0>, <1>, <2>, <3>;
+		#pwm-cells = <3>;
+		clocks = <&clock 279>;
+		clock-names = "timers";
+	};
+
 	dp_phy: video-phy@10040728 {
 		compatible = "samsung,exynos5250-dp-video-phy";
 		reg = <0x10040728 4>;