Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: pm8xxx: Add RTC support for PMIC PMK8350

Add the comaptible string for PMIC PMK8350.

Signed-off-by: satya priya <skakit@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1617976766-7852-2-git-send-email-skakit@codeaurora.org

authored by

satya priya and committed by
Alexandre Belloni
c8f0ca8b c52409eb

+11
+11
drivers/rtc/rtc-pm8xxx.c
··· 445 445 .alarm_en = BIT(7), 446 446 }; 447 447 448 + static const struct pm8xxx_rtc_regs pmk8350_regs = { 449 + .ctrl = 0x6146, 450 + .write = 0x6140, 451 + .read = 0x6148, 452 + .alarm_rw = 0x6240, 453 + .alarm_ctrl = 0x6246, 454 + .alarm_ctrl2 = 0x6248, 455 + .alarm_en = BIT(7), 456 + }; 457 + 448 458 /* 449 459 * Hardcoded RTC bases until IORESOURCE_REG mapping is figured out 450 460 */ ··· 463 453 { .compatible = "qcom,pm8018-rtc", .data = &pm8921_regs }, 464 454 { .compatible = "qcom,pm8058-rtc", .data = &pm8058_regs }, 465 455 { .compatible = "qcom,pm8941-rtc", .data = &pm8941_regs }, 456 + { .compatible = "qcom,pmk8350-rtc", .data = &pmk8350_regs }, 466 457 { }, 467 458 }; 468 459 MODULE_DEVICE_TABLE(of, pm8xxx_id_table);