^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) %YAML 1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) ---
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) $id: http://devicetree.org/schemas/mfd/ene-kb3930.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) $schema: http://devicetree.org/meta-schemas/core.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) title: ENE KB3930 Embedded Controller bindings
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) description: |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) This binding describes the ENE KB3930 Embedded Controller attached to an
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) I2C bus.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) maintainers:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - Lubomir Rintel <lkundrak@v3.sk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) items:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - enum:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - dell,wyse-ariel-ec # Dell Wyse Ariel board (3020)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - const: ene,kb3930
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) reg:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) off-gpios:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) description: GPIO used with the shutdown protocol on Ariel
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) maxItems: 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) system-power-controller: true
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) additionalProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #include <dt-bindings/gpio/gpio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) i2c {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) embedded-controller@58 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) compatible = "dell,wyse-ariel-ec", "ene,kb3930";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) reg = <0x58>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) system-power-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) off-gpios = <&gpio 126 GPIO_ACTIVE_HIGH>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) <&gpio 127 GPIO_ACTIVE_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) ...