From e636bcf00e4a710ab0a13446676095874ca516f8 Mon Sep 17 00:00:00 2001 From: Thorsten Maerz Date: Fri, 31 Jan 2025 17:22:24 +0100 Subject: [PATCH] add overlay for enabling "end1" network adapter Overlay for testing purposes: There is a strange interaction between that ethernet adapter and the rtc (it runs better -but still not well- with the ethernet adapter enabled). --- patch/kernel/archive/rockchip64-6.12/overlay/Makefile | 1 + .../rockchip64-6.12/overlay/README.rockchip-overlays | 8 ++++++++ .../rockchip-rk3328-mksklipad50-enable-rtc-end1.dtso | 7 +++++++ 3 files changed, 16 insertions(+) create mode 100644 patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3328-mksklipad50-enable-rtc-end1.dtso diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/Makefile b/patch/kernel/archive/rockchip64-6.12/overlay/Makefile index 1eb5abf8a8..77bcc5643b 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/Makefile +++ b/patch/kernel/archive/rockchip64-6.12/overlay/Makefile @@ -20,6 +20,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \ rockchip-rk3318-box-wlan-ext.dtbo \ rockchip-rk3328-i2c0.dtbo \ rockchip-rk3328-i2s1-pcm5102.dtbo \ + rockchip-rk3328-mksklipad50-enable-rtc-end1.dtbo \ rockchip-rk3328-mkspi-disable-lcd-spi.dtbo \ rockchip-rk3328-opp-1.4ghz.dtbo \ rockchip-rk3328-opp-1.5ghz.dtbo \ diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/README.rockchip-overlays b/patch/kernel/archive/rockchip64-6.12/overlay/README.rockchip-overlays index 56530ccd38..1a6d71df8b 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/README.rockchip-overlays +++ b/patch/kernel/archive/rockchip64-6.12/overlay/README.rockchip-overlays @@ -16,6 +16,14 @@ for RK3308 (Rock PI-S) ### Overlay details: +### mksklipad-enable-rtc-end1 + +Enables end1 ethernet adapter, which also makes rtc work better. +There is no physical port for end1, so this overlay is merely for +testing the rtc. +The rtc still tends to stall sometimes. In the original makerbase +image, the rtc was completely unusable though. + ### mkspi-disable-lcd-spi DTBO to disable spi_for_{lcd,touch} when enabling uart1 diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3328-mksklipad50-enable-rtc-end1.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3328-mksklipad50-enable-rtc-end1.dtso new file mode 100644 index 0000000000..16cf2f5a14 --- /dev/null +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3328-mksklipad50-enable-rtc-end1.dtso @@ -0,0 +1,7 @@ +/dts-v1/; +/plugin/; + +// enable end1 ethernet adapter +&gmac2phy { + status = "okay"; +};