summaryrefslogtreecommitdiff
path: root/boards/arm/planck/planck_rev6.dts
diff options
context:
space:
mode:
Diffstat (limited to 'boards/arm/planck/planck_rev6.dts')
-rw-r--r--boards/arm/planck/planck_rev6.dts37
1 files changed, 17 insertions, 20 deletions
diff --git a/boards/arm/planck/planck_rev6.dts b/boards/arm/planck/planck_rev6.dts
index a3e14f7..58de7a4 100644
--- a/boards/arm/planck/planck_rev6.dts
+++ b/boards/arm/planck/planck_rev6.dts
@@ -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 {