Skip to content

Commit

Permalink
mvebu: fix RTC of IEI-World Puzzle M90x devices
Browse files Browse the repository at this point in the history
The Puzzle devices come with an I2C-connected Epson RX8130 RTC.
Disable the (dysfunctional) RTC units of the SoC and add driver
kmod-rtc-ds1307 to support the Epson RX8130 instead.

Tested-by: Thomas Huehn <[email protected]>
Signed-off-by: Daniel Golle <[email protected]>
(cherry picked from commit 6d546b3)
  • Loading branch information
dangowrt committed Dec 19, 2023
1 parent fd68317 commit 59fd8f0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@
};
};

&cp0_rtc {
status = "disabled";
};

&cp0_syscon0 {
cp0_pinctrl: pinctrl {
compatible = "marvell,cp115-standalone-pinctrl";
Expand Down Expand Up @@ -367,6 +371,10 @@
clock-frequency = <100000>;
};

&cp1_rtc {
status = "disabled";
};

&cp1_syscon0 {
cp1_pinctrl: pinctrl {
compatible = "marvell,cp115-standalone-pinctrl";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@
};
};

&cp0_rtc {
status = "disabled";
};

&cp0_syscon0 {
cp0_pinctrl: pinctrl {
compatible = "marvell,cp115-standalone-pinctrl";
Expand Down Expand Up @@ -423,6 +427,10 @@
clock-frequency = <100000>;
};

&cp1_rtc {
status = "disabled";
};

&cp1_syscon0 {
cp1_pinctrl: pinctrl {
compatible = "marvell,cp115-standalone-pinctrl";
Expand Down Expand Up @@ -551,6 +559,10 @@
};
};

&cp2_rtc {
status = "disabled";
};

&cp2_syscon0 {
cp2_pinctrl: pinctrl {
compatible = "marvell,cp115-standalone-pinctrl";
Expand Down
6 changes: 4 additions & 2 deletions target/linux/mvebu/image/cortexa72.mk
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,18 @@ TARGET_DEVICES += marvell_clearfog-gt-8k

define Device/iei_puzzle-m901
$(call Device/Default-arm64)
SOC := cn9131
DEVICE_VENDOR := iEi
DEVICE_MODEL := Puzzle-M901
SOC := cn9131
DEVICE_PACKAGES += kmod-rtc-ds1307
endef
TARGET_DEVICES += iei_puzzle-m901

define Device/iei_puzzle-m902
$(call Device/Default-arm64)
SOC := cn9132
DEVICE_VENDOR := iEi
DEVICE_MODEL := Puzzle-M902
SOC := cn9132
DEVICE_PACKAGES += kmod-rtc-ds1307
endef
TARGET_DEVICES += iei_puzzle-m902

0 comments on commit 59fd8f0

Please sign in to comment.