-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlittle_wing_right.overlay
More file actions
39 lines (32 loc) · 905 Bytes
/
little_wing_right.overlay
File metadata and controls
39 lines (32 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "little_wing.dtsi"
#include <input/processors.dtsi>
#include <dt-bindings/zmk/input_transform.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
&default_transform {
col-offset = <6>;
};
trackball_spi: &spi1 {
status = "okay";
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
trackball: trackball@0 {
status = "okay";
compatible = "pixart,pmw3610";
reg = <0>;
spi-max-frequency = <2000000>;
irq-gpios = <&gpio0 20 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
cpi = <3200>;
evt-type = <INPUT_EV_REL>;
x-input-code = <INPUT_REL_X>;
y-input-code = <INPUT_REL_Y>;
};
};
&trackball_split {
device = <&trackball>;
input-processors = <&zip_xy_scaler 1 6>;
};
/ {
};