Skip to content

Commit d1425ef

Browse files
akanisettihenrikbrixandersen
authored andcommitted
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 <[email protected]>
1 parent 08b8f3c commit d1425ef

File tree

8 files changed

+119
-42
lines changed

8 files changed

+119
-42
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
@@ -430,12 +430,24 @@
430430
status = "okay";
431431
};
432432

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

440452
status = "okay";
441453
};

dts/x86/intel/apollo_lake.dtsi

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

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

397403
status = "okay";
398404
};
405+
399406
};
400407

401408
gpio_n: gpio-north {

dts/x86/intel/atom.dtsi

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,18 @@
7777
status = "disabled";
7878
};
7979

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

8793
status = "okay";
8894
};

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
@@ -708,12 +708,24 @@
708708
status = "disabled";
709709
};
710710

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

718730
status = "okay";
719731
};

dts/x86/intel/raptor_lake_p.dtsi

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

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

444456
status = "okay";
445457
};

dts/x86/intel/raptor_lake_s.dtsi

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

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

552564
status = "okay";
553565
};

0 commit comments

Comments
 (0)