Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 108553DEAFC for ; Mon, 18 May 2026 09:59:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779098383; cv=none; b=mKvmnACI+8FDgz5hGk7/XSgKzsLEVHuD95RYqH04h/dcS7Ic/+85qd9MlbF8B3TaSKu20Kt+CbdBNJQ53KYpLZnVcarjmz0m/F1wbntHaNK/dIeTUl5UxBFr0rEecwCSudGhUwA7NLCvuVLEQjFzT0QWGSduJf49SGTb/GEU7mc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779098383; c=relaxed/simple; bh=or+EJ07SOsHtoyrRm94X5M8kiBqJd626zfaT/m/MjG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=COyKXFd3gxTJOSzVS6p0x8dyQvk7KjhHylr/DXvYTBPpIn1xXk8o2JZzFAynpQ8SQeMTFEtNmmJM6X9b9lcdVRlLPTLdNiTjwgl3ai0wAfmAi634fWHWywNeiw7VIBACAK/2zCvSkBZpsqJVmcrmnFccR51CS7aP9FjDB17S00k= 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=MhHlK+PN; arc=none smtp.client-ip=209.85.128.47 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="MhHlK+PN" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-488b8bc6bc9so11357295e9.3 for ; Mon, 18 May 2026 02:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779098375; x=1779703175; 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=CuxBA1Jnwii0AQo0AYAcpS9dZCQZKs+YbA2PPOQhDTM=; b=MhHlK+PNKlu/c34xaAOmHYeAhOebNMkpHJQtL2f4SKgGigePk/5RE/Qvhzjs7lRJZi VMecwnoXqipnrp7G5nKmNz5lWksaYfqybUWvLUBThrkwAgjxUkZCf9eewGLRciqnw7RO 1DgJ63ygH4zpTpHpzgTuhZC35LzhCqzqVBxcystfJuyBPzUuDVUsa5KllFvX9SFtjyyy mjCOZ7VnTfFlvKZf7Atj+gfkhsx75GztCoVozOyfNY4dCXhDJ/yTNLNPk9eBGX2x7jlh DlQh8nOrnYVscQwMfuSlbAuyjMrPEB3w5VrSVtZu6gTn04ieUw59sD3XblsvoFPaguSL 53gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779098375; x=1779703175; 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=CuxBA1Jnwii0AQo0AYAcpS9dZCQZKs+YbA2PPOQhDTM=; b=Sk84qjBLWOVJGlk4JII1osrS7Yi5qt8aIJLWt2+gWj5CHuaGhfUAGCrLq65rJ9Nq0L bT5HpGXaUhrujNooFo8JdCu3f5fti3Dt8q7VlD3NJETp1bZMTs2aLKRYI4wdaGY/kRT9 cZsiUEKiYML2+7frvjjdz5hRUskvPCBNRAfE0IxCPEOtGgwuhWr0azGN7IR3echS3O5q ttQl9Om/VwXBmQPvp1kkN9uaJ0saW9+yHgWJk2xmkPw3XNxxGKZghTrhuSkPB3jFH/Ss WNDMva9X5ZjOEakMhauvhlE7F2ulL+OsGby249kOB0wsEpdT900vLwigaTUU9nT/awO7 2CvA== X-Gm-Message-State: AOJu0YwEV+QRU61nDlhaQbWzaKjQqPe4bsicqLaneU13zmW43YYaWK+T r2UPrgEH0H3obegvEEnnBLx+7ULGwLUnv03T0a5EA8SPOKlsKn+xPSQh X-Gm-Gg: Acq92OH+2sKhSxy9vKMzJpP3W52VPnzmqzmITkv99/6micPwmfKujnBFMUg+oxOpFnj YeLaP658s12qm/GSLD1hLfU+2Qni+sqgnXagc5uACziZMKBFGPyNGlY/e6OJvj28GN/FVHw39NB EHMb9xv9L5C+fLevJdUkiK9cGf862JeuscLD6dtnC3Co7et7K8biG3zRXcR8TuSyG8t4i/ID4QN ulV9ge1DO3eKqMj67ltg2aGEp0F/e1vXpztdmDogHChsQyBYlZ9Aer429Dd8i1LH8ouV4kVRVqt jRayn0lZw7v6MFItvtTb5PyDYFcOO0ZeXejb6xSuN/qLsqQ/BQe4HoZNz5ipLt4+ZKOEMBRDYJM QD/XZNIRkAfaazfqzptFrfkpdFhexT2rVm3Ikyx/gYw1ms5p7viAM3R8+s84/x/l5EDfmR8rr+W 96kGwV5aSbZD0+Fo7hhgHp1XE= X-Received: by 2002:a05:600c:630a:b0:48f:e249:4094 with SMTP id 5b1f17b1804b1-48fe632663emr252629925e9.18.1779098374859; Mon, 18 May 2026 02:59:34 -0700 (PDT) Received: from xeon ([188.163.112.61]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48febe7dd22sm102995005e9.7.2026.05.18.02.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2026 02:59:34 -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 v7 1/7] dt-bindings: embedded-controller: document ASUS Transformer EC Date: Mon, 18 May 2026 12:59:01 +0300 Message-ID: <20260518095907.36158-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260518095907.36158-1-clamor95@gmail.com> References: <20260518095907.36158-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 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 000000000000..60b6375864aa --- /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.51.0