zmk/app/drivers/zephyr/dts/bindings/gpio/zmk,gpio-165.yaml
Purdea Andrei 2403ecb046 implement gpio_165 driver
This is an input-only gpio driver for use with 74x165
style parallel-input shift registers, (using SPI peripheral)

The user can choose to either use cs-gpios of spi or
load-gpios for connecting to the SH/LD pin of the shift
register. The difference is that cs-gpios will keep
the input latch enabled while idle, and load-gpios will
instead pulse the SH/LD signal before the register
content is shifted. In both cases the gpio should be
configured GPIO_ACTIVE_HIGH.
2023-06-04 12:02:32 +03:00

34 lines
562 B
YAML

#
# Copyright (c) 2022 The ZMK Contributors
#
# SPDX-License-Identifier: MIT
#
description: >
This is a representation of the 165 Parrallel-in Shift Register.
compatible: "zmk,gpio-165"
include: [gpio-controller.yaml, spi-device.yaml]
properties:
"#gpio-cells":
const: 2
ngpios:
type: int
required: true
enum:
- 8
- 16
- 24
- 32
description: Number of gpios supported
load-gpios:
type: phandle-array
description: GPIO to which the /PL a.k.a. SH/LD pin is connected
gpio-cells:
- pin
- flags