From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f65.google.com (mail-ed1-f65.google.com [209.85.208.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E889E2FF66A for ; Sat, 14 Feb 2026 18:10:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771092621; cv=none; b=RAg+bMTtAuIiNDfZd81BaGif/Dg9PbUFcSsrlKVNJoW3YE/uBYGAPasjdICEYl8MJbzPFMQ2sTwShF7F1f6tuerzicvKzvxNeXFAYbVRW0P58wZDNUhivar2msytHJPRn2pKb6dNnL5d6+dWUhvBGlkwCGxM7gN6/OyeBQC48Z8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771092621; c=relaxed/simple; bh=QZTJEwKYzV2sVRqc06XpTa0kqL6atv45Fiv22ciLWLc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EqrsXcs64QEKz+vUuwnyg0xD/L0kWxVQSf0zoeMU+wO4o71haJMdt/JdZo3T1UHNGbuWzJLywk7lzeBSS404Uo+RVMrEn1CObF9kyAhDsBbTLhlsyRY5rT35DMLXCuZEJOtynBv9NKwcmgKLfTgGDRWu8gsNfeylQfDgky7s224= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ODBjkYYD; arc=none smtp.client-ip=209.85.208.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ODBjkYYD" Received: by mail-ed1-f65.google.com with SMTP id 4fb4d7f45d1cf-65a3fdeb7d9so2885889a12.0 for ; Sat, 14 Feb 2026 10:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771092618; x=1771697418; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lWhSjDBNQ6gvdK4qfNH6bG1uloMhrN0yff4wPN7T5UQ=; b=ODBjkYYDEsgb4K3M/ZMvkTV37qtS4lO/SwQOY1Yqp3P2KEo4JxBtRoL3vlVx7ihLmZ ejQWJM3xnSeCNxtNTFj4BsxXbMw11quDSoAqKlmXYmoisOaCRoNdHMUvLTvJhVMClfnY Zy/o8BNzetho3EQlhNW3iqwIADDNX93B1nwMyFklZfLdzcDEQRzw0dXLfUzNFlK6cKKp TsjSxpCsIPl4IdMydx3J+bIVTEIl4YZfUygUVqMUihVfDvIzyXuEuD1phL/p51DTZKwk stFDeo5qMSFfrmt7lXlWpOigotIYRbsYmAuP2AyXvOIKqqOZ7lCG25BiHoQCSow1Pxqk +3Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771092618; x=1771697418; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=lWhSjDBNQ6gvdK4qfNH6bG1uloMhrN0yff4wPN7T5UQ=; b=m3a+Bhuv6aA1qkynPrt3dwF12+dnsPbiFVb38NQO8brrWgWyweR5VjbKYKdEaUWuf4 93UXJ/EN6XAzbKDfgxSIiLhEV7i6z+pMTCO/i5eJsel8Drkpsq+45NpiZ3Zkdv3r7Ocw orLUt11sdKr9Q6PYxCZhPNpxpHStKwCH/C2uU5C0oa9q9X0E99vagF1IcXKhi8cwletE 2wq+F3MKgRsHXga3oKROzyolOhWze6iTodANjj4+lctelTYNFfyisDaR0oEfeSkOSStB p3lEOk51I/3rNswkyOucxQoVbEqrFVx3GLk/M9u9VqjtsAIMtDMkOdRzgOrHlEzUPWH6 QycA== X-Gm-Message-State: AOJu0YyVnHRpXf1PtT1qxcM1ls3tzdh2vVFWXjiVJ56UScCQNYzU0ewh EyLIXdDNnOtQWgG51bv7FmYk5emyi115XsX5AVrfpRDgzvHExNb1Racz X-Gm-Gg: AZuq6aKWq/QVQ+vAdqoES2UOAx85s7FDlLFTSTgShwkKeOTD6lLbNY0uZ72wnAk/h5K mc1/h5bCVyZKJDtmBtAjCb9AgdUmjNJvVR0/3SfT7jh4f8tgKmpTVRIkIxEQ7ClpPK1/ZYrCWuK IJ37eOLJFlyh3vDGlwBOOnz771WHTR9Bnszjw06cG6wQpqA86WMzGnUo9zfcsgNUKKwhlFB533g hdzDqIdcbCNVcH3QvlVWDlq1HE63ghHMVXhbGbVHVrj8r1sGKQVMlvZppLjMoqoBlHqYCpWddEC DNUB4O7mRKxx0AYgfGaeuNcTderILDfDOqmJlAtNSr2ttjLkcXXhg5HAmQ8zxgD3FEfuLMWzx2n Y0I7/bq7sjE3pObzlHWIYFEvmJN1/04aaTBZjDc85RoSdvLxU6SnEIOoTMe6Cmwl1ZHDupafw6k N48VFI+vH2XuqVS2RZB7bLKhQ= X-Received: by 2002:a17:907:3e8d:b0:b8f:b32e:e1b4 with SMTP id a640c23a62f3a-b8fb44a8219mr338323866b.42.1771092618132; Sat, 14 Feb 2026 10:10:18 -0800 (PST) Received: from xeon ([188.163.112.48]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8fc735e506sm88122066b.11.2026.02.14.10.10.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Feb 2026 10:10:17 -0800 (PST) From: Svyatoslav Ryhel To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Lee Jones , Pavel Machek , Sebastian Reichel , Svyatoslav Ryhel , Ion Agorria , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH v3 1/7] dt-bindings: embedded-controller: document ASUS Transformer EC Date: Sat, 14 Feb 2026 20:09:53 +0200 Message-ID: <20260214180959.30714-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260214180959.30714-1-clamor95@gmail.com> References: <20260214180959.30714-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document embedded controller used in ASUS Transformer device series. Signed-off-by: Svyatoslav Ryhel --- .../asus,transformer-ec.yaml | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/embedded-controller/asus,transformer-ec.yaml diff --git a/Documentation/devicetree/bindings/embedded-controller/asus,transformer-ec.yaml b/Documentation/devicetree/bindings/embedded-controller/asus,transformer-ec.yaml new file mode 100644 index 000000000000..670c4c2d339d --- /dev/null +++ b/Documentation/devicetree/bindings/embedded-controller/asus,transformer-ec.yaml @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/embedded-controller/asus,transformer-ec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ASUS Transformer's Embedded Controller + +description: + Several Nuvoton based Embedded Controllers attached to an I2C bus, + running a custom ASUS firmware, specific to the ASUS Transformer + device series. + +maintainers: + - Svyatoslav Ryhel + +allOf: + - $ref: /schemas/power/supply/power-supply.yaml + +properties: + compatible: + oneOf: + - enum: + - asus,p1801-t-ec-pad + - asus,sl101-ec-dock + - asus,tf600t-ec-pad + - asus,tf701t-ec-pad + + - items: + - enum: + - asus,tf101-ec-dock + - asus,tf101g-ec-dock + - asus,tf201-ec-dock + - asus,tf300t-ec-dock + - asus,tf300tg-ec-dock + - asus,tf300tl-ec-dock + - asus,tf700t-ec-dock + - const: asus,transformer-ec-dock + + - items: + - enum: + - asus,tf201-ec-pad + - asus,tf300t-ec-pad + - asus,tf300tg-ec-pad + - asus,tf300tl-ec-pad + - asus,tf700t-ec-pad + - const: asus,transformer-ec-pad + + reg: + description: + The ASUS Transformer EC has a main I2C address and an associated + DockRAM device, which provides power-related functions for the + embedded controller. Both addresses are required for operation. + minItems: 2 + + reg-names: + items: + - const: ec + - const: dockram + + interrupts: + maxItems: 1 + + request-gpios: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - interrupts + - request-gpios + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + embedded-controller@19 { + compatible = "asus,tf201-ec-dock", "asus,transformer-ec-dock"; + reg = <0x19>, <0x1b>; + reg-names = "ec", "dockram"; + + interrupt-parent = <&gpio>; + interrupts = <151 IRQ_TYPE_LEVEL_LOW>; + + request-gpios = <&gpio 134 GPIO_ACTIVE_LOW>; + + monitored-battery = <&dock_battery>; + }; + }; +... -- 2.51.0