arm64: dts: hisilicon: hi6220-hikey: drop unit addresses from fixed regulators
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 2 Apr 2024 19:31:47 +0000 (21:31 +0200)
committerWei Xu <xuwei5@hisilicon.com>
Fri, 19 Apr 2024 08:40:27 +0000 (08:40 +0000)
Fixed regulators are not part of any MMIO bus, so they should not have
unit addresses.  This fixes dtc W=1 warnings:

  hi6220-hikey.dts:85.26-92.4: Warning (unit_address_vs_reg): /regulator@0: node has a unit name, but no reg or ranges property
  hi6220-hikey.dts:94.27-102.4: Warning (unit_address_vs_reg): /regulator@1: node has a unit name, but no reg or ranges property
  hi6220-hikey.dts:104.26-113.4: Warning (unit_address_vs_reg): /regulator@2: node has a unit name, but no reg or ranges property

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

index a2aa17e4dfdfe9a5bed99a89851e8000bf549148..2d304efe081de408329507d779d91e5f2f962931 100644 (file)
@@ -82,7 +82,7 @@
                };
        };
 
-       reg_sys_5v: regulator@0 {
+       reg_sys_5v: regulator-0 {
                compatible = "regulator-fixed";
                regulator-name = "SYS_5V";
                regulator-min-microvolt = <5000000>;
@@ -91,7 +91,7 @@
                regulator-always-on;
        };
 
-       reg_vdd_3v3: regulator@1 {
+       reg_vdd_3v3: regulator-1 {
                compatible = "regulator-fixed";
                regulator-name = "VDD_3V3";
                regulator-min-microvolt = <3300000>;
                vin-supply = <&reg_sys_5v>;
        };
 
-       reg_5v_hub: regulator@2 {
+       reg_5v_hub: regulator-2 {
                compatible = "regulator-fixed";
                regulator-name = "5V_HUB";
                regulator-min-microvolt = <5000000>;