Re: [patch 3/3] mpc8349emitx.dts: Add ds1339 RTC
From: Kumar Gala <hidden>
Date: 2007-09-24 06:13:05
On Sep 24, 2007, at 12:07 AM, David Gibson wrote:
On Fri, Sep 21, 2007 at 09:35:03AM +0200, Peter Korsgaard wrote:quoted
quoted
quoted
quoted
quoted
quoted
"Scott" == Scott Wood [off-list ref] writes:Hi, Scott> #size-cells is zero on i2c, so it should just be reg = <68>. Scott> You'll probably need to add #address-cells and #size-cells to the Scott> controller node, as well.Uh.. yes.. i2c interfaces should really always have #a and #s.quoted
Ahh - Thanks. This should be better. --- [PATCH] mpc8349emitx.dts: Add ds1339 RTC Add ds1339 I2C RTC chip as child of 2nd I2C controller. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> --- arch/powerpc/boot/dts/mpc8349emitx.dts | 9 +++++++++ 1 file changed, 9 insertions(+) Index: linux/arch/powerpc/boot/dts/mpc8349emitx.dts ===================================================================--- linux.orig/arch/powerpc/boot/dts/mpc8349emitx.dts +++ linux/arch/powerpc/boot/dts/mpc8349emitx.dts@@ -62,12 +62,21 @@ }; i2c@3100 { + #address-cells = <1>; + #size-cells = <0>; device_type = "i2c";Hrm... we probably want an "i2c" device_type class, but I don't think we've actually defined one, which is a prob
suggestions on how to handle this? We've described that fsl-i2c nodes in booting-without-of.txt should have it. (which may have been wrong at the time). - k
quoted
compatible = "fsl-i2c"; reg = <3100 100>; interrupts = <f 8>; interrupt-parent = < &ipic >; dfsrr;