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