Skip to content

Commit e200719

Browse files
akanisetticfriedt
authored andcommitted
dts: x86: intel: panther_lake: Update RTC to support MFD method
Updated RTC to support MFD method on panther lake platform and board config to include alarm and update tests. -boards/intel/ptl/ -dts/x86/intel/ -tests/drivers/rtc/rtc_api/ Signed-off-by: Anisetti Avinash Krishna <[email protected]>
1 parent 5d02fac commit e200719

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

boards/intel/ptl/intel_ptl_h_crb.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
status = "okay";
3737
};
3838

39+
&mfd {
40+
status = "okay";
41+
};
42+
3943
&smbus0 {
4044
status = "okay";
4145
};

dts/x86/intel/panther_lake_h.dtsi

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,25 @@
302302
status = "disabled";
303303
};
304304

305-
rtc: counter: rtc@70 {
306-
compatible = "motorola,mc146818";
307-
reg = <0x70 0x0D 0x71 0x0D>;
308-
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
309-
interrupt-parent = <&intc>;
310-
alarms-count = <1>;
305+
mfd: mfd@70 {
306+
compatible = "motorola,mc146818-mfd";
307+
reg = <0x70 0x01 0x71 0x01 0x72 0x01 0x73 0x01>;
308+
309+
rtc: counter: rtc {
310+
compatible = "motorola,mc146818";
311+
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
312+
interrupt-parent = <&intc>;
313+
alarms-count = <1>;
314+
315+
status = "disabled";
316+
};
317+
318+
bbram: bbram {
319+
compatible = "motorola,mc146818-bbram";
320+
size = <241>;
321+
status = "disabled";
322+
};
323+
311324
status = "disabled";
312325
};
313326

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_RTC_ALARM=y
2+
CONFIG_RTC_UPDATE=y

0 commit comments

Comments
 (0)