Cypress StreetFighter touchkey controller

Schema identifier ($id): "http://devicetree.org/schemas/input/cypress-sf.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Yassine Oudjana <y.oudjana@protonmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): input.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cypress,sf3155"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

avdd-supply — required here #

Regulator for AVDD analog voltage

vdd-supply — required here #

Regulator for VDD digital voltage

linux,keycodes — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

Required in this object (required): "compatible", "reg", "interrupts", "avdd-supply", "vdd-supply"

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>;

    touchkey@28 {
            compatible = "cypress,sf3155";
            reg = <0x28>;
            interrupt-parent = <&msmgpio>;
            interrupts = <77 IRQ_TYPE_EDGE_FALLING>;
            avdd-supply = <&vreg_l6a_1p8>;
            vdd-supply = <&vdd_3v2_tp>;
            linux,keycodes = <KEY_BACK KEY_MENU>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page