arm64: dts: hisilicon: hip06: move non-MMIO node out of soc
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 2 Apr 2024 19:31:42 +0000 (21:31 +0200)
committerWei Xu <xuwei5@hisilicon.com>
Sat, 13 Apr 2024 01:50:47 +0000 (01:50 +0000)
Non-MMIO devices, which are BTW not really part of the SoC, should not
be within simple-bus, as reported by dtc W=1 warning:

  hip06.dtsi:377.18-381.5: Warning (simple_bus_reg): /soc/refclk: missing or empty reg/ranges property

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hip06.dtsi

index f46c33d107507836ad85fe3a7dede7b52dc199dd..249ca3b4b703124d9f0c5e0a476933950a8d4109 100644 (file)
                };
        };
 
+       eth2: ethernet-0 {
+               compatible = "hisilicon,hns-nic-v2";
+               ae-handle = <&dsaf0>;
+               port-idx-in-ae = <0>;
+               local-mac-address = [00 00 00 00 00 00];
+               status = "disabled";
+               dma-coherent;
+       };
+
+       eth3: ethernet-1 {
+               compatible = "hisilicon,hns-nic-v2";
+               ae-handle = <&dsaf0>;
+               port-idx-in-ae = <1>;
+               local-mac-address = [00 00 00 00 00 00];
+               status = "disabled";
+               dma-coherent;
+       };
+
+       eth0: ethernet-4 {
+               compatible = "hisilicon,hns-nic-v2";
+               ae-handle = <&dsaf0>;
+               port-idx-in-ae = <4>;
+               local-mac-address = [00 00 00 00 00 00];
+               status = "disabled";
+               dma-coherent;
+       };
+
+       eth1: ethernet-5 {
+               compatible = "hisilicon,hns-nic-v2";
+               ae-handle = <&dsaf0>;
+               port-idx-in-ae = <5>;
+               local-mac-address = [00 00 00 00 00 00];
+               status = "disabled";
+               dma-coherent;
+       };
+
+       refclk: refclk {
+               compatible = "fixed-clock";
+               clock-frequency = <50000000>;
+               #clock-cells = <0>;
+       };
+
        timer {
                compatible = "arm,armv8-timer";
                interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
                        };
                };
 
-               refclk: refclk {
-                       compatible = "fixed-clock";
-                       clock-frequency = <50000000>;
-                       #clock-cells = <0>;
-               };
-
                usb_ohci: usb@a7030000 {
                        compatible = "generic-ohci";
                        reg = <0x0 0xa7030000 0x0 0x10000>;
                        };
                };
 
-               eth0: ethernet-4 {
-                       compatible = "hisilicon,hns-nic-v2";
-                       ae-handle = <&dsaf0>;
-                       port-idx-in-ae = <4>;
-                       local-mac-address = [00 00 00 00 00 00];
-                       status = "disabled";
-                       dma-coherent;
-               };
-
-               eth1: ethernet-5 {
-                       compatible = "hisilicon,hns-nic-v2";
-                       ae-handle = <&dsaf0>;
-                       port-idx-in-ae = <5>;
-                       local-mac-address = [00 00 00 00 00 00];
-                       status = "disabled";
-                       dma-coherent;
-               };
-
-               eth2: ethernet-0 {
-                       compatible = "hisilicon,hns-nic-v2";
-                       ae-handle = <&dsaf0>;
-                       port-idx-in-ae = <0>;
-                       local-mac-address = [00 00 00 00 00 00];
-                       status = "disabled";
-                       dma-coherent;
-               };
-
-               eth3: ethernet-1 {
-                       compatible = "hisilicon,hns-nic-v2";
-                       ae-handle = <&dsaf0>;
-                       port-idx-in-ae = <1>;
-                       local-mac-address = [00 00 00 00 00 00];
-                       status = "disabled";
-                       dma-coherent;
-               };
-
                sas0: sas@c3000000 {
                        compatible = "hisilicon,hip06-sas-v2";
                        reg = <0 0xc3000000 0 0x10000>;