linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/4] powerpc: Add the ds1374 RTC to the mpc8349emds device tree.
@ 2006-12-07 17:34 Scott Wood
  2006-12-07 21:32 ` [PATCH 2/4] powerpc: Add the ds1374 RTC to the mpc8349emds devicetree Joakim Tjernlund
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Wood @ 2006-12-07 17:34 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: i2c

Signed-off-by: Scott Wood <scottwood@freescale.com>
---
 arch/powerpc/boot/dts/mpc8349emds.dts |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8349emds.dts b/arch/powerpc/boot/dts/mpc8349emds.dts
index 50f4886..889a5b8 100644
--- a/arch/powerpc/boot/dts/mpc8349emds.dts
+++ b/arch/powerpc/boot/dts/mpc8349emds.dts
@@ -55,12 +55,22 @@
 		};
 
 		i2c@3000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
 			device_type = "i2c";
 			compatible = "fsl-i2c";
 			reg = <3000 100>;
 			interrupts = <e 8>;
 			interrupt-parent = <700>;
 			dfsrr;
+
+			rtc@68 {
+				device_type = "rtc";
+				compatible = "ds1374";
+				reg = <68>;
+				interrupts = <13 8>;
+				interrupt-parent = <700>;
+			};
 		};
 
 		i2c@3100 {
-- 
1.4.2.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH 2/4] powerpc: Add the ds1374 RTC to the mpc8349emds devicetree.
  2006-12-07 17:34 [PATCH 2/4] powerpc: Add the ds1374 RTC to the mpc8349emds device tree Scott Wood
@ 2006-12-07 21:32 ` Joakim Tjernlund
  2006-12-07 21:39   ` Sergei Shtylyov
  0 siblings, 1 reply; 3+ messages in thread
From: Joakim Tjernlund @ 2006-12-07 21:32 UTC (permalink / raw)
  To: 'Scott Wood', linuxppc-dev; +Cc: i2c

> -----Original Message-----
> From: 
> linuxppc-dev-bounces+joakim.tjernlund=transmode.se@ozlabs.org 
> [mailto:linuxppc-dev-bounces+joakim.tjernlund=transmode.se@ozl
> abs.org] On Behalf Of Scott Wood
> Sent: den 7 december 2006 18:35
> To: linuxppc-dev@ozlabs.org
> Cc: i2c@lm-sensors.org
> Subject: [PATCH 2/4] powerpc: Add the ds1374 RTC to the 
> mpc8349emds devicetree.
> 
> Signed-off-by: Scott Wood <scottwood@freescale.com>
> ---
>  arch/powerpc/boot/dts/mpc8349emds.dts |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/powerpc/boot/dts/mpc8349emds.dts 
> b/arch/powerpc/boot/dts/mpc8349emds.dts
> index 50f4886..889a5b8 100644
> --- a/arch/powerpc/boot/dts/mpc8349emds.dts
> +++ b/arch/powerpc/boot/dts/mpc8349emds.dts
> @@ -55,12 +55,22 @@
>  		};
>  
>  		i2c@3000 {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
>  			device_type = "i2c";
>  			compatible = "fsl-i2c";
>  			reg = <3000 100>;
>  			interrupts = <e 8>;
>  			interrupt-parent = <700>;
>  			dfsrr;
> +
> +			rtc@68 {
> +				device_type = "rtc";
> +				compatible = "ds1374";
> +				reg = <68>;
> +				interrupts = <13 8>;
> +				interrupt-parent = <700>;
> +			};
>  		};
>  
>  		i2c@3100 {
> -- 
> 1.4.2.3

Nice, I have a question/request though:

I have a ds1337 I2C RTC and to make the current rtc-ds1307 do
the right thing, I need to pass module param
rtc-ds1307.force=0,0x68

I would need some way to tell rtc-ds1307 that I have
a ds1337 device from my dts spec.

 Jocke

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/4] powerpc: Add the ds1374 RTC to the mpc8349emds devicetree.
  2006-12-07 21:32 ` [PATCH 2/4] powerpc: Add the ds1374 RTC to the mpc8349emds devicetree Joakim Tjernlund
@ 2006-12-07 21:39   ` Sergei Shtylyov
  0 siblings, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2006-12-07 21:39 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: linuxppc-dev, i2c

Hello.

Joakim Tjernlund wrote:

>>Signed-off-by: Scott Wood <scottwood@freescale.com>
>>---
>> arch/powerpc/boot/dts/mpc8349emds.dts |   10 ++++++++++
>> 1 files changed, 10 insertions(+), 0 deletions(-)

>>diff --git a/arch/powerpc/boot/dts/mpc8349emds.dts 
>>b/arch/powerpc/boot/dts/mpc8349emds.dts
>>index 50f4886..889a5b8 100644
>>--- a/arch/powerpc/boot/dts/mpc8349emds.dts
>>+++ b/arch/powerpc/boot/dts/mpc8349emds.dts
>>@@ -55,12 +55,22 @@
>> 		};
>> 
>> 		i2c@3000 {
>>+			#address-cells = <1>;
>>+			#size-cells = <0>;
>> 			device_type = "i2c";
>> 			compatible = "fsl-i2c";
>> 			reg = <3000 100>;
>> 			interrupts = <e 8>;
>> 			interrupt-parent = <700>;
>> 			dfsrr;
>>+
>>+			rtc@68 {
>>+				device_type = "rtc";
>>+				compatible = "ds1374";
>>+				reg = <68>;
>>+				interrupts = <13 8>;
>>+				interrupt-parent = <700>;
>>+			};
>> 		};
>> 
>> 		i2c@3100 {
>>-- 
>>1.4.2.3

> Nice, I have a question/request though:

> I have a ds1337 I2C RTC and to make the current rtc-ds1307 do
> the right thing, I need to pass module param
> rtc-ds1307.force=0,0x68

> I would need some way to tell rtc-ds1307 that I have
> a ds1337 device from my dts spec.

    That must be achievable by specifiying the "model" property...

>  Jocke

WBR, Sergei

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-12-07 21:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-07 17:34 [PATCH 2/4] powerpc: Add the ds1374 RTC to the mpc8349emds device tree Scott Wood
2006-12-07 21:32 ` [PATCH 2/4] powerpc: Add the ds1374 RTC to the mpc8349emds devicetree Joakim Tjernlund
2006-12-07 21:39   ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).