Skip to content

Commit 2ec4927

Browse files
committed
Merge tag 'at91-dt-5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into arm/dt
AT91 DT #2 for 5.16: - Add DT nodes for TCB and RTC blocks on SAMA7G5 - Add TCB0 for clocksource and clockevent functionality fallback only in case PIT64B will fail to probe and as a testbed for this feature on the Evaluation Kit. * tag 'at91-dt-5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux: ARM: dts: at91: sama7g5-ek: use blocks 0 and 1 of TCB0 as cs and ce ARM: dts: at91: sama7g5: add tcb nodes ARM: dts: at91: sama7g5: add rtc node Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 2d3de19 + f3c0366 commit 2ec4927

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

arch/arm/boot/dts/at91-sama7g5ek.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,18 @@
654654
status = "okay";
655655
};
656656

657+
&tcb0 {
658+
timer0: timer@0 {
659+
compatible = "atmel,tcb-timer";
660+
reg = <0>;
661+
};
662+
663+
timer1: timer@1 {
664+
compatible = "atmel,tcb-timer";
665+
reg = <1>;
666+
};
667+
};
668+
657669
&trng {
658670
status = "okay";
659671
};

arch/arm/boot/dts/sama7g5.dtsi

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,30 @@
130130
reg = <0xe001d060 0x48>;
131131
};
132132

133+
rtc: rtc@e001d0a8 {
134+
compatible = "microchip,sama7g5-rtc", "microchip,sam9x60-rtc";
135+
reg = <0xe001d0a8 0x30>;
136+
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
137+
clocks = <&clk32k 1>;
138+
};
139+
133140
ps_wdt: watchdog@e001d180 {
134141
compatible = "microchip,sama7g5-wdt";
135142
reg = <0xe001d180 0x24>;
136143
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
137144
clocks = <&clk32k 0>;
138145
};
139146

147+
tcb1: timer@e0800000 {
148+
compatible = "atmel,sama5d2-tcb", "simple-mfd", "syscon";
149+
#address-cells = <1>;
150+
#size-cells = <0>;
151+
reg = <0xe0800000 0x100>;
152+
interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
153+
clocks = <&pmc PMC_TYPE_PERIPHERAL 91>, <&pmc PMC_TYPE_PERIPHERAL 92>, <&pmc PMC_TYPE_PERIPHERAL 93>, <&clk32k 1>;
154+
clock-names = "t0_clk", "t1_clk", "t2_clk", "slow_clk";
155+
};
156+
140157
adc: adc@e1000000 {
141158
compatible = "microchip,sama7g5-adc";
142159
reg = <0xe1000000 0x200>;
@@ -454,6 +471,16 @@
454471
status = "disabled";
455472
};
456473

474+
tcb0: timer@e2814000 {
475+
compatible = "atmel,sama5d2-tcb", "simple-mfd", "syscon";
476+
#address-cells = <1>;
477+
#size-cells = <0>;
478+
reg = <0xe2814000 0x100>;
479+
interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
480+
clocks = <&pmc PMC_TYPE_PERIPHERAL 88>, <&pmc PMC_TYPE_PERIPHERAL 89>, <&pmc PMC_TYPE_PERIPHERAL 90>, <&clk32k 1>;
481+
clock-names = "t0_clk", "t1_clk", "t2_clk", "slow_clk";
482+
};
483+
457484
flx8: flexcom@e2818000 {
458485
compatible = "atmel,sama5d2-flexcom";
459486
reg = <0xe2818000 0x200>;

0 commit comments

Comments
 (0)