Skip to content

Commit 6c4d24d

Browse files
TravMuravjwrdegoede
authored andcommitted
dt-bindings: platform: Add Acer Aspire 1 EC
Add binding for the EC found in the Acer Aspire 1 laptop. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Nikita Travkin <nikita@trvn.ru> Link: https://lore.kernel.org/r/20240315-aspire1-ec-v5-1-f93381deff39@trvn.ru Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent d439311 commit 6c4d24d

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/platform/acer,aspire1-ec.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Acer Aspire 1 Embedded Controller
8+
9+
maintainers:
10+
- Nikita Travkin <nikita@trvn.ru>
11+
12+
description:
13+
The Acer Aspire 1 laptop uses an embedded controller to control battery
14+
and charging as well as to provide a set of misc features such as the
15+
laptop lid status and HPD events for the USB Type-C DP alt mode.
16+
17+
properties:
18+
compatible:
19+
const: acer,aspire1-ec
20+
21+
reg:
22+
const: 0x76
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
connector:
28+
$ref: /schemas/connector/usb-connector.yaml#
29+
30+
required:
31+
- compatible
32+
- reg
33+
- interrupts
34+
35+
additionalProperties: false
36+
37+
examples:
38+
- |
39+
#include <dt-bindings/interrupt-controller/irq.h>
40+
i2c {
41+
#address-cells = <1>;
42+
#size-cells = <0>;
43+
44+
embedded-controller@76 {
45+
compatible = "acer,aspire1-ec";
46+
reg = <0x76>;
47+
48+
interrupts-extended = <&tlmm 30 IRQ_TYPE_LEVEL_LOW>;
49+
50+
connector {
51+
compatible = "usb-c-connector";
52+
53+
port {
54+
ec_dp_in: endpoint {
55+
remote-endpoint = <&mdss_dp_out>;
56+
};
57+
};
58+
};
59+
};
60+
};

0 commit comments

Comments
 (0)