Source build of Wyldbuilds 4x6 Dactyl
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
// wyld_dm_right.overlay
|
||||
|
||||
#include "wyld_dm.dtsi"
|
||||
#include <dt-bindings/led/led.h>
|
||||
|
||||
&default_transform {
|
||||
col-offset = <6>;
|
||||
};
|
||||
|
||||
&kscan0 {
|
||||
col-gpios
|
||||
= <&gpio0 31 GPIO_ACTIVE_HIGH> // 0.31
|
||||
, <&gpio0 29 GPIO_ACTIVE_HIGH> // 0.29
|
||||
, <&gpio0 2 GPIO_ACTIVE_HIGH> // 0.02
|
||||
, <&gpio1 15 GPIO_ACTIVE_HIGH> // 1.15
|
||||
, <&gpio1 13 GPIO_ACTIVE_HIGH> // 1.13
|
||||
, <&gpio1 11 (GPIO_ACTIVE_HIGH )> // 1.11
|
||||
;
|
||||
};
|
||||
|
||||
//&right_encoder {
|
||||
// status = "okay";
|
||||
//};
|
||||
|
||||
&pinctrl {
|
||||
spi0_default: spi0_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_SCK, 0, 20)>,
|
||||
<NRF_PSEL(SPIM_MOSI, 0, 17)>;
|
||||
};
|
||||
};
|
||||
spi0_sleep: spi0_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_SCK, 0, 20)>,
|
||||
<NRF_PSEL(SPIM_MOSI, 0, 17)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
spi1_default: spi1_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_SCK, 0, 6)>,
|
||||
<NRF_PSEL(SPIM_MOSI, 0, 8)>,
|
||||
<NRF_PSEL(SPIM_MISO, 0, 8)>;
|
||||
};
|
||||
};
|
||||
spi1_sleep: sp10_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_SCK, 0, 6)>,
|
||||
<NRF_PSEL(SPIM_MOSI, 0, 8)>,
|
||||
<NRF_PSEL(SPIM_MISO, 0, 8)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi1 {
|
||||
compatible = "nordic,nrf-spim";
|
||||
status = "okay";
|
||||
|
||||
pinctrl-0 = <&spi1_default>;
|
||||
pinctrl-1 = <&spi1_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
cs-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
|
||||
trackball: trackball@0 {
|
||||
status = "okay";
|
||||
compatible = "pixart,pmw3610";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <2000000>;
|
||||
irq-gpios = <&gpio0 24 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
||||
snipe-layers = <1>;
|
||||
scroll-layers = <2>;
|
||||
automouse-layer = <3>;
|
||||
};
|
||||
};
|
||||
|
||||
nice_view_spi: &spi0 {
|
||||
compatible = "nordic,nrf-spim";
|
||||
pinctrl-0 = <&spi0_default>;
|
||||
pinctrl-1 = <&spi0_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
cs-gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
/ {
|
||||
pmw3610_listener {
|
||||
compatible = "zmk,input-listener";
|
||||
device = <&trackball>;
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,display = &nice_view;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user