[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241219200821.8328-1-maccraft123mc@gmail.com>
Date: Thu, 19 Dec 2024 21:08:18 +0100
From: Maya Matuszczyk <maccraft123mc@...il.com>
To: Maya Matuszczyk <maccraft123mc@...il.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: linux-arm-msm@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 1/3] dt-bindings: platform: Add bindings for Qcom's EC on IT8987
This patch adds bindings for the EC firmware running on IT8987 present
on most of X1E80100 devices
Signed-off-by: Maya Matuszczyk <maccraft123mc@...il.com>
---
.../bindings/platform/qcom,x1e-it8987-ec.yaml | 52 +++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 Documentation/devicetree/bindings/platform/qcom,x1e-it8987-ec.yaml
diff --git a/Documentation/devicetree/bindings/platform/qcom,x1e-it8987-ec.yaml b/Documentation/devicetree/bindings/platform/qcom,x1e-it8987-ec.yaml
new file mode 100644
index 000000000000..4a4f6eb63072
--- /dev/null
+++ b/Documentation/devicetree/bindings/platform/qcom,x1e-it8987-ec.yaml
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/platform/qcom,x1e-it8987-ec.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Embedded Controller on IT8987 chip.
+
+maintainers:
+ - Maya Matuszczyk <maccraft123mc@...il.com>
+
+description:
+ Most x1e80100 laptops have an EC running on IT8987 MCU chip. The EC controls
+ minor functions, like fans, power LED, and on some laptops it also handles
+ keyboard hotkeys.
+
+properties:
+ compatible:
+ oneOf:
+ - const: qcom,x1e-it8987-ec
+ - items:
+ - const: lenovo,yoga-slim7x-ec
+ - const: qcom,x1e-it8987-ec
+
+ reg:
+ const: 0x76
+
+ interrupts:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ embedded-controller@76 {
+ compatible = "lenovo,yoga-slim7x-ec", "qcom,x1e-it8987-ec";
+ reg = <0x76>;
+
+ interrupts-extended = <&tlmm 66 IRQ_TYPE_LEVEL_HIGH>;
+ };
+ };
+...
--
2.45.2
Powered by blists - more mailing lists