From 7d58579a17f9b7169356b0abd4c2ddbcd03c7912 Mon Sep 17 00:00:00 2001 From: Ricardo Rivera-Matos Date: Thu, 15 Aug 2024 18:42:51 +0000 Subject: [PATCH] dts: bindings: drv2605: Requires actuator-mode prop Requires the actuator-mode property to be set as there is no safe default value. Signed-off-by: Ricardo Rivera-Matos --- dts/bindings/haptics/ti,drv2605.yaml | 1 + tests/drivers/build_all/haptics/i2c.dtsi | 2 ++ 2 files changed, 3 insertions(+) diff --git a/dts/bindings/haptics/ti,drv2605.yaml b/dts/bindings/haptics/ti,drv2605.yaml index b2e9d8bf50b..1664a0f9379 100644 --- a/dts/bindings/haptics/ti,drv2605.yaml +++ b/dts/bindings/haptics/ti,drv2605.yaml @@ -11,6 +11,7 @@ include: i2c-device.yaml properties: actuator-mode: + required: true type: string enum: - "ERM" diff --git a/tests/drivers/build_all/haptics/i2c.dtsi b/tests/drivers/build_all/haptics/i2c.dtsi index 2038347e11a..a4fc6bb6c2b 100644 --- a/tests/drivers/build_all/haptics/i2c.dtsi +++ b/tests/drivers/build_all/haptics/i2c.dtsi @@ -11,4 +11,6 @@ drv2605@0 { compatible = "ti,drv2605"; reg = <0x0>; status = "okay"; + + actuator-mode = "LRA"; };