From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 A67334499BB for ; Tue, 21 Jul 2026 09:53:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784627593; cv=none; b=HisIsFU7dZ7XHIEfWnFZVALTYQwFuuebFHhub2DORvEAEuzO0d5zg+JWVbEqg5ZtuepQWs68KgRc/VdNDKENDabvDKlK72mh4HMTBsDjOpftSdq4QFcGTMQmciNE8e8kl76Hh/T4iHxYrv4A8PKjow08C8QLeUiF0hZpZnMdY7s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784627593; c=relaxed/simple; bh=0ir6EEm9FNQCLp9OUbkjQzJH24SRp6mnaINdn/CT2yM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Kppu7ZBOS00LVSSnGjzyDYtM9NtKUkfg6jakZx/w7F6cd0KTNnpA0WKkDCrGPOnQr2vOe57RKrjD8jhtjuspVWK4wKzwHxdgfjj0BtOqtTRLHBkXSuPA1hPBWbAcIUE13F2c8c9kt4bxtpnXdeoV9syzrigbzsXo9WR8/y92fuM= 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=YsOOpwQ+; arc=none smtp.client-ip=209.85.128.53 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="YsOOpwQ+" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-49547fc63a0so19692865e9.2 for ; Tue, 21 Jul 2026 02:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784627590; x=1785232390; 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=YsOOpwQ+3wfC0e2UXNFHanFBM/BVD5SaU4flkwj/lb4t6xsTB6dowmnnSHlAMlI3ug KpBbsNrDtTMlF9Jfsyz4WgZRLmN0LqMwTJ0LsnEOznlcIYcJLOIaBx//jwnLFUIKYBhy 5DLHOmTE1xFo8Qnw63/Y4nXb/N6S6RUTVhXrk9WeGlLnhn3Kle/WXVFPN2WubL60GQgr FBYoGiDvedXc7Y+eulEzpLiN43koGYjP2I/W0x1RQSciafRvfTSw3zeqaiF958o43xbz yBNp6Bvq7XKPi5fyqwPqBrjrGnU40gC95XJhKwADxJtgxsHEk7vhYWgIIUNWuT4kxFH+ HBvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784627590; x=1785232390; 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=LVGk0EumcUYlQCKfD/agxU2Qio539spE5DLbgqPdgKM+hX/DzgoXTIV4kMiLuz6VQH +1caZqcqfNqy8nQpyB98vIaVAjwvK+Xy8fT+IWvFbZwyrbuL24D60VLGJUqFVS37NniK n/3CwmBWZJgqK7l2AaftyoqTTaNISlVwUhJRKQI8DUU6PQb42x9xNriG4SU1KvPJ3I7Y nMtnCJQvOmtait3MDVyxHjSozud7SMYHGtcqFnOHOLeky+fz/LOcf5DmvZwZINkVSpLS Y+JZ9pFgGfLChfy1Rmt7dpxVXDACRn8krfpRM0u7yILbG0E6z9hWNPOtaO5YHXiX7Qeu Hi0A== X-Forwarded-Encrypted: i=1; AHgh+Rr4Yp0DnIjERyy2oyNP6qa9UwSDSBPVNQB+hcoJvON0WITKk1Zy6KK9PIRaNcmxX3XW6UXmHWjZ9V6ds7I=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7WevXoZUx+f5lhQh+L4SamBkfr6JrQhAfQMc47sINaP1mjZKF 0gb463u1WUxT3WaMkrOHVOHxux+3PHAvqlC0GbgIqLQjOlNVP9H7F2mT X-Gm-Gg: AfdE7ck0LGBykzBbcLSH1ItGbK9f2HUkpNzENCqgIbKlHHlyqMlA1r8zxnv8VP3B0XN mZ0PLJHwBJ3FPn1FD7Gs6mwLOBNInUE/eqxukKwHRboPm8KzqWeW8MhFalksVu7jw71mKyQRbK2 iGRYrNuNEdBTN2mPiY0kHyz4jj+HJJKpqeINvVJ+fM7m1hkh2SFM+23q+I2fm+9Pbhbd7LzoDYd D17d0gvr7aJdOPSUVcXezZRDchjvCMHFhda0sLNGlEZpe9rw9lPNBeE+Vnl3e/4PsamsKziXprF epeAuRErUZ/onP/5StLjukPz4vP1LqiSaQwUMjlLyGDxd3yniMplqjamTGth4hbFr+EjxWf3Cmx Q2AYdRlSnrw81RGlp6LCoIMGj14N548DgZ//zpoHVscBErUqbUvUhz9zO7EB6/WjaXEsWlb8THo sUW5Xm9AvnxFrwJL9M4QEjZ2I= X-Received: by 2002:a05:600c:5490:b0:495:6130:7805 with SMTP id 5b1f17b1804b1-49561307a51mr66115845e9.14.1784627589765; Tue, 21 Jul 2026 02:53:09 -0700 (PDT) Received: from xeon ([188.163.112.51]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49565482c5asm82834285e9.10.2026.07.21.02.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 02:53:09 -0700 (PDT) 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 v10 1/7] dt-bindings: embedded-controller: document ASUS Transformer EC Date: Tue, 21 Jul 2026 12:52:27 +0300 Message-ID: <20260721095233.420823-2-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260721095233.420823-1-clamor95@gmail.com> References: <20260721095233.420823-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 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