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