bcm27xx: update 6.1 patches to latest version
[openwrt/staging/dangole.git] / target / linux / bcm27xx / patches-6.1 / 950-1225-ARM-dts-bcm2712-rpi-5-b-Allow-RTC-to-be-disabled.patch
1 From da5fd98469edd797ed77d9a8690a608c6b54f9e6 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 19 Dec 2023 14:55:21 +0000
4 Subject: [PATCH] ARM: dts: bcm2712-rpi-5-b: Allow RTC to be disabled
5
6 Add a dtparam "rtc", so that "dtparam=rtc=off" can be used to disable
7 the Pi 5's onboard RTC.
8
9 See: https://forums.raspberrypi.com/viewtopic.php?t=361813
10
11 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
12 ---
13 arch/arm/boot/dts/bcm2712-rpi-5-b.dts | 1 +
14 arch/arm/boot/dts/overlays/README | 3 +++
15 2 files changed, 4 insertions(+)
16
17 --- a/arch/arm/boot/dts/bcm2712-rpi-5-b.dts
18 +++ b/arch/arm/boot/dts/bcm2712-rpi-5-b.dts
19 @@ -819,6 +819,7 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
20 pciex1_tperst_clk_ms = <&pciex1>, "brcm,tperst-clk-ms:0";
21 pcie_tperst_clk_ms = <&pciex1>, "brcm,tperst-clk-ms:0";
22 random = <&random>, "status";
23 + rtc = <&rpi_rtc>, "status";
24 rtc_bbat_vchg = <&rpi_rtc>, "trickle-charge-microvolt:0";
25 spi = <&spi0>, "status";
26 suspend = <&pwr_key>, "linux,code:0=205";
27 --- a/arch/arm/boot/dts/overlays/README
28 +++ b/arch/arm/boot/dts/overlays/README
29 @@ -307,6 +307,9 @@ Params:
30 random Set to "on" to enable the hardware random
31 number generator (default "on")
32
33 + rtc Set to "off" to disable the onboard Real Time
34 + Clock (2712 only, default "on")
35 +
36 rtc_bbat_vchg Set the RTC backup battery charging voltage in
37 microvolts. If set to 0 or not specified, the
38 trickle charger is disabled.