Added the yaml file for joystick

This commit is contained in:
Andrew Richards 2022-08-31 23:07:46 +01:00
parent 8f72457ba3
commit 7d5dfeccaf

View file

@ -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