arm64: dts: socfpga: stratix10: move firmware out of soc node
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 9 Dec 2023 17:30:36 +0000 (18:30 +0100)
committerDinh Nguyen <dinguyen@kernel.org>
Thu, 4 Jan 2024 00:10:39 +0000 (18:10 -0600)
The "soc" node is supposed to have only MMIO children, so move the
firmware/svc node to top level to fix dtc W=1 warnings like:

  socfpga_stratix10.dtsi:625.12-635.5: Warning (simple_bus_reg): /soc@0/firmware: missing or empty reg/ranges property

The node should still be instantiated by drivers/of/platform.c, just
like in all other platforms.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi

index ec086ffcc4a2622d25179fcef4a50c767dfae684..59075b95804825c48e7b9fb8c8f08af3d31cab19 100644 (file)
                };
        };
 
+       firmware {
+               svc {
+                       compatible = "intel,stratix10-svc";
+                       method = "smc";
+                       memory-region = <&service_reserved>;
+
+                       fpga_mgr: fpga-mgr {
+                               compatible = "intel,stratix10-soc-fpga-mgr";
+                       };
+               };
+       };
+
        fpga-region {
                compatible = "fpga-region";
                #address-cells = <0x2>;
 
                        status = "disabled";
                };
-
-               firmware {
-                       svc {
-                               compatible = "intel,stratix10-svc";
-                               method = "smc";
-                               memory-region = <&service_reserved>;
-
-                               fpga_mgr: fpga-mgr {
-                                       compatible = "intel,stratix10-soc-fpga-mgr";
-                               };
-                       };
-               };
        };
 
        usbphy0: usbphy0 {