Skip to content

Commit 9ec3de2

Browse files
committed
dts: x86: Added required modifications to support RTC MFD
Added required modifications to dtsi files to support Motorola, mc146818 MFD, Counter, RTC, and BBRAM (for supported devices). Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
1 parent 7c97b49 commit 9ec3de2

File tree

8 files changed

+119
-43
lines changed

8 files changed

+119
-43
lines changed

boards/intel/btl/intel_btl_s_crb.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
status = "okay";
3232
};
3333

34+
&mfd {
35+
status = "okay";
36+
};
37+
3438
&rtc {
3539
status = "okay";
3640
};

dts/x86/intel/alder_lake.dtsi

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,24 @@
404404
status = "okay";
405405
};
406406

407-
rtc: counter: rtc@70 {
408-
compatible = "motorola,mc146818";
409-
reg = <0x70 0x0D 0x71 0x0D>;
410-
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
411-
interrupt-parent = <&intc>;
412-
alarms-count = <1>;
407+
mfd: mfd@70 {
408+
compatible = "motorola,mc146818-mfd";
409+
reg = <0x70 0x01 0x71 0x01 0x72 0x01 0x73 0x01>;
410+
411+
rtc: counter: rtc {
412+
compatible = "motorola,mc146818";
413+
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
414+
interrupt-parent = <&intc>;
415+
alarms-count = <1>;
416+
417+
status = "okay";
418+
};
419+
420+
bbram: bbram {
421+
compatible = "motorola,mc146818-bbram";
422+
size = <241>;
423+
status = "okay";
424+
};
413425

414426
status = "okay";
415427
};

dts/x86/intel/apollo_lake.dtsi

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -389,15 +389,22 @@
389389
status = "okay";
390390
};
391391

392-
rtc: counter: rtc@70 {
393-
compatible = "motorola,mc146818";
394-
reg = <0x70 0x0D 0x71 0x0D>;
395-
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
396-
interrupt-parent = <&intc>;
397-
alarms-count = <1>;
392+
mfd: mfd@70 {
393+
compatible = "motorola,mc146818-mfd";
394+
reg = <0x70 0x01 0x71 0x01 0x72 0x01 0x73 0x01>;
395+
396+
rtc: counter: rtc {
397+
compatible = "motorola,mc146818";
398+
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
399+
interrupt-parent = <&intc>;
400+
alarms-count = <1>;
401+
402+
status = "okay";
403+
};
398404

399405
status = "okay";
400406
};
407+
401408
};
402409

403410
gpio_n: gpio-north {

dts/x86/intel/atom.dtsi

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,20 @@
7878
status = "disabled";
7979
};
8080

81-
rtc: counter: rtc@70 {
82-
compatible = "motorola,mc146818";
83-
reg = <0x70 0x0D 0x71 0x0D>;
84-
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
85-
interrupt-parent = <&intc>;
86-
alarms-count = <1>;
81+
mfd: mfd@70 {
82+
compatible = "motorola,mc146818-mfd";
83+
reg = <0x70 0x01 0x71 0x01 0x72 0x01 0x73 0x01>;
84+
85+
rtc: counter: rtc {
86+
compatible = "motorola,mc146818";
87+
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
88+
interrupt-parent = <&intc>;
89+
alarms-count = <1>;
90+
91+
status = "okay";
92+
};
8793

8894
status = "okay";
8995
};
90-
9196
};
9297
};

dts/x86/intel/bartlett_lake_s.dtsi

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -560,12 +560,24 @@
560560
status = "disabled";
561561
};
562562

563-
rtc: counter: rtc@70 {
564-
compatible = "motorola,mc146818";
565-
reg = <0x70 0x0D 0x71 0x0D>;
566-
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
567-
interrupt-parent = <&intc>;
568-
alarms-count = <1>;
563+
mfd: mfd@70 {
564+
compatible = "motorola,mc146818-mfd";
565+
reg = <0x70 0x01 0x71 0x01 0x72 0x01 0x73 0x01>;
566+
567+
rtc: counter: rtc {
568+
compatible = "motorola,mc146818";
569+
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
570+
interrupt-parent = <&intc>;
571+
alarms-count = <1>;
572+
573+
status = "disabled";
574+
};
575+
576+
bbram: bbram {
577+
compatible = "motorola,mc146818-bbram";
578+
size = <241>;
579+
status = "disabled";
580+
};
569581

570582
status = "disabled";
571583
};

dts/x86/intel/elkhart_lake.dtsi

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -710,12 +710,24 @@
710710
status = "disabled";
711711
};
712712

713-
rtc: counter: rtc@70 {
714-
compatible = "motorola,mc146818";
715-
reg = <0x70 0x0D 0x71 0x0D>;
716-
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
717-
interrupt-parent = <&intc>;
718-
alarms-count = <1>;
713+
mfd: mfd@70 {
714+
compatible = "motorola,mc146818-mfd";
715+
reg = <0x70 0x01 0x71 0x01 0x72 0x01 0x73 0x01>;
716+
717+
rtc: counter: rtc {
718+
compatible = "motorola,mc146818";
719+
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
720+
interrupt-parent = <&intc>;
721+
alarms-count = <1>;
722+
723+
status = "okay";
724+
};
725+
726+
bbram: bbram {
727+
compatible = "motorola,mc146818-bbram";
728+
size = <241>;
729+
status = "okay";
730+
};
719731

720732
status = "okay";
721733
};

dts/x86/intel/raptor_lake_p.dtsi

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,24 @@
435435
status = "okay";
436436
};
437437

438-
rtc: counter: rtc@70 {
439-
compatible = "motorola,mc146818";
440-
reg = <0x70 0x0D 0x71 0x0D>;
441-
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
442-
interrupt-parent = <&intc>;
443-
alarms-count = <1>;
438+
mfd: mfd@70 {
439+
compatible = "motorola,mc146818-mfd";
440+
reg = <0x70 0x01 0x71 0x01 0x72 0x01 0x73 0x01>;
441+
442+
rtc: counter: rtc {
443+
compatible = "motorola,mc146818";
444+
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
445+
interrupt-parent = <&intc>;
446+
alarms-count = <1>;
447+
448+
status = "okay";
449+
};
450+
451+
bbram: bbram {
452+
compatible = "motorola,mc146818-bbram";
453+
size = <241>;
454+
status = "okay";
455+
};
444456

445457
status = "okay";
446458
};

dts/x86/intel/raptor_lake_s.dtsi

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -543,12 +543,24 @@
543543
status = "okay";
544544
};
545545

546-
rtc: counter: rtc@70 {
547-
compatible = "motorola,mc146818";
548-
reg = <0x70 0x0D 0x71 0x0D>;
549-
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
550-
interrupt-parent = <&intc>;
551-
alarms-count = <1>;
546+
mfd: mfd@70 {
547+
compatible = "motorola,mc146818-mfd";
548+
reg = <0x70 0x01 0x71 0x01 0x72 0x01 0x73 0x01>;
549+
550+
rtc: counter: rtc {
551+
compatible = "motorola,mc146818";
552+
interrupts = <8 IRQ_TYPE_LOWEST_EDGE_RISING 3>;
553+
interrupt-parent = <&intc>;
554+
alarms-count = <1>;
555+
556+
status = "okay";
557+
};
558+
559+
bbram: bbram {
560+
compatible = "motorola,mc146818-bbram";
561+
size = <241>;
562+
status = "okay";
563+
};
552564

553565
status = "okay";
554566
};

0 commit comments

Comments
 (0)