Skip to content

Commit

Permalink
boards: atmel: sam0: Add rtc configs
Browse files Browse the repository at this point in the history
Add configurations to allow use of RTC driver and tests.

Signed-off-by: Gerson Fernando Budke <[email protected]>
  • Loading branch information
nandojve committed Nov 27, 2024
1 parent cc9aa9f commit fabf544
Show file tree
Hide file tree
Showing 14 changed files with 57 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boards/atmel/sam0/samc21n_xpro/samc21n_xpro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@
pinctrl-names = "default";
};

&rtc {
status = "okay";
counter-mode = "clock";
prescaler = <1024>;

assigned-clocks = <&osc32kctrl 4>;
};

&sercom0 {
status = "okay";
compatible = "atmel,sam0-uart";
Expand Down
1 change: 1 addition & 0 deletions boards/atmel/sam0/samc21n_xpro/samc21n_xpro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- gpio
- i2c
- pwm
- rtc
- spi
- uart
vendor: atmel
6 changes: 6 additions & 0 deletions boards/atmel/sam0/samd20_xpro/samd20_xpro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
clock-frequency = <DT_FREQ_M(48)>;
};

&rtc {
status = "okay";
counter-mode = "clock";
prescaler = <1024>;
};

&sercom0 {
status = "okay";
compatible = "atmel,sam0-spi";
Expand Down
1 change: 1 addition & 0 deletions boards/atmel/sam0/samd20_xpro/samd20_xpro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ supported:
- flash
- gpio
- i2c
- rtc
- spi
- uart
- watchdog
Expand Down
6 changes: 6 additions & 0 deletions boards/atmel/sam0/samd21_xpro/samd21_xpro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
pinctrl-names = "default";
};

&rtc {
status = "okay";
counter-mode = "clock";
prescaler = <1024>;
};

&sercom0 {
status = "okay";
compatible = "atmel,sam0-uart";
Expand Down
1 change: 1 addition & 0 deletions boards/atmel/sam0/samd21_xpro/samd21_xpro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported:
- gpio
- i2c
- pwm
- rtc
- spi
- uart
- usb_device
Expand Down
8 changes: 8 additions & 0 deletions boards/atmel/sam0/same54_xpro/same54_xpro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@
pinctrl-names = "default";
};

&rtc {
status = "okay";
counter-mode = "clock";
prescaler = <1024>;

assigned-clocks = <&osc32kctrl 4>;
};

&sercom2 {
status = "okay";
compatible = "atmel,sam0-uart";
Expand Down
1 change: 1 addition & 0 deletions boards/atmel/sam0/same54_xpro/same54_xpro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- i2c
- netif:eth
- pwm
- rtc
- spi
- uart
- usb_device
Expand Down
8 changes: 8 additions & 0 deletions boards/atmel/sam0/saml21_xpro/saml21_xpro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@
pinctrl-names = "default";
};

&rtc {
status = "okay";
counter-mode = "clock";
prescaler = <1024>;

assigned-clocks = <&osc32kctrl 4>;
};

&sercom0 {
status = "okay";
compatible = "atmel,sam0-spi";
Expand Down
1 change: 1 addition & 0 deletions boards/atmel/sam0/saml21_xpro/saml21_xpro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- gpio
- i2c
- pwm
- rtc
- spi
- uart
- usb_device
Expand Down
6 changes: 6 additions & 0 deletions boards/atmel/sam0/samr21_xpro/samr21_xpro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@
pinctrl-names = "default";
};

&rtc {
status = "okay";
counter-mode = "clock";
prescaler = <1024>;
};

&sercom0 {
status = "okay";
compatible = "atmel,sam0-uart";
Expand Down
1 change: 1 addition & 0 deletions boards/atmel/sam0/samr21_xpro/samr21_xpro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ supported:
- i2c
- netif
- pwm
- rtc
- spi
- uart
- usb_device
Expand Down
8 changes: 8 additions & 0 deletions boards/atmel/sam0/samr34_xpro/samr34_xpro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@
pinctrl-names = "default";
};

&rtc {
status = "okay";
counter-mode = "clock";
prescaler = <1024>;

assigned-clocks = <&osc32kctrl 4>;
};

&sercom0 {
status = "okay";
compatible = "atmel,sam0-uart";
Expand Down
1 change: 1 addition & 0 deletions boards/atmel/sam0/samr34_xpro/samr34_xpro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ supported:
- gpio
- i2c
- pwm
- rtc
- spi
- uart
- usb_device
Expand Down

0 comments on commit fabf544

Please sign in to comment.