Skip to content

Commit 7e1d168

Browse files
authored
Update cool642tb-mini_R.overlay
1 parent 4788212 commit 7e1d168

1 file changed

Lines changed: 35 additions & 23 deletions

File tree

config/boards/shields/Test/cool642tb-mini_R.overlay

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,48 @@
1-
/dts-v1/;
2-
3-
/include/ "cool642tb-mini.dtsi"
1+
#include "cool642tb-mini.dtsi"
42

53
&default_transform {
64
col-offset = <6>;
75
};
86

97
&kscan0 {
10-
col-gpios = <&xiao_d 10 GPIO_ACTIVE_HIGH>,
11-
<&xiao_d 9 GPIO_ACTIVE_HIGH>,
12-
<&xiao_d 8 GPIO_ACTIVE_HIGH>,
13-
<&xiao_d 7 GPIO_ACTIVE_HIGH>,
14-
<&gpio0 10 GPIO_ACTIVE_HIGH>;
8+
col-gpios
9+
= <&xiao_d 10 GPIO_ACTIVE_HIGH>
10+
, <&xiao_d 9 GPIO_ACTIVE_HIGH>
11+
, <&xiao_d 8 GPIO_ACTIVE_HIGH>
12+
, <&xiao_d 7 GPIO_ACTIVE_HIGH>
13+
, <&gpio0 10 GPIO_ACTIVE_HIGH>
14+
;
1515
};
1616

17-
&xiao_serial {
18-
status = "disabled";
17+
/ {
18+
trackball_listener {
19+
compatible = "zmk,input-listener";
20+
device = <&trackball>;
21+
22+
};
1923
};
2024

25+
&pinctrl {
26+
spi0_default: spi0_default {
27+
group1 {
28+
psels = <NRF_PSEL(SPIM_SCK, 0, 5)>,
29+
<NRF_PSEL(SPIM_MOSI, 0, 4)>,
30+
<NRF_PSEL(SPIM_MISO, 0, 4)>;
31+
};
32+
};
33+
34+
spi0_sleep: spi0_sleep {
35+
group1 {
36+
psels = <NRF_PSEL(SPIM_SCK, 0, 5)>,
37+
<NRF_PSEL(SPIM_MOSI, 0, 4)>,
38+
<NRF_PSEL(SPIM_MISO, 0, 4)>;
39+
low-power-enable;
40+
};
41+
};
42+
};
43+
44+
&xiao_serial { status = "disabled"; };
45+
2146
&spi0 {
2247
status = "okay";
2348
compatible = "nordic,nrf-spim";
@@ -36,16 +61,3 @@
3661
scroll-layers = <5>;
3762
};
3863
};
39-
40-
trackball_listener: trackball_listener {
41-
compatible = "zmk,input-listener";
42-
device = <&trackball>;
43-
};
44-
45-
battery_sensor: battery_sensor {
46-
compatible = "zmk,battery-voltage-divider";
47-
io-channels = <&adc 6>; // P0.14 ADCチャネル6
48-
full-mv = <2400>; // エネループ満充電電圧
49-
empty-mv = <2000>; // 放電目安電圧
50-
// output-ohmsは直結で無いので省略
51-
};

0 commit comments

Comments
 (0)