Commit ac9e22f4 authored by Frieder Schrempf's avatar Frieder Schrempf Committed by Shawn Guo

arm64: dts: imx8mm-kontron: Add RTC aliases

Add aliases for the RTCs on the board and on the SoC. This ensures that
the primary RTC is always the one on the board that has a buffered supply
and maximum accuracy.
Signed-off-by: default avatarFrieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 1eea795b
...@@ -13,6 +13,8 @@ / { ...@@ -13,6 +13,8 @@ / {
aliases { aliases {
ethernet1 = &usbnet; ethernet1 = &usbnet;
rtc0 = &rx8900;
rtc1 = &snvs_rtc;
}; };
/* fixed crystal dedicated to mcp2515 */ /* fixed crystal dedicated to mcp2515 */
...@@ -136,7 +138,7 @@ &i2c4 { ...@@ -136,7 +138,7 @@ &i2c4 {
pinctrl-0 = <&pinctrl_i2c4>; pinctrl-0 = <&pinctrl_i2c4>;
status = "okay"; status = "okay";
rtc@32 { rx8900: rtc@32 {
compatible = "epson,rx8900"; compatible = "epson,rx8900";
reg = <0x32>; reg = <0x32>;
}; };
......
...@@ -10,6 +10,11 @@ / { ...@@ -10,6 +10,11 @@ / {
model = "Kontron OSM-S i.MX8MM (N802X SOM)"; model = "Kontron OSM-S i.MX8MM (N802X SOM)";
compatible = "kontron,imx8mm-osm-s", "fsl,imx8mm"; compatible = "kontron,imx8mm-osm-s", "fsl,imx8mm";
aliases {
rtc0 = &rv3028;
rtc1 = &snvs_rtc;
};
memory@40000000 { memory@40000000 {
device_type = "memory"; device_type = "memory";
/* /*
...@@ -200,7 +205,7 @@ reg_nvcc_sd: LDO5 { ...@@ -200,7 +205,7 @@ reg_nvcc_sd: LDO5 {
}; };
}; };
rtc@52 { rv3028: rtc@52 {
compatible = "microcrystal,rv3028"; compatible = "microcrystal,rv3028";
reg = <0x52>; reg = <0x52>;
pinctrl-names = "default"; pinctrl-names = "default";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment