Skip to content

Commit

Permalink
Merge pull request torvalds#239 from vamrs-feng/linux-5.10-gen-rkr4.1
Browse files Browse the repository at this point in the history
Changes:
  * Fix Radxa CM3/CM3I RTC issues.

Signed-off-by: Stephen Chen <stephen@radxa.com>
  • Loading branch information
RadxaStephen authored Nov 16, 2023
2 parents c07bdde + 116cc4a commit fd3f360
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@
};
};

&rk817 {
rtc {
status = "disabled";
};
};

&soc_thermal {
sustainable-power = <5000>; /* milliwatts */
cooling-maps {
Expand Down
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i-io.dts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,12 @@
};
};

&rk809 {
rtc {
status = "disabled";
};
};

&uart5 {
status = "okay";
pinctrl-names = "default";
Expand Down
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-hym8563.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ static int hym8563_init_device(struct i2c_client *client)
/* Clear stop flag if present */
ret = i2c_smbus_write_byte_data(client, HYM8563_CTL1, 0);
if (ret < 0)
return ret;
return -EPROBE_DEFER;

ret = i2c_smbus_read_byte_data(client, HYM8563_CTL2);
if (ret < 0)
Expand Down
2 changes: 2 additions & 0 deletions drivers/rtc/rtc-rk808.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ static int rk808_rtc_probe(struct platform_device *pdev)
switch (rk808->variant) {
case RK805_ID:
case RK808_ID:
case RK809_ID:
case RK816_ID:
case RK817_ID:
case RK818_ID:
np = of_get_child_by_name(pdev->dev.parent->of_node, "rtc");
if (np && !of_device_is_available(np)) {
Expand Down

0 comments on commit fd3f360

Please sign in to comment.