bcm27xx: add support for linux v5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.15 / 950-0878-ARM-dts-bcm2835-Switch-HSM-clock-to-firmware.patch
1 From fb31b2f3ddb36a98cbb50ab07a5541d553e72e16 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Mon, 25 Apr 2022 17:45:16 +0200
4 Subject: [PATCH] ARM: dts: bcm2835: Switch HSM clock to firmware
5
6 When the bootloader boots without a display connected to the
7 HDMI connector, it won't initialize the HSM clock.
8
9 Then, when Linux boots, the default parent fetched by the clock
10 framework will be the first parent for the HSM clock, which is "gnd".
11
12 That clock is never registered, leading to the HSM clock being orphaned,
13 which leads to other issues with the recent clock range handling.
14
15 It's not clear what the proper solution would be, but the firmware
16 clocks driver doesn't have that parenting issue and the clock rate is
17 properly initialized for this clock whenever it hasn't been set by the
18 bootloader.
19
20 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
21 ---
22 arch/arm/boot/dts/bcm2835-common.dtsi | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25 --- a/arch/arm/boot/dts/bcm2835-common.dtsi
26 +++ b/arch/arm/boot/dts/bcm2835-common.dtsi
27 @@ -129,7 +129,7 @@
28 interrupts = <2 8>, <2 9>;
29 ddc = <&i2c2>;
30 clocks = <&firmware_clocks 9>,
31 - <&clocks BCM2835_CLOCK_HSM>;
32 + <&firmware_clocks 13>;
33 clock-names = "pixel", "hdmi";
34 dmas = <&dma (17|(1<<27)|(1<<24))>;
35 dma-names = "audio-rx";