b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | From a0ebfa1829b5d3a1f698426c29f99078640b498f Mon Sep 17 00:00:00 2001 |
| 2 | From: Maxime Ripard <maxime@cerno.tech> |
| 3 | Date: Mon, 23 Dec 2019 19:58:30 +0100 |
| 4 | Subject: [PATCH] ARM: dts: bcm2711: Add firmware clocks node |
| 5 | |
| 6 | Now that we have a clock driver for the clocks exposed by the firmware, |
| 7 | let's add the device tree nodes for it. |
| 8 | |
| 9 | Signed-off-by: Maxime Ripard <maxime@cerno.tech> |
| 10 | --- |
| 11 | arch/arm/boot/dts/bcm2711-rpi.dtsi | 2 +- |
| 12 | arch/arm/boot/dts/bcm2711.dtsi | 5 +++++ |
| 13 | 2 files changed, 6 insertions(+), 1 deletion(-) |
| 14 | |
| 15 | --- a/arch/arm/boot/dts/bcm2711-rpi.dtsi |
| 16 | +++ b/arch/arm/boot/dts/bcm2711-rpi.dtsi |
| 17 | @@ -33,7 +33,7 @@ |
| 18 | |
| 19 | power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>; |
| 20 | resets = <&pm BCM2835_RESET_V3D>; |
| 21 | - clocks = <&clocks BCM2835_CLOCK_V3D>; |
| 22 | + clocks = <&firmware_clocks 5>; |
| 23 | interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; |
| 24 | status = "disabled"; |
| 25 | }; |
| 26 | --- a/arch/arm/boot/dts/bcm2711.dtsi |
| 27 | +++ b/arch/arm/boot/dts/bcm2711.dtsi |
| 28 | @@ -31,6 +31,11 @@ |
| 29 | }; |
| 30 | }; |
| 31 | |
| 32 | + firmware_clocks: firmware-clocks { |
| 33 | + compatible = "raspberrypi,firmware-clocks"; |
| 34 | + raspberrypi,firmware = <&firmware>; |
| 35 | + #clock-cells = <1>; |
| 36 | + }; |
| 37 | |
| 38 | soc { |
| 39 | /* |