Added the yaml file for joystick
This commit is contained in:
parent
8f72457ba3
commit
7d5dfeccaf
1 changed files with 29 additions and 0 deletions
29
app/drivers/zephyr/dts/bindings/sensor/joystick.yaml
Normal file
29
app/drivers/zephyr/dts/bindings/sensor/joystick.yaml
Normal 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
|
Loading…
Add table
Reference in a new issue