Skip to contentSkip to conversation

dt-bindings: iio: light: fix missing type definition

PATCH In review Dharma Balasubiramani 2 participants 4 messages Feb 5, 2025 – Feb 6, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: iio: light: fix missing type definition

Add the missing type definition for ps-cancellation-current-picoamp property.

Fixes 47736b32d1b8 ("dt-bindings: iio: light: Add APDS9160 binding")
---
 Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml +1 -0
index bb1cc4404a55..f9c35c29fe04 100644
@@ -37,6 +37,7 @@ properties:
     maximum: 63
 
   ps-cancellation-current-picoamp:
+    $ref: /schemas/types.yaml#/definitions/uint32
     description:
       Proximity sensor crosstalk cancellation current in picoampere.
       This parameter adjusts the current in steps of 2400 pA up to 276000 pA.

---
base-commit: 40b8e93e17bff4a4e0cc129e04f9fdf5daa5397e
change-id: 20250205-brcm-binding-71b6d990d67e

Best regards,

Signature · 1 line
Dharma Balasubiramani <[email protected]>
#1 lore raw
Quoted 1 line · Dharma Balasubiramani

Add the missing type definition for ps-cancellation-current-picoamp property.

It is not missing. You are using some older schema probably.

Best regards,
Krzysztof

#2 lore raw
Quoted 6 lines · Krzysztof Kozlowski

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 1 line · Dharma Balasubiramani

Add the missing type definition for ps-cancellation-current-picoamp property.

It is not missing. You are using some older schema probably.

Sorry, if I miss something here..

There is no $Ref or type for ps-cancellation-current-picoamp property

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml#n39

I checked in other bindings as well.

I get the following warning while make dtbs_check or dt_binding_check

Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml:
ps-cancellation-current-picoamp: missing type definition

Should I need to update anything?

Quoted 4 lines

Best regards,
Krzysztof

Signature · 2 lines
With Best Regards,
Dharma B.
#3 lore raw
Quoted 11 lines · On 06/02/2025 03:41, [email protected] wrote:
Quoted 6 lines · Krzysztof Kozlowski

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 1 line · Dharma Balasubiramani

Add the missing type definition for ps-cancellation-current-picoamp property.

It is not missing. You are using some older schema probably.

Sorry, if I miss something here..

There is no $Ref or type for ps-cancellation-current-picoamp property

There is a ref in dtschema.

Quoted 11 lines

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml#n39

I checked in other bindings as well.

I get the following warning while make dtbs_check or dt_binding_check

Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml:
ps-cancellation-current-picoamp: missing type definition

Should I need to update anything?

As I said - older schema, so yes, you need to update your dtschema or wait for new release.

Best regards,
Krzysztof