From 7d5dfeccafa3af8d7075b479b3aa174f2aeced12 Mon Sep 17 00:00:00 2001 From: Andrew Richards Date: Wed, 31 Aug 2022 23:07:46 +0100 Subject: [PATCH] Added the yaml file for joystick --- .../zephyr/dts/bindings/sensor/joystick.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app/drivers/zephyr/dts/bindings/sensor/joystick.yaml diff --git a/app/drivers/zephyr/dts/bindings/sensor/joystick.yaml b/app/drivers/zephyr/dts/bindings/sensor/joystick.yaml new file mode 100644 index 00000000..cb0cc906 --- /dev/null +++ b/app/drivers/zephyr/dts/bindings/sensor/joystick.yaml @@ -0,0 +1,29 @@ +description: | + Sensor driver for analog joysticks + +compatible: "joystick" + +properties: + label: + type: string + required: true + io-channels: + type: phandle-array + required: true + description: Analog pins for decoder + resolution: + type: int + required: false + description: Affects how much movement is required for inc_dec keypresses + frequency: + type: int + required: false + description: How often to poll per second + min_on: + type: int + required: false + description: If the sensor is above this, then it is treated as on + reverse: + type: boolean + required: false + description: If true, then negative values are down/right \ No newline at end of file