2023-11-27 16:09:58 -08:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Copyright (c) 2023 The ZMK Contributors
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "adv360pro.dtsi"
|
|
|
|
|
|
|
|
/{
|
|
|
|
kscan0: kscan {
|
|
|
|
compatible = "zmk,kscan-gpio-matrix";
|
2024-03-29 11:15:06 -07:00
|
|
|
wakeup-source;
|
2023-11-27 16:09:58 -08:00
|
|
|
|
|
|
|
diode-direction = "col2row";
|
|
|
|
row-gpios
|
|
|
|
= <&gpio1 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
|
|
, <&gpio1 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
|
|
, <&gpio0 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
|
|
, <&gpio1 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
|
|
, <&gpio1 12 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
|
|
;
|
|
|
|
|
|
|
|
col-gpios
|
|
|
|
= <&gpio0 25 GPIO_ACTIVE_HIGH>
|
|
|
|
, <&gpio0 11 GPIO_ACTIVE_HIGH>
|
|
|
|
, <&gpio0 2 GPIO_ACTIVE_HIGH>
|
|
|
|
, <&gpio0 28 GPIO_ACTIVE_HIGH>
|
|
|
|
, <&gpio0 29 GPIO_ACTIVE_HIGH>
|
|
|
|
, <&gpio0 30 GPIO_ACTIVE_HIGH>
|
|
|
|
, <&gpio0 31 GPIO_ACTIVE_HIGH>
|
|
|
|
, <&gpio1 9 GPIO_ACTIVE_HIGH>
|
|
|
|
, <&gpio0 12 GPIO_ACTIVE_HIGH>
|
|
|
|
, <&gpio0 7 GPIO_ACTIVE_HIGH>
|
|
|
|
;
|
|
|
|
};
|
|
|
|
};
|