Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: exynos: Fix missing empty reg/ranges property regulators on Trats

Remove the regulators node entirely because its children do not have any
unit addresses. This fixes DTC warning:

Warning (simple_bus_reg): /regulators/regulator-0: missing or empty reg/ranges property

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>

+47 -51
+47 -51
arch/arm/boot/dts/exynos4210-trats.dts
··· 30 30 stdout-path = "serial2:115200n8"; 31 31 }; 32 32 33 - regulators { 34 - compatible = "simple-bus"; 33 + vemmc_reg: regulator-0 { 34 + compatible = "regulator-fixed"; 35 + regulator-name = "VMEM_VDD_2.8V"; 36 + regulator-min-microvolt = <2800000>; 37 + regulator-max-microvolt = <2800000>; 38 + gpio = <&gpk0 2 GPIO_ACTIVE_HIGH>; 39 + enable-active-high; 40 + }; 35 41 36 - vemmc_reg: regulator-0 { 37 - compatible = "regulator-fixed"; 38 - regulator-name = "VMEM_VDD_2.8V"; 39 - regulator-min-microvolt = <2800000>; 40 - regulator-max-microvolt = <2800000>; 41 - gpio = <&gpk0 2 GPIO_ACTIVE_HIGH>; 42 - enable-active-high; 43 - }; 42 + tsp_reg: regulator-1 { 43 + compatible = "regulator-fixed"; 44 + regulator-name = "TSP_FIXED_VOLTAGES"; 45 + regulator-min-microvolt = <2800000>; 46 + regulator-max-microvolt = <2800000>; 47 + gpio = <&gpl0 3 GPIO_ACTIVE_HIGH>; 48 + enable-active-high; 49 + }; 44 50 45 - tsp_reg: regulator-1 { 46 - compatible = "regulator-fixed"; 47 - regulator-name = "TSP_FIXED_VOLTAGES"; 48 - regulator-min-microvolt = <2800000>; 49 - regulator-max-microvolt = <2800000>; 50 - gpio = <&gpl0 3 GPIO_ACTIVE_HIGH>; 51 - enable-active-high; 52 - }; 51 + cam_af_28v_reg: regulator-2 { 52 + compatible = "regulator-fixed"; 53 + regulator-name = "8M_AF_2.8V_EN"; 54 + regulator-min-microvolt = <2800000>; 55 + regulator-max-microvolt = <2800000>; 56 + gpio = <&gpk1 1 GPIO_ACTIVE_HIGH>; 57 + enable-active-high; 58 + }; 53 59 54 - cam_af_28v_reg: regulator-2 { 55 - compatible = "regulator-fixed"; 56 - regulator-name = "8M_AF_2.8V_EN"; 57 - regulator-min-microvolt = <2800000>; 58 - regulator-max-microvolt = <2800000>; 59 - gpio = <&gpk1 1 GPIO_ACTIVE_HIGH>; 60 - enable-active-high; 61 - }; 60 + cam_io_en_reg: regulator-3 { 61 + compatible = "regulator-fixed"; 62 + regulator-name = "CAM_IO_EN"; 63 + regulator-min-microvolt = <2800000>; 64 + regulator-max-microvolt = <2800000>; 65 + gpio = <&gpe2 1 GPIO_ACTIVE_HIGH>; 66 + enable-active-high; 67 + }; 62 68 63 - cam_io_en_reg: regulator-3 { 64 - compatible = "regulator-fixed"; 65 - regulator-name = "CAM_IO_EN"; 66 - regulator-min-microvolt = <2800000>; 67 - regulator-max-microvolt = <2800000>; 68 - gpio = <&gpe2 1 GPIO_ACTIVE_HIGH>; 69 - enable-active-high; 70 - }; 69 + cam_io_12v_reg: regulator-4 { 70 + compatible = "regulator-fixed"; 71 + regulator-name = "8M_1.2V_EN"; 72 + regulator-min-microvolt = <1200000>; 73 + regulator-max-microvolt = <1200000>; 74 + gpio = <&gpe2 5 GPIO_ACTIVE_HIGH>; 75 + enable-active-high; 76 + }; 71 77 72 - cam_io_12v_reg: regulator-4 { 73 - compatible = "regulator-fixed"; 74 - regulator-name = "8M_1.2V_EN"; 75 - regulator-min-microvolt = <1200000>; 76 - regulator-max-microvolt = <1200000>; 77 - gpio = <&gpe2 5 GPIO_ACTIVE_HIGH>; 78 - enable-active-high; 79 - }; 80 - 81 - vt_core_15v_reg: regulator-5 { 82 - compatible = "regulator-fixed"; 83 - regulator-name = "VT_CORE_1.5V"; 84 - regulator-min-microvolt = <1500000>; 85 - regulator-max-microvolt = <1500000>; 86 - gpio = <&gpe2 2 GPIO_ACTIVE_HIGH>; 87 - enable-active-high; 88 - }; 78 + vt_core_15v_reg: regulator-5 { 79 + compatible = "regulator-fixed"; 80 + regulator-name = "VT_CORE_1.5V"; 81 + regulator-min-microvolt = <1500000>; 82 + regulator-max-microvolt = <1500000>; 83 + gpio = <&gpe2 2 GPIO_ACTIVE_HIGH>; 84 + enable-active-high; 89 85 }; 90 86 91 87 gpio-keys {