Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Embedded controller bindings

Single-page view · as markdown

Acer Aspire 1 Embedded Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Embedded controller bindings

Schema identifier ($id): "http://devicetree.org/schemas/embedded-controller/acer,aspire1-ec.yaml#"

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

Maintainers (maintainers): "Nikita Travkin <nikita@trvn.ru>"

The Acer Aspire 1 laptop uses an embedded controller to control battery and charging as well as to provide a set of misc features such as the laptop lid status and HPD events for the USB Type-C DP alt mode.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "acer,aspire1-ec"

reg — required here #

Exact value (const): 118

interrupts — required here #

Maximum number of items (maxItems): 1

connector — not listed as required here #

Shared schema rule ($ref): /schemas/connector/usb-connector.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/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    embedded-controller@76 {
        compatible = "acer,aspire1-ec";
        reg = <0x76>;

        interrupts-extended = <&tlmm 30 IRQ_TYPE_LEVEL_LOW>;

        connector {
            compatible = "usb-c-connector";

            port {
                ec_dp_in: endpoint {
                    remote-endpoint = <&mdss_dp_out>;
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

ChromeOS Embedded Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Embedded controller bindings

Schema identifier ($id): "http://devicetree.org/schemas/embedded-controller/google,cros-ec.yaml#"

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

Maintainers (maintainers): "Benson Leung <bleung@chromium.org>", "Guenter Roeck <groeck@chromium.org>"

Google's ChromeOS EC is a microcontroller which talks to the AP and implements various functions such as keyboard and battery charging. The EC can be connected through various interfaces (I2C, SPI, and others) and the compatible string specifies which interface is being used.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

For implementations of the EC connected through I2C.

Exact value (const): "google,cros-ec-i2c"

Rule 2

For implementations of the EC connected through SPI.

Exact value (const): "google,cros-ec-spi"

Rule 3

For implementations of the FPMCU connected through SPI.

Array item rules (items)

Item 1

Exact value (const): "google,cros-ec-fp"

Item 2

Exact value (const): "google,cros-ec-spi"

Rule 4

For implementations of the EC connected through RPMSG.

Exact value (const): "google,cros-ec-rpmsg"

Rule 5

For implementations of the EC connected through UART.

Exact value (const): "google,cros-ec-uart"

controller-data — not listed as required here #

true — No constraints added by this property rule.

google,cros-ec-spi-pre-delay — not listed as required here #

This property specifies the delay in usecs between the assertion of the CS and the first clock pulse.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 0

google,cros-ec-spi-msg-delay — not listed as required here #

This property specifies the delay in usecs between messages.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 0

google,has-vbc-nvram — not listed as required here #

Some implementations of the EC include a small nvram space used to store verified boot context data. This boolean flag is used to specify whether this nvram is present or not.

Value type (type): "boolean"

mediatek,rpmsg-name — not listed as required here #

Must be defined if the cros-ec is a rpmsg device for a Mediatek ARM Cortex M4 Co-processor. Contains the name of the rpmsg device. Used to match the subnode to the rpmsg device announced by the SCP.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

spi-max-frequency — not listed as required here #

true — No constraints added by this property rule.

reg — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

boot0-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Assert for bootloader mode.

vdd-supply — not listed as required here #

true — No constraints added by this property rule.

wakeup-source — not listed as required here #

Button can wake-up the system.

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

#gpio-cells — not listed as required here #

Exact value (const): 2

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

typec — not listed as required here #

Shared schema rule ($ref): /schemas/chrome/google,cros-ec-typec.yaml#

ec-pwm — not listed as required here #

Shared schema rule ($ref): /schemas/pwm/google,cros-ec-pwm.yaml#

Deprecated (deprecated): true

pwm — not listed as required here #

Shared schema rule ($ref): /schemas/pwm/google,cros-ec-pwm.yaml#

keyboard-controller — not listed as required here #

Shared schema rule ($ref): /schemas/input/google,cros-ec-keyb.yaml#

proximity — not listed as required here #

Shared schema rule ($ref): /schemas/iio/proximity/google,cros-ec-mkbp-proximity.yaml#

codecs — not listed as required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

#address-cells — required here

Exact value (const): 2

#size-cells — required here

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^ec-codec@[a-f0-9]+$ — name matches this regular expression

Value type (type): "object"

Shared schema rule ($ref): /schemas/sound/google,cros-ec-codec.yaml#

Required in this object (required): "#address-cells", "#size-cells"

cbas — not listed as required here #

Value type (type): "object"

This device is used to signal when a detachable base is attached to a Chrome OS tablet. This device cannot be detected at runtime.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "google,cros-cbas"

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^i2c-tunnel[0-9]*$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): /schemas/i2c/google,cros-ec-i2c-tunnel.yaml#

^regulator@[0-9]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): /schemas/regulator/google,cros-ec-regulator.yaml#

^extcon[0-9]*$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): /schemas/extcon/extcon-usbc-cros-ec.yaml#

Required in this object (required): "compatible"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

This rule must not match (not)

Rule for matching array elements (contains)

Exact value (const): "google,cros-ec-spi"

When the condition matches (then) #

Properties and child nodes (properties)

controller-data — not listed as required here

false — Not permitted by this property rule.

google,cros-ec-spi-pre-delay — not listed as required here

false — Not permitted by this property rule.

google,cros-ec-spi-msg-delay — not listed as required here

false — Not permitted by this property rule.

spi-max-frequency — not listed as required here

false — Not permitted by this property rule.

When the condition does not match (else) #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

This rule must not match (not)

Rule for matching array elements (contains)

Exact value (const): "google,cros-ec-rpmsg"

When the condition matches (then) #

Properties and child nodes (properties)

mediatek,rpmsg-name — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

This rule must not match (not)

Rule for matching array elements (contains)

Allowed values (enum): "google,cros-ec-rpmsg", "google,cros-ec-uart"

When the condition matches (then) #

Required in this object (required): "reg", "interrupts"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "google,cros-ec-fp"

When the condition matches (then) #

Properties and child nodes (properties)

#address-cells — not listed as required here

false — Not permitted by this property rule.

#size-cells — not listed as required here

false — Not permitted by this property rule.

typec — not listed as required here

false — Not permitted by this property rule.

ec-pwm — not listed as required here

false — Not permitted by this property rule.

kbd-led-backlight — not listed as required here

false — Not permitted by this property rule.

keyboard-controller — not listed as required here

false — Not permitted by this property rule.

proximity — not listed as required here

false — Not permitted by this property rule.

codecs — not listed as required here

false — Not permitted by this property rule.

cbas — not listed as required here

false — Not permitted by this property rule.

Properties matching a name pattern (patternProperties)

^i2c-tunnel[0-9]*$ — name matches this regular expression

false — Not permitted by this property rule.

^regulator@[0-9]+$ — name matches this regular expression

false — Not permitted by this property rule.

^extcon[0-9]*$ — name matches this regular expression

false — Not permitted by this property rule.

Required in this object (required): "reset-gpios", "boot0-gpios", "vdd-supply"

When the condition does not match (else) #

Properties and child nodes (properties)

reset-gpios — not listed as required here

false — Not permitted by this property rule.

boot0-gpios — not listed as required here

false — Not permitted by this property rule.

vdd-supply — not listed as required here

false — Not permitted by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    cros-ec@1e {
        compatible = "google,cros-ec-i2c";
        reg = <0x1e>;
        interrupts = <6 0>;
        interrupt-parent = <&gpio0>;
    };
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    cros-ec@0 {
        compatible = "google,cros-ec-spi";
        reg = <0x0>;
        google,cros-ec-spi-msg-delay = <30>;
        google,cros-ec-spi-pre-delay = <10>;
        interrupts = <99 0>;
        interrupt-parent = <&gpio7>;
        spi-max-frequency = <5000000>;
        #gpio-cells = <2>;
        gpio-controller;

        proximity {
            compatible = "google,cros-ec-mkbp-proximity";
        };

        cbas {
            compatible = "google,cros-cbas";
        };
    };
};
scp0 {
    cros-ec {
        compatible = "google,cros-ec-rpmsg";
    };
};
spi {
  #address-cells = <0x1>;
  #size-cells = <0x0>;

  ec@0 {
    compatible = "google,cros-ec-fp", "google,cros-ec-spi";
    reg = <0x0>;
    interrupt-parent = <&gpio_controller>;
    interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
    spi-max-frequency = <3000000>;
    reset-gpios = <&gpio_controller 5 GPIO_ACTIVE_LOW>;
    boot0-gpios = <&gpio_controller 10 GPIO_ACTIVE_HIGH>;
    vdd-supply = <&pp3300_fp_mcu>;
  };
};
serial {
    cros-ec {
        compatible = "google,cros-ec-uart";
    };
};

Source notes #

Annotations retained from the schema source

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

Line 230: Using additionalProperties: false here and

Line 231: listing true properties doesn't work

Line 246: Example for I2C

Line 263: Example for SPI

Line 293: Example for RPMSG

Line 301: Example for FPMCU

Line 319: Example for UART

Gateworks System Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Embedded controller bindings

Schema identifier ($id): "http://devicetree.org/schemas/embedded-controller/gw,gsc.yaml#"

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

The Gateworks System Controller (GSC) is a device present across various
Gateworks product families that provides a set of system related features
such as the following (refer to the board hardware user manuals to see what
features are present)
 - Watchdog Timer
 - GPIO
 - Pushbutton controller
 - Hardware monitor with ADC's for temperature and voltage rails and
   fan controller

Maintainers (maintainers): "Tim Harvey <tharvey@gateworks.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "gsc@[0-9a-f]{1,2}"

compatible — required here #

Exact value (const): "gw,gsc"

reg — required here #

I2C device address

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 1

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

adc — not listed as required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Optional hardware monitoring module

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "gw,gsc-adc"

#address-cells — required here

Exact value (const): 1

#size-cells — required here

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^channel@[0-9a-f]+$ — name matches this regular expression

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties)

false

Not allowed by this rule.

Properties for a single ADC which can report cooked values (i.e. temperature sensor based on thermister), raw values (i.e. voltage rail with a pre-scaling resistor divider).

Properties and child nodes (properties)

reg — required here

Register of the ADC

Maximum number of items (maxItems): 1

label — required here

Name of the ADC input

gw,mode — required here

conversion mode:
  0 - temperature, in C*10
  1 - pre-scaled 24-bit voltage value
  2 - scaled voltage based on an optional resistor divider
      and optional offset
  3 - pre-scaled 16-bit voltage value
  4 - fan tach input to report RPM's

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4

gw,voltage-divider-ohms — not listed as required here

Values of resistors for divider on raw ADC input

Maximum number of items (maxItems): 2

Array item rules (items)

Minimum value (minimum): 1000

Maximum value (maximum): 1000000

gw,voltage-offset-microvolt — not listed as required here

A positive voltage offset to apply to a raw ADC (i.e. to compensate for a diode drop).

Minimum value (minimum): 0

Maximum value (maximum): 1000000

Required in this object (required): "gw,mode", "reg", "label"

Required in this object (required): "compatible", "#address-cells", "#size-cells"

Properties matching a name pattern (patternProperties) #

^fan-controller@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Optional fan controller

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "gw,gsc-fan"

reg — required here

The fan controller base address

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "#address-cells", "#size-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    gsc@20 {
        compatible = "gw,gsc";
        reg = <0x20>;
        interrupt-parent = <&gpio1>;
        interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
        interrupt-controller;
        #interrupt-cells = <1>;
        #address-cells = <1>;
        #size-cells = <0>;

        adc {
            compatible = "gw,gsc-adc";
            #address-cells = <1>;
            #size-cells = <0>;

            channel@0 { /* A0: Board Temperature */
                reg = <0x00>;
                label = "temp";
                gw,mode = <0>;
            };

            channel@2 { /* A1: Input Voltage (raw ADC) */
                reg = <0x02>;
                label = "vdd_vin";
                gw,mode = <1>;
                gw,voltage-divider-ohms = <22100 1000>;
                gw,voltage-offset-microvolt = <800000>;
            };

            channel@b { /* A2: Battery voltage */
                reg = <0x0b>;
                label = "vdd_bat";
                gw,mode = <1>;
            };
        };

        fan-controller@2c {
            compatible = "gw,gsc-fan";
            reg = <0x2c>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Huawei Matebook E Go Embedded Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Embedded controller bindings

Schema identifier ($id): "http://devicetree.org/schemas/embedded-controller/huawei,gaokun3-ec.yaml#"

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

Maintainers (maintainers): "Pengyu Luo <mitltlatltl@gmail.com>"

Different from other Qualcomm Snapdragon sc8180x and sc8280xp-based machines, the Huawei Matebook E Go tablets use embedded controllers while others use a system called PMIC GLink which handles battery, UCSI, USB Type-C DP Alt Mode. In addition, Huawei's implementation also handles additional features, such as charging thresholds, FN lock, smart charging, tablet lid status, thermal sensors, and more.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "huawei,gaokun3-ec"

reg — required here #

Exact value (const): 56

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

interrupts — required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^connector@[01]$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#

Properties and child nodes (properties) #

reg — not listed as required here

Maximum number of items (maxItems): 1

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/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    embedded-controller@38 {
        compatible = "huawei,gaokun3-ec";
        reg = <0x38>;

        interrupts-extended = <&tlmm 107 IRQ_TYPE_LEVEL_LOW>;

        #address-cells = <1>;
        #size-cells = <0>;

        connector@0 {
            compatible = "usb-c-connector";
            reg = <0>;
            power-role = "dual";
            data-role = "dual";

            ports {
                #address-cells = <1>;
                #size-cells = <0>;

                port@0 {
                    reg = <0>;

                    ucsi0_ss_in: endpoint {
                        remote-endpoint = <&usb_0_qmpphy_out>;
                    };
                };

                port@1 {
                    reg = <1>;

                    ucsi0_sbu: endpoint {
                        remote-endpoint = <&usb0_sbu_mux>;
                    };
                };
            };
        };

        connector@1 {
            compatible = "usb-c-connector";
            reg = <1>;
            power-role = "dual";
            data-role = "dual";

            ports {
                #address-cells = <1>;
                #size-cells = <0>;

                port@0 {
                    reg = <0>;

                    ucsi1_ss_in: endpoint {
                        remote-endpoint = <&usb_1_qmpphy_out>;
                    };
                };

                port@1 {
                    reg = <1>;

                    ucsi1_sbu: endpoint {
                        remote-endpoint = <&usb1_sbu_mux>;
                    };
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Kontron's sl28cpld board management controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Embedded controller bindings

Schema identifier ($id): "http://devicetree.org/schemas/embedded-controller/kontron,sl28cpld.yaml#"

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

Maintainers (maintainers): "Michael Walle <michael@walle.cc>"

The board management controller may contain different IP blocks like watchdog, fan monitoring, PWM controller, interrupt controller and a GPIO controller.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "kontron,sa67mcu"

Item 2

Exact value (const): "kontron,sl28cpld"

Rule 2

Exact value (const): "kontron,sl28cpld"

reg — required here #

I2C device address.

Maximum number of items (maxItems): 1

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^gpio(@[0-9a-f]+)?$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/gpio/kontron,sl28cpld-gpio.yaml

^hwmon(@[0-9a-f]+)?$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/hwmon/kontron,sl28cpld-hwmon.yaml

^interrupt-controller(@[0-9a-f]+)?$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/interrupt-controller/kontron,sl28cpld-intc.yaml

^pwm(@[0-9a-f]+)?$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/pwm/kontron,sl28cpld-pwm.yaml

^watchdog(@[0-9a-f]+)?$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/watchdog/kontron,sl28cpld-wdt.yaml

Required in this object (required): "#address-cells", "#size-cells", "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    sl28cpld@4a {
        compatible = "kontron,sl28cpld";
        reg = <0x4a>;
        #address-cells = <1>;
        #size-cells = <0>;

        watchdog@4 {
            compatible = "kontron,sl28cpld-wdt";
            reg = <0x4>;
            kontron,assert-wdt-timeout-pin;
        };

        hwmon@b {
            compatible = "kontron,sl28cpld-fan";
            reg = <0xb>;
        };

        pwm@c {
            compatible = "kontron,sl28cpld-pwm";
            reg = <0xc>;
            #pwm-cells = <2>;
        };

        pwm@e {
            compatible = "kontron,sl28cpld-pwm";
            reg = <0xe>;
            #pwm-cells = <2>;
        };

        gpio@10 {
            compatible = "kontron,sl28cpld-gpio";
            reg = <0x10>;
            interrupts-extended = <&gpio2 6
                           IRQ_TYPE_EDGE_FALLING>;

            gpio-controller;
            #gpio-cells = <2>;
            gpio-line-names = "a", "b", "c";

            interrupt-controller;
            #interrupt-cells = <2>;
        };

        gpio@15 {
            compatible = "kontron,sl28cpld-gpio";
            reg = <0x15>;
            interrupts-extended = <&gpio2 6
                           IRQ_TYPE_EDGE_FALLING>;

            gpio-controller;
            #gpio-cells = <2>;

            interrupt-controller;
            #interrupt-cells = <2>;
        };

        gpio@1a {
            compatible = "kontron,sl28cpld-gpo";
            reg = <0x1a>;

            gpio-controller;
            #gpio-cells = <2>;
        };

        gpio@1b {
            compatible = "kontron,sl28cpld-gpi";
            reg = <0x1b>;

            gpio-controller;
            #gpio-cells = <2>;
        };

        interrupt-controller@1c {
            compatible = "kontron,sl28cpld-intc";
            reg = <0x1c>;
            interrupts-extended = <&gpio2 6
                           IRQ_TYPE_EDGE_FALLING>;

            interrupt-controller;
            #interrupt-cells = <2>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Lenovo Thinkpad T14s Embedded Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Embedded controller bindings

Schema identifier ($id): "http://devicetree.org/schemas/embedded-controller/lenovo,thinkpad-t14s-ec.yaml#"

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

The Qualcomm Snapdragon-based Lenovo Thinkpad T14s has an Embedded Controller (EC) which handles things such as keyboard backlight, LEDs or non-standard keys.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "lenovo,thinkpad-t14s-ec"

reg — required here #

Exact value (const): 40

interrupts — required here #

Maximum number of items (maxItems): 1

wakeup-source — not listed as required here #

true — No constraints added by this property rule.

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/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    embedded-controller@28 {
        compatible = "lenovo,thinkpad-t14s-ec";
        reg = <0x28>;
        interrupts-extended = <&tlmm 66 IRQ_TYPE_LEVEL_LOW>;
        wakeup-source;
    };
};

Source notes #

Annotations retained from the schema source

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

Lenovo Yoga C630 Embedded Controller.

Peios Kernel / Hardware and drivers / Device-tree binding reference / Embedded controller bindings

Schema identifier ($id): "http://devicetree.org/schemas/embedded-controller/lenovo,yoga-c630-ec.yaml#"

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

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"

The Qualcomm Snapdragon-based Lenovo Yoga C630 has an Embedded Controller (EC) which handles things such as battery and USB Type-C. This binding describes the interface, on an I2C bus, to this EC.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "lenovo,yoga-c630-ec"

reg — required here #

Exact value (const): 112

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

interrupts — required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^connector@[01]$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#

Properties and child nodes (properties) #

reg — not listed as required here

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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/interrupt-controller/irq.h>
i2c {
    clock-frequency = <400000>;

    #address-cells = <1>;
    #size-cells = <0>;

    embedded-controller@70 {
        compatible = "lenovo,yoga-c630-ec";
        reg = <0x70>;

        interrupts-extended = <&tlmm 20 IRQ_TYPE_LEVEL_HIGH>;

        #address-cells = <1>;
        #size-cells = <0>;

        connector@0 {
            compatible = "usb-c-connector";
            reg = <0>;
            power-role = "source";
            data-role = "host";
        };

        connector@1 {
            compatible = "usb-c-connector";
            reg = <1>;
            power-role = "source";
            data-role = "host";
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Surface System Aggregator Module (SAM, SSAM)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Embedded controller bindings

Schema identifier ($id): "http://devicetree.org/schemas/embedded-controller/microsoft,surface-sam.yaml#"

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

Maintainers (maintainers): "Konrad Dybcio <konradybcio@kernel.org>"

Surface devices use a standardized embedded controller to let the operating system interface with various hardware functions. The specific functionalities are modeled as subdevices and matched on five levels: domain, category, target, instance and function.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "microsoft,surface-sam"

interrupts — required here #

Maximum number of items (maxItems): 1

current-speed — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
uart {
    embedded-controller {
        compatible = "microsoft,surface-sam";

        interrupts-extended = <&tlmm 91 IRQ_TYPE_EDGE_RISING>;

        pinctrl-0 = <&ssam_state>;
        pinctrl-names = "default";

        current-speed = <4000000>;
    };
};

Source notes #

Annotations retained from the schema source

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

Traverse Ten64 board microcontroller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Embedded controller bindings

Schema identifier ($id): "http://devicetree.org/schemas/embedded-controller/traverse,ten64-controller.yaml#"

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

Maintainers (maintainers): "Mathew McBride <matt@traverse.com.au>"

The board microcontroller on the Ten64 board family is responsible for management of power sources on the board, as well as signalling the SoC to power on and reset.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "traverse,ten64-controller"

reg — required here #

Exact value (const): 126

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    board-controller@7e {
        compatible = "traverse,ten64-controller";
        reg = <0x7e>;
    };
};

Source notes #

Annotations retained from the schema source

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

Peios Learn — documentation for Peios software.

Built with Trail.