rtc: support for rv4162c7
PATCH 1/1 rtc: support for rv4162c7
This patch is for support of rv4162c7 RTC chip.
The device has same parameters as rv4162, but with different identification. Tested with PhyTec module AM335x.
--- drivers/rtc/rtc-m41t80.c | 1 + 1 file changed, 1 insertion(+)
drivers/rtc/rtc-m41t80.c +1 -0
@@ -81,6 +81,7 @@ static const struct i2c_device_id m41t80_id[] = { { "m41st85", M41T80_FEATURE_HT | M41T80_FEATURE_BL | M41T80_FEATURE_SQ }, { "m41st87", M41T80_FEATURE_HT | M41T80_FEATURE_BL | M41T80_FEATURE_SQ }, { "rv4162", M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT }, + { "rv4162c7", M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT }, { } };MODULE_DEVICE_TABLE (i2c, m41t80_id);
-- 1.9.1
Signature · 9 lines
-- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
Hi,
Quoted 4 lines · Tomas Krcka
This patch is for support of rv4162c7 RTC chip.
The device has same parameters as rv4162, but with different identification. Tested with PhyTec module AM335x.
Well, technically, it is an rv4162. rv4162-c7 is the only available one. So this patch is not necessary.
Quoted 20 lines
Signed-off-by Tomas Krcka <[email protected]>--- drivers/rtc/rtc-m41t80.c | 1 + 1 file changed, 1 insertion(+)drivers/rtc/rtc-m41t80.c +1
-1@@ -81,6 +81,7 @@ static const struct i2c_device_id m41t80_id[] = { { "m41st85", M41T80_FEATURE_HT | M41T80_FEATURE_BL | M41T80_FEATURE_SQ }, { "m41st87", M41T80_FEATURE_HT | M41T80_FEATURE_BL | M41T80_FEATURE_SQ }, { "rv4162", M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT }, + { "rv4162c7", M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT }, { } };MODULE_DEVICE_TABLE (i2c, m41t80_id); -- 1.9.1
Signature · 14 lines
Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
Hi,
that's correct, but idetification of this chip is rv4162c7 soi2c_match_id() returns NULL.
If it's there any workaround, how the chip can be detected automatically then OK, but without this patch it doesn't work for me.
2016-04-14 0:49 GMT+02:00 Alexandre Belloni
<[email protected]>:
Quoted 36 lines
Hi,
Quoted 4 lines · Tomas Krcka
This patch is for support of rv4162c7 RTC chip.
The device has same parameters as rv4162, but with different identification. Tested with PhyTec module AM335x.Well, technically, it is an rv4162. rv4162-c7 is the only available one. So this patch is not necessary.
Quoted 12 lines
Signed-off-by Tomas Krcka <[email protected]>--- drivers/rtc/rtc-m41t80.c | 1 + 1 file changed, 1 insertion(+)drivers/rtc/rtc-m41t80.c +0
-0drivers/rtc/rtc-m41t80.c static const struct i2c_device_id m41t80_id[] = {
Quoted 8 lines
drivers/rtc/rtc-m41t80.c +1
-1@@ -81,6 +81,7 @@ static const struct i2c_device_id m41t80_id[] = { { "m41st85", M41T80_FEATURE_HT | M41T80_FEATURE_BL | M41T80_FEATURE_SQ }, { "m41st87", M41T80_FEATURE_HT | M41T80_FEATURE_BL | M41T80_FEATURE_SQ }, { "rv4162", M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT }, + { "rv4162c7", M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT }, { } };MODULE_DEVICE_TABLE (i2c, m41t80_id); -- 1.9.1--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Signature · 9 lines
-- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
Hi,
Quoted 6 lines · Tomas Krcka
Hi,
that's correct, but idetification of this chip is rv4162c7 soi2c_match_id()returns NULL.
If it's there any workaround, how the chip can be detected automatically then OK, but without this patch it doesn't work for me.
Just use rv4162 as your compatible string. That is what the mainline dtsi is doing for the phycore som:
$ grep -C 2 rv4162 arch/arm/boot/dts/am335x-phycore-som.dtsi
i2c_rtc: rtc@68 {
compatible = "rv4162";
reg = <0x68>;
status = "disabled";Quoted 38 lines
2016-04-14 0:49 GMT+02:00 Alexandre Belloni
<[email protected]>:Quoted 36 lines
Hi,
Quoted 4 lines · Tomas Krcka
This patch is for support of rv4162c7 RTC chip.
The device has same parameters as rv4162, but with different identification. Tested with PhyTec module AM335x.Well, technically, it is an rv4162. rv4162-c7 is the only available one. So this patch is not necessary.
Quoted 12 lines
Signed-off-by Tomas Krcka <[email protected]>--- drivers/rtc/rtc-m41t80.c | 1 + 1 file changed, 1 insertion(+)drivers/rtc/rtc-m41t80.c +0
-0drivers/rtc/rtc-m41t80.c static const struct i2c_device_id m41t80_id[] = {
Quoted 8 lines
drivers/rtc/rtc-m41t80.c +1
-1@@ -81,6 +81,7 @@ static const struct i2c_device_id m41t80_id[] = { { "m41st85", M41T80_FEATURE_HT | M41T80_FEATURE_BL | M41T80_FEATURE_SQ }, { "m41st87", M41T80_FEATURE_HT | M41T80_FEATURE_BL | M41T80_FEATURE_SQ }, { "rv4162", M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT }, + { "rv4162c7", M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT }, { } };MODULE_DEVICE_TABLE (i2c, m41t80_id); -- 1.9.1--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Signature · 14 lines
Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
Hi,
ok, good. Thanks.
Patch is not needed.
2016-04-14 9:19 GMT+02:00 Alexandre Belloni
<[email protected]>:
Quoted 64 lines
Hi,
Quoted 6 lines · Tomas Krcka
Hi,
that's correct, but idetification of this chip is rv4162c7 soi2c_match_id()returns NULL.
If it's there any workaround, how the chip can be detected automatically then OK, but without this patch it doesn't work for me.Just use rv4162 as your compatible string. That is what the mainline dtsi is doing for the phycore som:
$ grep -C 2 rv4162 arch/arm/boot/dts/am335x-phycore-som.dtsii2c_rtc: rtc@68 { compatible = "rv4162"; reg = <0x68>; status = "disabled";Quoted 38 lines
2016-04-14 0:49 GMT+02:00 Alexandre Belloni
<[email protected]>:Quoted 36 lines
Hi,
Quoted 4 lines · Tomas Krcka
This patch is for support of rv4162c7 RTC chip.
The device has same parameters as rv4162, but with different identification. Tested with PhyTec module AM335x.Well, technically, it is an rv4162. rv4162-c7 is the only available one. So this patch is not necessary.
Quoted 12 lines
Signed-off-by Tomas Krcka <[email protected]>--- drivers/rtc/rtc-m41t80.c | 1 + 1 file changed, 1 insertion(+)drivers/rtc/rtc-m41t80.c +0
-0drivers/rtc/rtc-m41t80.c static const struct i2c_device_id m41t80_id[] = {
Quoted 8 lines
drivers/rtc/rtc-m41t80.c +1
-1@@ -81,6 +81,7 @@ static const struct i2c_device_id m41t80_id[] = { { "m41st85", M41T80_FEATURE_HT | M41T80_FEATURE_BL | M41T80_FEATURE_SQ }, { "m41st87", M41T80_FEATURE_HT | M41T80_FEATURE_BL | M41T80_FEATURE_SQ }, { "rv4162", M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT }, + { "rv4162c7", M41T80_FEATURE_SQ | M41T80_FEATURE_WD | M41T80_FEATURE_SQ_ALT }, { } };MODULE_DEVICE_TABLE (i2c, m41t80_id); -- 1.9.1--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Signature · 9 lines
-- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.