mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
fix: Fix inconsistent column offset property
Renamed the composite kscan's column-offset property to col-offset for consistency with other properties such as matrix transform's col-offset and matrix kscan's col-gpios.
This commit is contained in:
committed by
Pete Johanson
parent
9320271dde
commit
c7473fc325
@@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
right {
|
right {
|
||||||
kscan = <&kscan_right>;
|
kscan = <&kscan_right>;
|
||||||
column-offset = <5>;
|
col-offset = <5>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ kscan_direct: kscan_direct {
|
|||||||
direct {
|
direct {
|
||||||
kscan = <&kscan_direct>;
|
kscan = <&kscan_direct>;
|
||||||
row-offset = <1>;
|
row-offset = <1>;
|
||||||
column-offset = <8>;
|
col-offset = <8>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ child-binding:
|
|||||||
row-offset:
|
row-offset:
|
||||||
type: int
|
type: int
|
||||||
default: 0
|
default: 0
|
||||||
|
col-offset:
|
||||||
|
type: int
|
||||||
|
default: 0
|
||||||
|
|
||||||
column-offset:
|
column-offset:
|
||||||
type: int
|
type: int
|
||||||
default: 0
|
default: 0
|
||||||
|
deprecated: true
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ struct kscan_composite_child_config {
|
|||||||
#define CHILD_CONFIG(inst) \
|
#define CHILD_CONFIG(inst) \
|
||||||
{.child = DEVICE_DT_GET(DT_PHANDLE(inst, kscan)), \
|
{.child = DEVICE_DT_GET(DT_PHANDLE(inst, kscan)), \
|
||||||
.row_offset = DT_PROP(inst, row_offset), \
|
.row_offset = DT_PROP(inst, row_offset), \
|
||||||
.column_offset = DT_PROP(inst, column_offset)},
|
.column_offset = DT_PROP_OR(inst, col_offset, DT_PROP(inst, column_offset))},
|
||||||
|
|
||||||
struct kscan_composite_config {
|
struct kscan_composite_config {
|
||||||
const struct kscan_composite_child_config *children;
|
const struct kscan_composite_child_config *children;
|
||||||
|
|||||||
@@ -223,11 +223,11 @@ Definition file: [zmk/app/dts/bindings/zmk,kscan-composite.yaml](https://github.
|
|||||||
|
|
||||||
The `zmk,kscan-composite` node should have one child node per keyboard scan driver that should be composited. Each child node can have the following properties:
|
The `zmk,kscan-composite` node should have one child node per keyboard scan driver that should be composited. Each child node can have the following properties:
|
||||||
|
|
||||||
| Property | Type | Description | Default |
|
| Property | Type | Description | Default |
|
||||||
| --------------- | ------- | ------------------------------------------------------------------------------ | ------- |
|
| ------------ | ------- | ------------------------------------------------------------------------------ | ------- |
|
||||||
| `kscan` | phandle | Label of the kscan driver to include | |
|
| `kscan` | phandle | Label of the kscan driver to include | |
|
||||||
| `row-offset` | int | Shifts row 0 of the included driver to a new row in the composite matrix | 0 |
|
| `row-offset` | int | Shifts row 0 of the included driver to a new row in the composite matrix | 0 |
|
||||||
| `column-offset` | int | Shifts column 0 of the included driver to a new column in the composite matrix | 0 |
|
| `col-offset` | int | Shifts column 0 of the included driver to a new column in the composite matrix | 0 |
|
||||||
|
|
||||||
### Example Configuration
|
### Example Configuration
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user