Skip to content

Commit

Permalink
add cirque input driver
Browse files Browse the repository at this point in the history
  • Loading branch information
FearlessSpiff committed Jan 8, 2024
1 parent b3ee5f9 commit 2b7947e
Show file tree
Hide file tree
Showing 10 changed files with 530 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/drivers/zephyr/dts/bindings/sensor/cirque,pinnacle-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
properties:
dr-gpios:
type: phandle-array
description: Data ready pin for the trackpad
rotate-90:
type: boolean
sleep:
type: boolean
no-taps:
type: boolean
sensitivity:
type: string
enum:
- 1x
- 2x
- 3x
- 4x
description: ADC attenuation (sensitivity) setting.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: |
Sensor driver for the Cirque Pinnacle trackpad ASICs, using the I2C interface
compatible: "cirque,pinnacle"

include: ["i2c-device.yaml", "cirque,pinnacle-common.yaml"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: |
Sensor driver for the Cirque Pinnacle trackpad ASICs, using the SPI interface
compatible: "cirque,pinnacle"

include: ["spi-device.yaml", "cirque,pinnacle-common.yaml"]
1 change: 1 addition & 0 deletions app/module/drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ add_subdirectory_ifdef(CONFIG_GPIO gpio)
add_subdirectory_ifdef(CONFIG_KSCAN kscan)
add_subdirectory_ifdef(CONFIG_SENSOR sensor)
add_subdirectory_ifdef(CONFIG_DISPLAY display)
add_subdirectory_ifdef(CONFIG_INPUT input)
1 change: 1 addition & 0 deletions app/module/drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ rsource "gpio/Kconfig"
rsource "kscan/Kconfig"
rsource "sensor/Kconfig"
rsource "display/Kconfig"
rsource "input/Kconfig"
6 changes: 6 additions & 0 deletions app/module/drivers/input/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2022 The ZMK Contributors
# SPDX-License-Identifier: MIT

zephyr_library_amend()

zephyr_library_sources_ifdef(CONFIG_INPUT_PINNACLE input_pinnacle.c)
10 changes: 10 additions & 0 deletions app/module/drivers/input/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2022 The ZMK Contributors
# SPDX-License-Identifier: MIT

menuconfig INPUT_PINNACLE
bool "Cirque Pinnacle trackpads"
depends on GPIO
depends on SPI || I2C
depends on INPUT
help
Enable driver for Cirque Pinnacle trackpads
Loading

0 comments on commit 2b7947e

Please sign in to comment.