Skip to content

Commit 66e01a7

Browse files
committed
test: Chiisai Overlay
Testing Chiisai board overlay for Leeloo-Micro
1 parent 6e5c24e commit 66e01a7

3 files changed

Lines changed: 85 additions & 3 deletions

File tree

app/boards/shields/leeloo_micro/Kconfig.defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
if SHIELD_LEELOO_MICRO_LEFT
55

66
config ZMK_KEYBOARD_NAME
7-
default "Leeloo-Micro"
7+
default "Chiisai | LMicro"
88

99
config ZMK_SPLIT_ROLE_CENTRAL
1010
default y
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#include <dt-bindings/led/led.h>
2+
3+
&pinctrl {
4+
spi0_default: spi0_default {
5+
group1 {
6+
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
7+
<NRF_PSEL(SPIM_MOSI, 1, 12)>;
8+
};
9+
};
10+
spi0_sleep: spi0_sleep {
11+
group1 {
12+
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
13+
<NRF_PSEL(SPIM_MOSI, 1, 12)>;
14+
low-power-enable;
15+
};
16+
};
17+
18+
spi3_default: spi3_default {
19+
group1 {
20+
psels = <NRF_PSEL(SPIM_MOSI, 1, 9)>;
21+
};
22+
};
23+
24+
spi3_sleep: spi3_sleep {
25+
group1 {
26+
psels = <NRF_PSEL(SPIM_MOSI, 1, 9)>;
27+
low-power-enable;
28+
};
29+
};
30+
};
31+
32+
&spi0 {
33+
status = "okay";
34+
compatible = "nordic,nrf-spim";
35+
pinctrl-0 = <&spi0_default>;
36+
pinctrl-1 = <&spi0_sleep>;
37+
pinctrl-names = "default", "sleep";
38+
cs-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
39+
40+
ls0xx: ls0xx@0 {
41+
compatible = "sharp,ls0xx";
42+
spi-max-frequency = <1000000>;
43+
reg = <0>;
44+
width = <160>;
45+
height = <68>;
46+
};
47+
};
48+
49+
&spi3 {
50+
compatible = "nordic,nrf-spim";
51+
status = "okay";
52+
53+
pinctrl-0 = <&spi3_default>;
54+
pinctrl-1 = <&spi3_sleep>;
55+
pinctrl-names = "default", "sleep";
56+
57+
led_strip: ws2812@0 {
58+
compatible = "worldsemi,ws2812-spi";
59+
60+
/* SPI */
61+
reg = <0>; /* ignored, but necessary for SPI bindings */
62+
spi-max-frequency = <4000000>;
63+
64+
/* WS2812 */
65+
chain-length = <20>; /* arbitrary; change at will */
66+
spi-one-frame = <0x70>;
67+
spi-zero-frame = <0x40>;
68+
69+
color-mapping = <LED_COLOR_ID_GREEN LED_COLOR_ID_RED LED_COLOR_ID_BLUE>;
70+
};
71+
};
72+
73+
/ {
74+
chosen {
75+
zephyr,display = &ls0xx;
76+
zmk,underglow = &led_strip;
77+
};
78+
};

app/boards/shields/leeloo_micro/leeloo_micro.dtsi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
/ {
99
chosen {
10-
zephyr,display = &oled;
1110
zmk,kscan = &kscan0;
1211
zmk,matrix-transform = &default_transform;
1312
};
@@ -67,6 +66,10 @@ RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(3,4) RC(3,5) RC(2,5) RC(2,6) RC(2,7)
6766

6867
};
6968

69+
/*
70+
* Do not need this section:
71+
* MIP display is defined in boards/clickety_split_chiisai.overlay
72+
*
7073
&pro_micro_i2c {
7174
status = "okay";
7275

@@ -85,4 +88,5 @@ RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(3,4) RC(3,5) RC(2,5) RC(2,6) RC(2,7)
8588
inversion-on;
8689
prechargep = <0x22>;
8790
};
88-
};
91+
};
92+
*/

0 commit comments

Comments
 (0)