Skip to contentSkip to conversation

dt-bindings: iio: light: apds9160: add missing type definition

PATCH In review Dario Binacchi 2 participants 3 messages May 7, 2025

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

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

Fix the following warning:

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

raised by command:

make dt_binding_check DT_SCHEMA_FILES=fsl.yaml

Fixes be464661e7532 ("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.
Signature · 4 lines
2.43.0

base-commit: 0d8d44db295ccad20052d6301ef49ff01fb8ae2d
branch: fix-brcm,apds9160.yaml
#1 lore raw
Quoted 6 lines · Dario Binacchi

Fix the following warning:

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

raised by command:

Quoted 9 lines

make dt_binding_check DT_SCHEMA_FILES=fsl.yaml

Fixes be464661e7532 ("dt-bindings: iio: light: Add APDS9160 binding")

---

 Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml | 1 +
 1 file changed, 1 insertion(+)

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/light/brcm,apds9160.example.dtb: light-sensor@53 (brcm,apds9160): ps-cancellation-current-picoamp: 62400 is not of type 'array'
from schema $id: http://devicetree.org/schemas/property-units.yaml#

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]

The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.

maintainer
#2 lore raw
In reply to Dario Binacchi
Quoted 6 lines · Dario Binacchi

Fix the following warning:

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

raised by command:

Quoted 8 lines

make dt_binding_check DT_SCHEMA_FILES=fsl.yaml

Fixes be464661e7532 ("dt-bindings: iio: light: Add APDS9160 binding")

---

 Documentation/devicetree/bindings/iio/light/brcm,apds9160.yaml | 1 +
 1 file changed, 1 insertion(+)

Not needed. Fixed in the latest dtschema.

Rob