Kontron's sl28cpld board management controller
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
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)