Pine64 PinePhone keyboard
Schema identifier ($id): "http://devicetree.org/schemas/input/pine64,pinephone-keyboard.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Samuel Holland <samuel@sholland.org>"
A keyboard accessory is available for the Pine64 PinePhone and PinePhone Pro. It connects via I2C, providing a raw scan matrix, a flashing interface, and a subordinate I2C bus for communication with a battery charger IC.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "pine64,pinephone-keyboard"
reg — required here #
Exact value (const): 21
interrupts — required here #
Maximum number of items (maxItems): 1
vbat-supply — not listed as required here #
Supply for the keyboard MCU
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
i2c — not listed as required here #
Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
keyboard@15 {
compatible = "pine64,pinephone-keyboard";
reg = <0x15>;
interrupt-parent = <&r_pio>;
interrupts = <0 12 IRQ_TYPE_EDGE_FALLING>; /* PL12 */
i2c {
#address-cells = <1>;
#size-cells = <0>;
charger@75 {
reg = <0x75>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)