Skip to content

Commit 8c685f2

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 fe8d035 commit 8c685f2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

dt-rust.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,25 @@
120120
device: "crate::device::led_strip::LedStrip"
121121
kconfig: CONFIG_LED_STRIP
122122

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

0 commit comments

Comments
 (0)