diff options
| author | ReFil <harryherring@gmail.com> | 2022-04-03 22:06:51 +0100 |
|---|---|---|
| committer | ReFil <harryherring@gmail.com> | 2022-04-03 22:06:51 +0100 |
| commit | 6aae0c6be2d58739cdc58b276a3797f479b09e5a (patch) | |
| tree | 32dae3d8a6def0dab67c97cabc67cdf829471ee0 /config/boards/arm/adv360/adv360_left.dts | |
| parent | 0a38e2de04e0cb8d21b4cc0a4de4e431dca256b7 (diff) | |
Initial commit
Diffstat (limited to 'config/boards/arm/adv360/adv360_left.dts')
| -rw-r--r-- | config/boards/arm/adv360/adv360_left.dts | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/config/boards/arm/adv360/adv360_left.dts b/config/boards/arm/adv360/adv360_left.dts new file mode 100644 index 0000000..8055fd1 --- /dev/null +++ b/config/boards/arm/adv360/adv360_left.dts @@ -0,0 +1,47 @@ +/* +* +* Copyright (c) 2021 Polarity Works +* SPDX-License-Identifier: MIT +* +*/ + +#include "adv360.dtsi" + +/{ + kscan0: kscan { + compatible = "zmk,kscan-gpio-matrix"; + label = "KSCAN"; + + 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> + , <&gpio0 5 GPIO_ACTIVE_HIGH> + ; + }; + + leds { + compatible = "gpio-leds"; + blue_led: led_0 { + gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; + label = "Blue LED"; + }; + }; + +}; |
