From 6036a96bf1ab071b5c255e1a8909e3fb72d057c1 Mon Sep 17 00:00:00 2001 From: Dom Cobley Date: Tue, 20 Feb 2024 18:14:44 +0000 Subject: [PATCH] ARM: dts: Add support for 2712 axi performance monitors Also give a unique compatible string to 2711 to allow for driver differences. --- arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi | 4 ++++ arch/arm/boot/dts/broadcom/bcm2712-rpi.dtsi | 1 + arch/arm/boot/dts/broadcom/bcm2712.dtsi | 8 ++++++++ 3 files changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi b/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi index 968db63629897f..d5d81d2a81bb37 100644 --- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi @@ -505,6 +505,10 @@ i2c_vc: &i2c0 {}; pinctrl-names = "default"; }; +&axiperf { + compatible = "brcm,bcm2711-axiperf"; +}; + /delete-node/ &v3d; / { diff --git a/arch/arm/boot/dts/broadcom/bcm2712-rpi.dtsi b/arch/arm/boot/dts/broadcom/bcm2712-rpi.dtsi index e6b4edadce5d69..169ded7a38ec99 100644 --- a/arch/arm/boot/dts/broadcom/bcm2712-rpi.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm2712-rpi.dtsi @@ -66,6 +66,7 @@ / { __overrides__ { arm_freq; + axiperf = <&axiperf>,"status"; }; }; diff --git a/arch/arm/boot/dts/broadcom/bcm2712.dtsi b/arch/arm/boot/dts/broadcom/bcm2712.dtsi index 12319299ea910e..1b6766ec4f3f02 100644 --- a/arch/arm/boot/dts/broadcom/bcm2712.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm2712.dtsi @@ -112,6 +112,14 @@ status = "disabled"; }; + axiperf: axiperf { + compatible = "brcm,bcm2712-axiperf"; + reg = <0x7c012800 0x100>, + <0x7e000000 0x100>; + firmware = <&firmware>; + status = "disabled"; + }; + mailbox: mailbox@7c013880 { compatible = "brcm,bcm2835-mbox"; reg = <0x7c013880 0x40>;