Skip to content

Commit

Permalink
Put Cirque on i2c breakout on Splaytoraid
Browse files Browse the repository at this point in the history
  • Loading branch information
ulmanyar committed Mar 30, 2024
1 parent 2d3df78 commit f9cb604
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
CONFIG_CONSOLE=n
CONFIG_SERIAL=n
CONFIG_UART_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_ZMK_USB=y
CONFIG_PINCTRL=y

# For mouse
CONFIG_SPI=y
CONFIG_I2C=y
# Enable Trackpad
CONFIG_INPUT=y
CONFIG_ZMK_MOUSE=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,6 @@
pinmux = <SPI0_TX_P3>;
};
};

spi1_default: spi1_default {
group1 {
pinmux = <SPI1_TX_P15>;
};
group2 {
pinmux = <SPI1_RX_P12>;
input-enable;
};
group3 {
pinmux = <SPI1_SCK_P14>;
};
};
};


Expand Down Expand Up @@ -53,29 +40,40 @@
};


&spi1 {
&i2c0 {
status = "okay";
pinctrl-0 = <&spi1_default>;
pinctrl-names = "default";
clock-frequency = <DT_FREQ_M(2)>;
cirque:cirque@2a {
cirque: cirque@2a {
compatible = "cirque,pinnacle";
spi-max-frequency = <DT_FREQ_M(13)>;
reg = <0x2a>;
status = "okay";
dr-gpios = <&gpio0 16 (GPIO_ACTIVE_HIGH)>;
sensitivity = "2x";
sleep;
no-taps;
dr-gpios = <&gpio0 14 (GPIO_ACTIVE_HIGH)>;

sensitivity = "4x";
// sleep;
// no-taps;
};
// Rotation config, from Pete
// This will change in the future
// https://discord.com/channels/719497620560543766/845285481888743434/1206407883777114182
input_config {
compatible = "zmk,input-configs";

cirque_config {
device = <&cirque>;
xy-swap;
y-invert;
x-invert;
};
};
};


/ {
chosen {
zmk,underglow = &led_strip;
};

cirque_listener:cirque_listener {
cirque_listener {
compatible = "zmk,input-listener";
device = <&cirque>;
xy-swap;
Expand Down
1 change: 0 additions & 1 deletion config/splaytoraid40.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ CONFIG_ZMK_RGB_UNDERGLOW_SPD_START=1
CONFIG_USB_HID_POLL_INTERVAL_MS=1
CONFIG_EC11=y
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y

28 changes: 28 additions & 0 deletions config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,39 @@ manifest:
url-base: https://github.com/caksoylar
- name: petejohanson
url-base: https://github.com/petejohanson
- name: ulmanyar
url-base: https://github.com/ulmanyar
projects:
- name: zmk
remote: caksoylar
revision: caksoylar/experimental
import: app/west.yml
- name: zephyr
remote: ulmanyar
revision: fix_rp2040_i2c1
clone-depth: 1
import:
# TODO: Rename once upstream offers option like `exclude` or `denylist`
name-blacklist:
- ci-tools
- hal_altera
- hal_cypress
- hal_infineon
- hal_microchip
- hal_nxp
- hal_openisa
- hal_silabs
- hal_xtensa
- hal_st
- hal_ti
- loramac-node
- mcuboot
- mcumgr
- net-tools
- openthread
- edtt
- trusted-firmware-m
- sof
- name: cirque-input-module
remote: petejohanson
revision: main
Expand Down

0 comments on commit f9cb604

Please sign in to comment.