arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts:127.20-161.4: Warning (avoid_unnecessary_addr_size): /soc@0/i2c@78b6000/led-controller@30: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

From: kernel test robot
Date: Wed Jun 19 2024 - 01:15:52 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 92e5605a199efbaee59fb19e15d6cc2103a04ec2
commit: a21796c631734ea5cf62507e63a2479261880514 arm64: dts: qcom: msm8939-longcheer-l9100: Enable RGB LED
date: 8 months ago
config: arm64-randconfig-r113-20240606 (https://download.01.org/0day-ci/archive/20240619/202406191339.vptigQww-lkp@xxxxxxxxx/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project d7d2d4f53fc79b4b58e8d8d08151b577c3699d4a)
reproduce: (https://download.01.org/0day-ci/archive/20240619/202406191339.vptigQww-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406191339.vptigQww-lkp@xxxxxxxxx/

dtcheck warnings: (new ones prefixed by >>)
arch/arm64/boot/dts/qcom/msm8939.dtsi:1284.27-1333.6: Warning (avoid_unnecessary_addr_size): /soc@0/display-subsystem@1a00000/dsi@1a98000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
>> arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts:127.20-161.4: Warning (avoid_unnecessary_addr_size): /soc@0/i2c@78b6000/led-controller@30: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/qcom/msm8939.dtsi:496.26-499.6: Warning (unique_unit_address_if_enabled): /soc@0/qfprom@5c000/s6-p1@a1: duplicate unit-address (also used in node /soc@0/qfprom@5c000/s6-p2@a1)
arch/arm64/boot/dts/qcom/msm8939.dtsi:516.26-519.6: Warning (unique_unit_address_if_enabled): /soc@0/qfprom@5c000/s8-p1@a4: duplicate unit-address (also used in node /soc@0/qfprom@5c000/s8-p2@a4)
arch/arm64/boot/dts/qcom/msm8939.dtsi:541.24-544.6: Warning (unique_unit_address_if_enabled): /soc@0/qfprom@5c000/mode@d0: duplicate unit-address (also used in node /soc@0/qfprom@5c000/s0-p1@d0)
arch/arm64/boot/dts/qcom/msm8939.dtsi:551.26-554.6: Warning (unique_unit_address_if_enabled): /soc@0/qfprom@5c000/s0-p1@d1: duplicate unit-address (also used in node /soc@0/qfprom@5c000/s1-p1@d1)
arch/arm64/boot/dts/qcom/msm8939.dtsi:571.26-574.6: Warning (unique_unit_address_if_enabled): /soc@0/qfprom@5c000/s2-p2@d4: duplicate unit-address (also used in node /soc@0/qfprom@5c000/s3-p1@d4)

vim +127 arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts

123
124 &blsp_i2c2 {
125 status = "okay";
126
> 127 led-controller@30 {
128 compatible = "kinetic,ktd2026";
129 reg = <0x30>;
130 #address-cells = <1>;
131 #size-cells = <0>;
132
133 vin-supply = <&pm8916_l17>;
134 vio-supply = <&pm8916_l6>;
135
136 pinctrl-0 = <&status_led_default>;
137 pinctrl-names = "default";
138
139 multi-led {
140 color = <LED_COLOR_ID_RGB>;
141 function = LED_FUNCTION_STATUS;
142
143 #address-cells = <1>;
144 #size-cells = <0>;
145
146 led@0 {
147 reg = <0>;
148 color = <LED_COLOR_ID_RED>;
149 };
150
151 led@1 {
152 reg = <1>;
153 color = <LED_COLOR_ID_GREEN>;
154 };
155
156 led@2 {
157 reg = <2>;
158 color = <LED_COLOR_ID_BLUE>;
159 };
160 };
161 };
162 };
163

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki