mediatek: disable RTC on Bananapi R64 and refresh patches

The in-SoC RTC of the Bananapi R64 is more disruptive than useful
without a battery connected. Disable it to not have Linux use the
RTC provided time 2000-01-01 00:00:00 after power-loss.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2021-03-06 18:38:30 +00:00
parent 9397b22df1
commit 8dd0215676
4 changed files with 26 additions and 5 deletions

View File

@ -8,7 +8,7 @@
}; };
chosen { chosen {
@@ -160,22 +162,22 @@ @@ -160,22 +161,22 @@
port@1 { port@1 {
reg = <1>; reg = <1>;

View File

@ -1,6 +1,6 @@
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
@@ -20,6 +20,10 @@ @@ -19,6 +19,10 @@
aliases { aliases {
serial0 = &uart0; serial0 = &uart0;
ethernet0 = &gmac0; ethernet0 = &gmac0;
@ -11,7 +11,7 @@
}; };
chosen { chosen {
@@ -43,8 +47,8 @@ @@ -42,8 +46,8 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
factory { factory {
@ -22,7 +22,7 @@
gpios = <&pio 0 GPIO_ACTIVE_HIGH>; gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
}; };
@@ -58,17 +62,25 @@ @@ -57,17 +61,25 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";

View File

@ -0,0 +1,21 @@
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
@@ -559,12 +559,16 @@
status = "okay";
};
+&rtc {
+ status = "disabled";
+};
+
&sata {
- status = "disable";
+ status = "disabled";
};
&sata_phy {
- status = "disable";
+ status = "disabled";
};
&spi0 {

View File

@ -253,7 +253,7 @@ Signed-off-by: chuanjia.liu <Chuanjia.Liu@mediatek.com>
#interrupt-cells = <1>; #interrupt-cells = <1>;
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
@@ -271,18 +271,16 @@ @@ -270,18 +270,16 @@
}; };
}; };