forked from kofal.net/zmk
Lots of clean up, basic kscan working, remove zephyr-rust.
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
zephyr,shell-uart = &usart1;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
zmk,matrix = &matrix0;
|
||||
};
|
||||
|
||||
leds {
|
||||
@@ -55,25 +54,23 @@
|
||||
};
|
||||
};
|
||||
|
||||
matrix0: kscan_matrix {
|
||||
rows {
|
||||
gpio-map = <0 0 &gpioa 10 0>,
|
||||
<1 0 &gpioa 9 0>,
|
||||
<2 0 &gpioa 8 0>,
|
||||
<3 0 &gpiob 15 0>,
|
||||
<4 0 &gpioc 13 0>,
|
||||
<5 0 &gpioc 14 0>,
|
||||
<6 0 &gpioc 15 0>,
|
||||
<7 0 &gpioa 2 0>;
|
||||
};
|
||||
columns {
|
||||
gpio-map = <0 0 &gpiob 11 0>,
|
||||
<1 0 &gpiob 10 0>,
|
||||
<2 0 &gpiob 2 0>,
|
||||
<3 0 &gpiob 1 0>,
|
||||
<4 0 &gpioa 7 0>,
|
||||
<5 0 &gpiob 0 0>;
|
||||
};
|
||||
kscan {
|
||||
compatible = "gpio-kscan";
|
||||
label = "Keyscan Matrix";
|
||||
row-gpios = <&gpioa 10 GPIO_ACTIVE_HIGH>,
|
||||
<&gpioa 9 GPIO_ACTIVE_HIGH>,
|
||||
<&gpioa 8 GPIO_ACTIVE_HIGH>,
|
||||
<&gpiob 15 GPIO_ACTIVE_HIGH>,
|
||||
<&gpioc 13 GPIO_ACTIVE_HIGH>,
|
||||
<&gpioc 14 GPIO_ACTIVE_HIGH>,
|
||||
<&gpioc 15 GPIO_ACTIVE_HIGH>,
|
||||
<&gpioa 2 GPIO_ACTIVE_HIGH>;
|
||||
col-gpios = <&gpiob 11 GPIO_ACTIVE_HIGH>,
|
||||
<&gpiob 10 GPIO_ACTIVE_HIGH>,
|
||||
<&gpiob 2 GPIO_ACTIVE_HIGH>,
|
||||
<&gpiob 1 GPIO_ACTIVE_HIGH>,
|
||||
<&gpioa 7 GPIO_ACTIVE_HIGH>,
|
||||
<&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
|
||||
Reference in New Issue
Block a user