[openwrt/openwrt] mvebu: fix RTC of IEI-World Puzzle M90x devices
LEDE Commits
lede-commits at lists.infradead.org
Mon Dec 18 18:55:37 PST 2023
dangole pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/59fd8f08cf544a7f0fcaf700ca9af9292de3adcc
commit 59fd8f08cf544a7f0fcaf700ca9af9292de3adcc
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Mon Dec 18 21:22:12 2023 +0000
mvebu: fix RTC of IEI-World Puzzle M90x devices
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 <thomas.huehn at hs-nordhausen.de>
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
(cherry picked from commit 6d546b3b4cdae3ffcdad71fb6cc414f3a39bc09e)
---
.../files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts | 8 ++++++++
.../files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts | 12 ++++++++++++
target/linux/mvebu/image/cortexa72.mk | 6 ++++--
3 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts
index 0ad25fafbb..5bc3a846e0 100644
--- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts
+++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts
@@ -244,6 +244,10 @@
};
};
+&cp0_rtc {
+ status = "disabled";
+};
+
&cp0_syscon0 {
cp0_pinctrl: pinctrl {
compatible = "marvell,cp115-standalone-pinctrl";
@@ -367,6 +371,10 @@
clock-frequency = <100000>;
};
+&cp1_rtc {
+ status = "disabled";
+};
+
&cp1_syscon0 {
cp1_pinctrl: pinctrl {
compatible = "marvell,cp115-standalone-pinctrl";
diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
index 398e53a5f9..671b592e67 100644
--- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
+++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
@@ -302,6 +302,10 @@
};
};
+&cp0_rtc {
+ status = "disabled";
+};
+
&cp0_syscon0 {
cp0_pinctrl: pinctrl {
compatible = "marvell,cp115-standalone-pinctrl";
@@ -423,6 +427,10 @@
clock-frequency = <100000>;
};
+&cp1_rtc {
+ status = "disabled";
+};
+
&cp1_syscon0 {
cp1_pinctrl: pinctrl {
compatible = "marvell,cp115-standalone-pinctrl";
@@ -551,6 +559,10 @@
};
};
+&cp2_rtc {
+ status = "disabled";
+};
+
&cp2_syscon0 {
cp2_pinctrl: pinctrl {
compatible = "marvell,cp115-standalone-pinctrl";
diff --git a/target/linux/mvebu/image/cortexa72.mk b/target/linux/mvebu/image/cortexa72.mk
index 47d958b2fd..26b02e1924 100644
--- a/target/linux/mvebu/image/cortexa72.mk
+++ b/target/linux/mvebu/image/cortexa72.mk
@@ -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
More information about the lede-commits
mailing list