mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
ARM: dts: broadcom: rpi: Switch to V3D firmware clock
Until commit919d6924ae("clk: bcm: rpi: Turn firmware clock on/off when preparing/unpreparing") the clk-raspberrypi driver wasn't able to change the state of the V3D clock. Only the clk-bcm2835 was able to do this before. After this commit both drivers were able to work against each other, which could result in a system freeze. One step to avoid this conflict is to switch all V3D consumer to the firmware clock. Reported-by: Marek Szyprowski <m.szyprowski@samsung.com> Closes: https://lore.kernel.org/linux-arm-kernel/727aa0c8-2981-4662-adf3-69cac2da956d@samsung.com/ Fixes:919d6924ae("clk: bcm: rpi: Turn firmware clock on/off when preparing/unpreparing") Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Co-developed-by: Melissa Wen <mwen@igalia.com> Signed-off-by: Melissa Wen <mwen@igalia.com> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Link: https://lore.kernel.org/r/20251005113816.6721-1-wahrenst@gmx.net Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
This commit is contained in:
committed by
Florian Fainelli
parent
3a86608788
commit
4adc20ba95
@@ -77,6 +77,14 @@
|
|||||||
/delete-property/ pinctrl-0;
|
/delete-property/ pinctrl-0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pm {
|
||||||
|
clocks = <&firmware_clocks 5>,
|
||||||
|
<&clocks BCM2835_CLOCK_PERI_IMAGE>,
|
||||||
|
<&clocks BCM2835_CLOCK_H264>,
|
||||||
|
<&clocks BCM2835_CLOCK_ISP>;
|
||||||
|
clock-names = "v3d", "peri_image", "h264", "isp";
|
||||||
|
};
|
||||||
|
|
||||||
&rmem {
|
&rmem {
|
||||||
/*
|
/*
|
||||||
* RPi4's co-processor will copy the board's bootloader configuration
|
* RPi4's co-processor will copy the board's bootloader configuration
|
||||||
|
|||||||
@@ -13,7 +13,16 @@
|
|||||||
clock-names = "pixel", "hdmi";
|
clock-names = "pixel", "hdmi";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pm {
|
||||||
|
clocks = <&firmware_clocks 5>,
|
||||||
|
<&clocks BCM2835_CLOCK_PERI_IMAGE>,
|
||||||
|
<&clocks BCM2835_CLOCK_H264>,
|
||||||
|
<&clocks BCM2835_CLOCK_ISP>;
|
||||||
|
clock-names = "v3d", "peri_image", "h264", "isp";
|
||||||
|
};
|
||||||
|
|
||||||
&v3d {
|
&v3d {
|
||||||
|
clocks = <&firmware_clocks 5>;
|
||||||
power-domains = <&power RPI_POWER_DOMAIN_V3D>;
|
power-domains = <&power RPI_POWER_DOMAIN_V3D>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user