forked from kofal.net/zmk
refactor: Move drivers into properly module.
* Align our driver module layout to properly match Zephyr conventions, allowing proper CMake setup to amend the library for each type of driver.
This commit is contained in:
committed by
Pete Johanson
parent
eaeea4bdfa
commit
690bc1bb44
26
app/module/dts/bindings/sensor/alps,ec11.yaml
Normal file
26
app/module/dts/bindings/sensor/alps,ec11.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
description: |
|
||||
Sensor driver for the Alps EC11 rotary encoder
|
||||
|
||||
compatible: "alps,ec11"
|
||||
|
||||
properties:
|
||||
label:
|
||||
type: string
|
||||
required: true
|
||||
a-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description: A pin for the encoder
|
||||
b-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description: A pin for the encoder
|
||||
resolution:
|
||||
type: int
|
||||
description: Number of pulses per tick
|
||||
deprecated: true
|
||||
required: false
|
||||
steps:
|
||||
type: int
|
||||
description: Number of pulses in one full rotation
|
||||
required: false
|
||||
6
app/module/dts/bindings/sensor/zmk,battery-nrf-vddh.yaml
Normal file
6
app/module/dts/bindings/sensor/zmk,battery-nrf-vddh.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
# Copyright (c) 2021 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: Battery SoC monitoring using nRF VDDH
|
||||
|
||||
compatible: "zmk,battery-nrf-vddh"
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2020 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: Battery SoC monitoring using voltage divider
|
||||
|
||||
compatible: "zmk,battery-voltage-divider"
|
||||
|
||||
include: voltage-divider.yaml
|
||||
Reference in New Issue
Block a user