From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793795188; b=PXivj6GIO/ttfmDqz3ei9ldzyUAR9Y7xMGsVQh1B834nxQgmGJPKI2nQmZitD0FQossN jAQ+R6MYnMgRLH9q2E3MD1xcFWOs1+7/f7RdP++TNW2Z3BhBes1iaVqUB/V7B2TsQuOHR s+o9eEnZfH5GKy0v5vJCMqLVVgv6VSHPpIGtbmgg0mbTBP69Zq8XNJejsTLvyGMyDQg4J 5AOwOKTjSYO9+cDCXhc2luTAxjTAgarQUvq6fBrKjIQL4m/3qZZuWO3zM/IJ/nJIA2WSa wO22hwZbjZTJJWnDfLy10t+hhdFxu24OkdBq/T79Spg53VbOtIuk0rLxqyoAUXzo13g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793795188; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=Y460qay5LS+R/33REWXsFlmhxRCfcVfcAqdFzdNEv44=; b=R+XMTlm0iyB38cSamWalPcYWa8h5C0cmDNCpqSbjn36t2nw4olTVaZQACtEW3dlpeU6L S8MEn7MCLehJQO8mBPyGpZ2Y9xv5paR/7QK52zNC0k18kvSJ7QEFcztySOzs88Zrzjp7s SK4yiY+hCXHBHbS2F/XNYsswntJQBitU3B3QN40gvpeQ9C1OplhVjYRPkHJ9lRrUDK1YP bIN8KyzlpbDfB7dcLjuI/j54rTs2uPOz1DisIVvZUcJYGrSfOTGIAIrQ44CCVErn3P0Nd CLcioUafO0k4GFVDvFyRhd3laGIfcEQtCJqUSCN7OIo5EgqkRL5inUlo+IHomJMgm/A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=zqxTgXZC; arc=none smtp.remote-ip=209.85.128.52 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F03C0606A326 for ; Wed, 4 Nov 2026 12:26:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F03C0606A326 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, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=zqxTgXZC Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4a4d7ae1ae9so6162475e9.1 for ; Wed, 04 Nov 2026 04:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793795186; x=1794399986; 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:content-type; bh=Y460qay5LS+R/33REWXsFlmhxRCfcVfcAqdFzdNEv44=; b=zqxTgXZCedl88xAPuNpOKy5fkDuI/WY5HEZHcMrLocsOyvu65KxpiKziAlKb5ah9B1 yCl288vMVkvMdiPl5/3Vui4txDSN1utH1vfyc20VNcH/IWtCoFQIjxg/mozXyD4ZhAUs Ac8bgLWYI9wAwDxNzSLAtJjWYxxRByaEWfNF/23IFcyXQ2pCnNy/N6B2dE0A4Q8Fa89C hBSxJY/4RN5a22kyLdZf4HkmUM9EfC9uu4b9PdkPZ7o0EIvsezP3JiDCy3ccXu6pqYG7 qCXsNU5nf2+jLQP4XxE8fNz4dp3tGW8L+d+0qRj4W/3AT/+tHGAZOz72gv0JUCErPrqA Ehkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793795186; x=1794399986; 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:content-type; bh=Y460qay5LS+R/33REWXsFlmhxRCfcVfcAqdFzdNEv44=; b=NVGZShVvdE14hzsIgAELDtDATA5sD0vRd/0b55Ub/fBItiZ2rCa3otqbZC/D8nLVts voeGJduXG6KKBkIcoQf9cfJXtJmROba+8fMyqygZrf2FVOfdDUBJkTgAGJdSF6uqWO56 5vTtqvnsBh1Bw7iVI28kegZP7xKhmzcHmxCs7vkZPEvqrzpkFM91NWkcRz0w4aWXLzP9 hT/JsZskB9MJPDhz/COik7paQpDj7k1xhJ9DJByN5XKB2MiOzfAnG5OcYXBG5ZcO37pN f9TFYxPG4FZkrt2FV+am5jxCa9Ymmpj+fsVAlrLbR1Iv50g3xvxdT6cGVsjHPj7d3D4L NeVQ== X-Forwarded-Encrypted: i=1; AKwUvByqdaMlJUrj95KmepYVK21L+1Kn6xl4NOuqacxWfI11eN0XlJ298irSuy1lOPjel+BKWCCra4IuyfWo1qc=@vger.kernel.org X-Gm-Message-State: APuU4Z+FY2Nd7S3ZdSqHvlex846cGi/9Q6vwJv6/G9IW7L+QmbDXKJ45 Xw4RUWgbOKcgoVpui0RrFLdLKsSuNjS2ztceyawR4edDGwdCVMLJxX60 X-Gm-Gg: AYBFou3cbcBIaB/60Ug4RePjmSVEcmpLFwR576LN8EvC4czOgkRXhKAwo3bigKO7C+e icsxWLskwch2WdkOEz+ovryiTOONkvSyC/zIlh71yg4gy6xk7kiWYaLRN/S4qaGzG4D0jHXPK/V x7M1VG4CV3f1/DXppVh42QHKAIx9cGVzvGEoKzq0em7Az9qyp3LLrvxqXtl7qhawvkU9xKTwAEe vl84Y0klnV/cP9nJmMDxh4brsUSelIFF6sxT16EHfr86ITXZTDH3uGyHFxkGGH1/dw4r25Pj+Np xOK1gIrFu8omdSxQkvS791l0OdXGUH6YfZE9qJ+deTAKrZ/EUwoKtkb7rc/bMGQckquqz1BFUd8 3nK5eWuIMDXWkHMp4OpNBl4J98oxncthO5kH1u6V1zYqR3GnTvyXQO3WpjC9TRB88ZRv9R6rFjH zkbhWEALz7nzGKwDcYkly/Bcm/yMRZizZ3aN4aZbnk3qMwDf6RMVU8Kl5Y+sZmcBXJbi3PuKmyR 11NvkAUponW7ex1Sr08sq7EyoxkCQIsg+uRloYdgKSkwySMnFlFccjfMCIBjOD4RGrqto6oJOrd OpH9115KC676kkkq7F7U9OPcPRttL+Vd01oF2/ZQSFkYjymeQQ== X-Received: by 2002:a05:600c:698d:b0:4a1:d97e:cd60 with SMTP id 5b1f17b1804b1-4ac185bd1e2mr362326075e9.16.1793795186366; Wed, 04 Nov 2026 04:26:26 -0800 (PST) Received: from xeon ([188.163.112.62]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4b43da9825bsm50492415e9.15.2026.11.04.04.26.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2026 04:26:25 -0800 (PST) From: Svyatoslav Ryhel To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Lee Jones , Pavel Machek , Griffin Kroah-Hartman , Sebastian Reichel , Svyatoslav Ryhel , Ion Agorria , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , Florian Krischer Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, mfd@lists.linux.dev, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH v13 1/7] dt-bindings: embedded-controller: document ASUS Transformer EC Date: Wed, 4 Nov 2026 14:26:00 +0200 Message-ID: <20261104122606.215629-2-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261104122606.215629-1-clamor95@gmail.com> References: <20261104122606.215629-1-clamor95@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document embedded controller used in ASUS Transformer device series. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Rob Herring (Arm) --- .../asus,tf201-ec-pad.yaml | 119 ++++++++++++++++++ 1 file changed, 119 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 0000000000000..60b6375864aaf --- /dev/null +++ b/Documentation/devicetree/bindings/embedded-controller/asus,tf201-ec-pad.yaml @@ -0,0 +1,119 @@ +# 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 + +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-dock + - 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,tf701t-ec-dock + - const: asus,tf600t-ec-dock + + - 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 + +allOf: + - $ref: /schemas/power/supply/power-supply.yaml + - if: + properties: + compatible: + not: + contains: + const: asus,tf600t-ec-dock + then: + required: + - 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.53.0