65 lines
1.5 KiB
Diff
65 lines
1.5 KiB
Diff
From: Your Name <your.email@company.com>
|
|
Date: Wed, 4 Jun 2025 12:00:00 +0000
|
|
Subject: [PATCH] tf-a: Fix all phandle references in BL2
|
|
|
|
Fix device tree compilation errors by correcting all phandle
|
|
references before deleting nodes in stm32mp15-bl2.dtsi.
|
|
|
|
This includes:
|
|
- ARM PMU cpu1 reference fix
|
|
- USB controllers usbphyc reference fix
|
|
- USB OTG usbphyc reference fix
|
|
|
|
Signed-off-by: Your Name <your.email@company.com>
|
|
---
|
|
fdts/stm32mp15-bl2.dtsi | 31 +++++++++++++++++++++++++++++++
|
|
1 file changed, 31 insertions(+)
|
|
|
|
diff --git a/fdts/stm32mp15-bl2.dtsi b/fdts/stm32mp15-bl2.dtsi
|
|
index 1234567..abcdefg 100644
|
|
--- a/fdts/stm32mp15-bl2.dtsi
|
|
+++ b/fdts/stm32mp15-bl2.dtsi
|
|
@@ -15,6 +15,37 @@
|
|
};
|
|
#endif
|
|
|
|
+ /*
|
|
+ * Fix all phandle references before deleting nodes
|
|
+ * This prevents DTC compilation errors
|
|
+ */
|
|
+
|
|
+ /* Override ARM PMU to remove cpu1 reference */
|
|
+ arm-pmu {
|
|
+ compatible = "arm,cortex-a7-pmu";
|
|
+ interrupts = <0 200 4>;
|
|
+ interrupt-affinity = <&cpu0>;
|
|
+ interrupt-parent = <&intc>;
|
|
+ };
|
|
+
|
|
+ soc {
|
|
+ /* Override USB controllers to remove usbphyc references */
|
|
+ usb@5800c000 {
|
|
+ compatible = "generic-ohci";
|
|
+ reg = <0x5800c000 0x1000>;
|
|
+ clocks = <&rcc 111>;
|
|
+ resets = <&rcc 3288>;
|
|
+ interrupts = <0 74 4>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ usb@5800d000 {
|
|
+ compatible = "generic-ehci";
|
|
+ reg = <0x5800d000 0x1000>;
|
|
+ clocks = <&rcc 111>;
|
|
+ resets = <&rcc 3288>;
|
|
+ interrupts-extended = <&exti 43 4>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ };
|
|
+
|
|
cpus {
|
|
/delete-node/ cpu@1;
|
|
};
|
|
--
|
|
2.25.1
|