OF support for tsc2007
I'm trying to use the TSC2007 (actually TSC2003) on a PowerPC based platform. Sadly, the current driver (as of .30-rc4) does not seem to be OF aware.
Jon Smirl on the PPC list suggested I ask here.
Any help or ideas?
n.b. at the moment, I'm not subscribed to this list, so please CC me on any replies.
Thanks
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 5 lines · Gary Thomas
I'm trying to use the TSC2007 (actually TSC2003) on a PowerPC based platform. Sadly, the current driver (as of .30-rc4) does not seem to be OF aware.
Jon Smirl on the PPC list suggested I ask here.
I thought you said it was an old-style driver that hadn't been converted to new style?
i2c drivers don't need to be OF aware. The code in drivers/of/of_i2c.c set things up for you. You need a driver tree entry like this:
i2c@3d40 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
cell-index = <1>;
reg = <0x3d40 0x40>;
interrupts = <0x2 0x10 0x0>;
interrupt-parent = <&mpc5200_pic>;
fsl5200-clocking;
rtc@51 {
device_type = "rtc";
compatible = "epson,rtc8564";
reg = <0x51>;
};
eeprom@52 {
compatible = "atmel,24c32", "eeprom";
reg = <0x52>;
};
};Quoted 18 lines
Any help or ideas?
n.b. at the moment, I'm not subscribed to this list, so please CC me on any replies.
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Jon Smirl [email protected]
Quoted 26 lines · Jon Smirl
Quoted 5 lines · Gary Thomas
I'm trying to use the TSC2007 (actually TSC2003) on a PowerPC based platform. Sadly, the current driver (as of .30-rc4) does not seem to be OF aware.
Jon Smirl on the PPC list suggested I ask here.
I thought you said it was an old-style driver that hadn't been converted to new style?
i2c drivers don't need to be OF aware. The code in
drivers/of/of_i2c.cset things up for you. You need a driver tree entry like this:i2c@3d40 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c"; cell-index = <1>; reg = <0x3d40 0x40>; interrupts = <0x2 0x10 0x0>; interrupt-parent = <&mpc5200_pic>; fsl5200-clocking; rtc@51 { device_type = "rtc";
Quoted 16 lines
compatible = "epson,rtc8564"; reg = <0x51>; }; eeprom@52 { compatible = "atmel,24c32", "eeprom"; reg = <0x52>; }; };Quoted 4 lines
Any help or ideas?
n.b. at the moment, I'm not subscribed to this list, so please CC me on any replies.
My question remains; how do I provide the platform_data this driver wants on an OF based platform?
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------