From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) (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 26FE9345751 for ; Mon, 23 Feb 2026 06:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.67 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771828294; cv=none; b=DHXIVUTUE7qiEMjRjutJMP66sxB+GO5yiAlWL1GA1zUqXz63vOJ1x9z/mEhTDx3jpsJn3mbkqKySed4nvL9ywmRGV50lZja0/TJPoHvOUK3VPdm93dU+FZQurfTrkrJETIuHR73hSkTF+0Uy5PlUDepD2ORkhsIv6WqHI2qq8u8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771828294; c=relaxed/simple; bh=fvsNiW04qW3AIrTi8INmyEkzbGKGRZylVzn1kRv9504=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KjErupunCF/k5lPrBum+tJmkuQlHac/z0x4fJt2Y4Ne7A0LUahM5PS27cI3p+6mJ+AyHvYDIBHwxc7xgb7OomEhMoxdeL5VCgicKPoVAc6JMAzHwMV6rGS+8r4cRHtc3ZQgikYKCieh8qraFjxN0mQkXVRfyHPPKqDttmx7VegA= 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=exVVAmtN; arc=none smtp.client-ip=209.85.167.67 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="exVVAmtN" Received: by mail-lf1-f67.google.com with SMTP id 2adb3069b0e04-59de66fda55so4406310e87.3 for ; Sun, 22 Feb 2026 22:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771828289; x=1772433089; 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=baZZ3I83Z7duoBmCyUC4MTXvnHqhUiDCw7gdIgcx7ZU=; b=exVVAmtN0qT61Z99T6Ogq1td5k9DMeVl3n24HmPpDe5lOXpofT2UNhmDTzmrg6mQA4 SsX2Y9ld/dUxZbFoloLiDCh0kaChVRmLdMOyuew5wyr+EYpHfd7RhYmGCkojaaabys8h lf1FYGkzUjRjJ4Q7/wilO0toR7DKARkJGD5p6yyzTX64GIQeDuIGKQySFD1gebcnkljq LO0SGDv+gBmUJdCzpMFOq3wS7Y6TIqY+fCPQJLCKNZ04HINENuoz1f2X/MGZzAdPqbAh MmYMbC7hr+IpgpAOZMWyH6NPD21MMvNg+uUpx3saGtPCxSWqgOyIEMALZvmSBrAFehZf qy8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771828289; x=1772433089; 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=baZZ3I83Z7duoBmCyUC4MTXvnHqhUiDCw7gdIgcx7ZU=; b=LEnpLxSf66pDMJdre4T4tbgqQmYGodhPAtZ8GkpYTpQs5YIwgmP3RTfHPHXWs6I/Yj u3dIAPr96xT3kYLWFu7x3Zwf2oGi/PDmtEHOuWc0bA3LBDJEIyHn4HeuCR+J5YDPdBTD PBS3YVCXFeUNg7IjUXbwnEO++eJjjYLk5QaggEn+sq3hjCs15zl99QL7ks54o9hEyh2g n7a5BNoZHS8G0f37AwbrF7AZBsOyoZL2lDeLDC8AYQz4OnSTX3O8tuYdHxupAhYsEu/5 JU5ZGezQjX0Zq6Z+j4ZioQNULGcgiOumpOh6Zb+Sj8mu3FnZZn3f/pzcnomziYh/QFxM yLMA== X-Forwarded-Encrypted: i=1; AJvYcCWzI1FU1yJYRuVnwIqC+0HtMjQVNi9noWsLZa5mYID4RfAiPKCYV9fPOiZywWPM5/jZEqQzbU5qRMEZfvE=@vger.kernel.org X-Gm-Message-State: AOJu0Ywsu2X8K9Neep3Cmbbm7aebqRTTrTzh/ZkB/0ORFmkDTzWzUFrY 9FAfiemS1FZPIk202mPjUhjdC5GhiLBOGSXGd18EocqfUEVfxopRX0GR X-Gm-Gg: AZuq6aL63Bf3WjqP4r44V4kvq9P52agKoweNTAmCa9WPs0Q2yRsY0dKaKrXTESMRrQV WTa6uz7UdxdkfJOsJ0ejYms5jrTn8h5W+fRE24eN+xP5W2qB4sohoaq1MJFrpt/uS6wx9sobgvm 5XvUFAD6/kPpLBBbEMYPjurRtk0UPpl18yd60xZPc0ehlaJoiLcmgyYzHJ/aR4uBf3injsnzbeW 2loz4fDR4ACOToIPC70Aye2cFGk4YEEoLvBNkS3v/IseUxmCFgzy/t6Ej0nD64nuWpR/PS+KsRk qbcjTZitj373fuhfPUUw5eHKXQZF1ltmfixsXQL5kcEkorraTwaV9IIS6sCA3P9pqb1+ltBHJKO MgvhQr3Xz96YwM/Nz4IhOQxrav44O79MCZovhpt4EW7MM3Vna35O8quO7rrm6BkzNQmsTdhZMXi 3RyepnRd7/AK9r X-Received: by 2002:a05:6512:4007:b0:59b:6f3a:9c80 with SMTP id 2adb3069b0e04-5a0ed8a5136mr2397079e87.23.1771828289037; Sun, 22 Feb 2026 22:31:29 -0800 (PST) Received: from xeon ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a0eeb14596sm1361320e87.26.2026.02.22.22.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Feb 2026 22:31:28 -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 v4 1/7] dt-bindings: embedded-controller: document ASUS Transformer EC Date: Mon, 23 Feb 2026 08:30:53 +0200 Message-ID: <20260223063059.11322-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260223063059.11322-1-clamor95@gmail.com> References: <20260223063059.11322-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@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,tf201-ec-pad.yaml | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/embedded-controller/asus,tf201-ec-pad.yaml diff --git a/Documentation/devicetree/bindings/embedded-controller/asus,tf201-ec-pad.yaml b/Documentation/devicetree/bindings/embedded-controller/asus,tf201-ec-pad.yaml new file mode 100644 index 000000000000..6a61c88f9046 --- /dev/null +++ b/Documentation/devicetree/bindings/embedded-controller/asus,tf201-ec-pad.yaml @@ -0,0 +1,105 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/embedded-controller/asus,tf201-ec-pad.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: + description: + The 'pad' suffix is used for the controller within the tablet, while + the 'dock' suffix refers to the controller in the mobile dock keyboard. + oneOf: + - enum: + - asus,sl101-ec-dock + - asus,tf101-ec-dock + - asus,tf201-ec-pad + - asus,tf600t-ec-pad + + - items: + - enum: + - 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,tf101-ec-dock + + - items: + - enum: + - asus,tf300t-ec-pad + - asus,tf300tg-ec-pad + - asus,tf300tl-ec-pad + - asus,tf700t-ec-pad + - const: asus,tf201-ec-pad + + - items: + - enum: + - asus,p1801-t-ec-pad + - asus,tf701t-ec-pad + - const: asus,tf600t-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,tf101-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