Skip to content

Commit fd4d5b4

Browse files
committed
hack: Add DT augment for a bbq-kbd-matrix
This is a special keyboard matrix type used by the bbq-keyboard firmware. It doesn't belong here, and can be moved out, once we support additional augment files. Signed-off-by: David Brown <[email protected]>
1 parent 45dcb7d commit fd4d5b4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

dt-rust.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,25 @@
119119
device: "crate::device::led_strip::LedStrip"
120120
kconfig: CONFIG_LED_STRIP
121121

122+
# This doesn't really belong here, and can be moved once we support modules having their own augment
123+
# files.
124+
- name: bbq-kbd-matrix
125+
rules:
126+
- type: compatible
127+
value:
128+
names:
129+
- "bbq-kbd-matrix"
130+
level: 0
131+
actions:
132+
- type: gpio_pins
133+
value:
134+
property: "row-gpios"
135+
getter: "get_rows"
136+
- type: gpio_pins
137+
value:
138+
property: "col-gpios"
139+
getter: "get_cols"
140+
122141
# Generate a pseudo node that matches all of the labels across the tree with their nodes.
123142
- name: labels
124143
rules:

0 commit comments

Comments
 (0)