Commit c0e4eb2d authored by Anton Vorontsov's avatar Anton Vorontsov Committed by Kumar Gala

[POWERPC] MPC8568E-MDS: add support for ds1374 rtc

MPC8568E-MDS have DS1374 chip on the I2C bus, thus let's use it.
This patch also adds #address-cells and #size-cells to the I2C
controllers nodes.

p.s. DS1374 rtc class driver is in the -mm tree, its name is
rtc-rtc-class-driver-for-the-ds1374.patch.
Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent da1bb3a0
...@@ -72,15 +72,24 @@ l2-cache-controller@20000 { ...@@ -72,15 +72,24 @@ l2-cache-controller@20000 {
}; };
i2c@3000 { i2c@3000 {
#address-cells = <1>;
#size-cells = <0>;
device_type = "i2c"; device_type = "i2c";
compatible = "fsl-i2c"; compatible = "fsl-i2c";
reg = <3000 100>; reg = <3000 100>;
interrupts = <2b 2>; interrupts = <2b 2>;
interrupt-parent = <&mpic>; interrupt-parent = <&mpic>;
dfsrr; dfsrr;
rtc@68 {
compatible = "dallas,ds1374";
reg = <68>;
};
}; };
i2c@3100 { i2c@3100 {
#address-cells = <1>;
#size-cells = <0>;
device_type = "i2c"; device_type = "i2c";
compatible = "fsl-i2c"; compatible = "fsl-i2c";
reg = <3100 100>; reg = <3100 100>;
......
...@@ -337,6 +337,7 @@ static struct i2c_driver_device i2c_devices[] __initdata = { ...@@ -337,6 +337,7 @@ static struct i2c_driver_device i2c_devices[] __initdata = {
{"dallas,ds1339", "rtc-ds1307", "ds1339",}, {"dallas,ds1339", "rtc-ds1307", "ds1339",},
{"dallas,ds1340", "rtc-ds1307", "ds1340",}, {"dallas,ds1340", "rtc-ds1307", "ds1340",},
{"stm,m41t00", "rtc-ds1307", "m41t00"}, {"stm,m41t00", "rtc-ds1307", "m41t00"},
{"dallas,ds1374", "rtc-ds1374", "rtc-ds1374",},
}; };
static int __init of_find_i2c_driver(struct device_node *node, static int __init of_find_i2c_driver(struct device_node *node,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment