From 52bfc9dd84592f834c13ce9af4a1dd7fc90d7fef Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Fri, 1 May 2020 14:58:00 -0400 Subject: Lots of clean up, basic kscan working, remove zephyr-rust. --- boards/shields/petejohanson_handwire/Kconfig.defconfig | 0 boards/shields/petejohanson_handwire/Kconfig.shield | 6 ++++++ .../petejohanson_handwire/petejohanson_handwire.overlay | 12 ++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 boards/shields/petejohanson_handwire/Kconfig.defconfig create mode 100644 boards/shields/petejohanson_handwire/Kconfig.shield create mode 100644 boards/shields/petejohanson_handwire/petejohanson_handwire.overlay (limited to 'boards/shields') diff --git a/boards/shields/petejohanson_handwire/Kconfig.defconfig b/boards/shields/petejohanson_handwire/Kconfig.defconfig new file mode 100644 index 0000000..e69de29 diff --git a/boards/shields/petejohanson_handwire/Kconfig.shield b/boards/shields/petejohanson_handwire/Kconfig.shield new file mode 100644 index 0000000..7e8ad48 --- /dev/null +++ b/boards/shields/petejohanson_handwire/Kconfig.shield @@ -0,0 +1,6 @@ +# Copyright (c) 2019 Linaro Limited +# SPDX-License-Identifier: Apache-2.0 + +config SHIELD_PETEJOHANSON_HANDWIRE + def_bool $(shields_list_contains,petejohanson_handwire) + diff --git a/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay b/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay new file mode 100644 index 0000000..678070e --- /dev/null +++ b/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay @@ -0,0 +1,12 @@ + +/ { + kscan { + compatible = "gpio-kscan"; + label = "Handwired GPIO KSCAN matrix"; + + row-gpios = <&arduino_header 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, + <&arduino_header 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + col-gpios = <&arduino_header 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, + <&arduino_header 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; +}; -- cgit v1.2.3