Path: blob/master/Documentation/devicetree/bindings/embedded-controller/kontron,sl28cpld.yaml
29285 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/embedded-controller/kontron,sl28cpld.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Kontron's sl28cpld board management controller78maintainers:9- Michael Walle <michael@walle.cc>1011description: |12The board management controller may contain different IP blocks like13watchdog, fan monitoring, PWM controller, interrupt controller and a14GPIO controller.1516properties:17compatible:18oneOf:19- items:20- enum:21- kontron,sa67mcu22- const: kontron,sl28cpld23- const: kontron,sl28cpld2425reg:26description:27I2C device address.28maxItems: 12930"#address-cells":31const: 13233"#size-cells":34const: 03536"#interrupt-cells":37const: 23839interrupts:40maxItems: 14142interrupt-controller: true4344patternProperties:45"^gpio(@[0-9a-f]+)?$":46$ref: /schemas/gpio/kontron,sl28cpld-gpio.yaml4748"^hwmon(@[0-9a-f]+)?$":49$ref: /schemas/hwmon/kontron,sl28cpld-hwmon.yaml5051"^interrupt-controller(@[0-9a-f]+)?$":52$ref: /schemas/interrupt-controller/kontron,sl28cpld-intc.yaml5354"^pwm(@[0-9a-f]+)?$":55$ref: /schemas/pwm/kontron,sl28cpld-pwm.yaml5657"^watchdog(@[0-9a-f]+)?$":58$ref: /schemas/watchdog/kontron,sl28cpld-wdt.yaml5960required:61- "#address-cells"62- "#size-cells"63- compatible64- reg6566additionalProperties: false6768examples:69- |70#include <dt-bindings/interrupt-controller/irq.h>71i2c {72#address-cells = <1>;73#size-cells = <0>;7475sl28cpld@4a {76compatible = "kontron,sl28cpld";77reg = <0x4a>;78#address-cells = <1>;79#size-cells = <0>;8081watchdog@4 {82compatible = "kontron,sl28cpld-wdt";83reg = <0x4>;84kontron,assert-wdt-timeout-pin;85};8687hwmon@b {88compatible = "kontron,sl28cpld-fan";89reg = <0xb>;90};9192pwm@c {93compatible = "kontron,sl28cpld-pwm";94reg = <0xc>;95#pwm-cells = <2>;96};9798pwm@e {99compatible = "kontron,sl28cpld-pwm";100reg = <0xe>;101#pwm-cells = <2>;102};103104gpio@10 {105compatible = "kontron,sl28cpld-gpio";106reg = <0x10>;107interrupts-extended = <&gpio2 6108IRQ_TYPE_EDGE_FALLING>;109110gpio-controller;111#gpio-cells = <2>;112gpio-line-names = "a", "b", "c";113114interrupt-controller;115#interrupt-cells = <2>;116};117118gpio@15 {119compatible = "kontron,sl28cpld-gpio";120reg = <0x15>;121interrupts-extended = <&gpio2 6122IRQ_TYPE_EDGE_FALLING>;123124gpio-controller;125#gpio-cells = <2>;126127interrupt-controller;128#interrupt-cells = <2>;129};130131gpio@1a {132compatible = "kontron,sl28cpld-gpo";133reg = <0x1a>;134135gpio-controller;136#gpio-cells = <2>;137};138139gpio@1b {140compatible = "kontron,sl28cpld-gpi";141reg = <0x1b>;142143gpio-controller;144#gpio-cells = <2>;145};146147interrupt-controller@1c {148compatible = "kontron,sl28cpld-intc";149reg = <0x1c>;150interrupts-extended = <&gpio2 6151IRQ_TYPE_EDGE_FALLING>;152153interrupt-controller;154#interrupt-cells = <2>;155};156};157};158159160