Re: [PATCH v2 3/3] arm64: dts: qcom: apq8016: Add Schneider HMIBSC board DTS

From: Krzysztof Kozlowski
Date: Thu Mar 14 2024 - 06:05:29 EST


On 14/03/2024 10:17, Sumit Garg wrote:
>
> compatible = "gpio-leds";
> + #address-cells = <1>;
> + #size-cells = <0>;
>
> led@5 {
> + reg = <5>;
> label = "apq8016-hmibsc:green:wlan";
> function = LED_FUNCTION_WLAN;
> color = <LED_COLOR_ID_YELLOW>;
> @@ -103,6 +106,7 @@ led@5 {
> };
>
> led@6 {
> + reg = <6>;
> label = "apq8016-hmibsc:yellow:bt";
> function = LED_FUNCTION_BLUETOOTH;
> color = <LED_COLOR_ID_BLUE>;
>
> But it then broke dtbs_check. Are you aware of any other saner way to
> fix those warnings properly?

You must drop unit address, because it is not applicable, instead of
adding some properties to mask it.

Best regards,
Krzysztof