From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 71C8536C5B4 for ; Sat, 2 May 2026 12:41:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777725680; cv=none; b=LnYn923sA9rWTFwL8BOgbvczIBoF8o2n5ESATG+UOA02xOfnHN6BwcU8YnNwpr68YRCCBj5R0HC+u/OvVSmv5kWkPyCFZ5xUxJEIoBOhS1U3hdEF9K3SzzQvkuVcXNqS6120RyJVcEvzDm0iJ73juwx6l6VKC4Yik9CD74/rf/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777725680; c=relaxed/simple; bh=or+EJ07SOsHtoyrRm94X5M8kiBqJd626zfaT/m/MjG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UiKO5xLK5rqckJ/fcdbx9BTCC6ZBD7sLOGqN4199lbOxXe7wvgZbU1awSfYMclIGOgBnVxavuL62kcftHMQ+8jlWOb3nBZeFCI09Fh+KR6YksxGI0+zSf/rc9K/eOF4nvK6iku6g7gXT6C/lPRsyMfzJTRaVItmblqEfzdSctSE= 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=ZHfA0+pL; arc=none smtp.client-ip=209.85.208.41 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="ZHfA0+pL" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-6729c6f0ca7so3496331a12.0 for ; Sat, 02 May 2026 05:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777725676; x=1778330476; 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=ZHfA0+pLz+WXqOpHFmZzji/uxrI6Zwgz5zek+JZ0XVlKGVPVvnvraFpWcm5kI6x6AZ /y4SG8RuyNSuK/noEvqzG3i0vgerbOHeLPuBF8Bw+n9n0PyD1uVzPyRbUj9BdG7zgR+l EaR/AvTZl0rnBkII4yiF53q3RzEdNdl59Ro5eI/ef3lSACAlPLvpqZvpe3+NwhnEuLEo jbo3MVbPLRtIa6MJREf9N903J3DtkXf/AFQdmPRLDvvda76KAuMoH5N6RUXKaSFO9qC2 Bvhq0UXaK+k3HTrjm47+Zwum4/RShfON8H85gWXtEqpP1Y3cU1o45zwPx3zoBuSGmge4 51tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777725676; x=1778330476; 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=qseacG5SUzw3xLK6vPihgqyFThESa8d6iF5MtzeYqB6GgyXopwRglvtD8K/dbM4L7Y OHTeqGTpaSOwbkjkPPgSTBrUhsjXt/kt8+ff1zAM101MbWgKcY3kHdpyS+HGGQiVs+m4 TAszDtCkhJRRBNNjLelKXak26jkHWoJQc2haZJ2N/Z16WNVNLf9gPPzxiSJg2AYJawju 5ZnZqNkwKsoQVU9dT8QM4qyRkFv2FVVD+g8oBUes9lyaADCHE/GwhqI2GT1zMBPKoH2Y jPx8iSFbZ4TZo9hyTUUxOevaMYMUujV1TrHZnZgHWybuujjxtFQcibXiNfd591DgwNDO A40g== X-Forwarded-Encrypted: i=1; AFNElJ9jVEojZjAgMPih2KhX/uIY/8RUm4dvj8bEMf+zQC+RxLKyAwG2J+JAAHETmzeYX7HtRKEx4QlkinOjVi4=@vger.kernel.org X-Gm-Message-State: AOJu0YypLKG0Gnm2A2v/Q3gvLZ2GmpjygRebj26H+A5SoF1WO80c0IxC vjR1NDKimtRK1GdeC4DLGxgOUPqjEDdPWXnP5PfWu6mOWqhxnIU0N+jq X-Gm-Gg: AeBDiesDjuHRQEzr+u7+t9ffcNlnjbpCy5PkLvlW55gC0RK6WbrLKaUmxE0HmPxT3R5 DCja6BCHly9Sy0MSeAyVsuqHqwSfA+UI9bgE+TRvL269AE7VTiQPEVMuDQeiorXMUMUbwxawobE +wxbhuHc+ItIWoaMwK+SAfzFDUG85tfoSIDSQMLs3PY94gozNxsvyqX3Ra4wCm6ai2htjtGAGPQ m4IRlXqMp00xLFyHvmQqf9hY7RYDzpuJ49JPnZd4KC/nfW75azmWNnABfSilH4lXpRPWzLisFln mdD1ozbCov88h8mUJRAobxY1GbqiJDYG+7URhEzQVl6CgHoCsl+TiE4eTcZNXHJJQjLAWndvg+t GaZbeLLmCZSFuRUHUfaP6GbVTJYYELflt8JL0kFJ3adcw0E73sWLCs5RE9A4SAmQNh3U9kQK3/+ 2N+v0GyQbiBUcTHrbxQ+7np/I= X-Received: by 2002:aa7:d1d2:0:b0:670:8d90:e861 with SMTP id 4fb4d7f45d1cf-67c18ac5421mr955797a12.6.1777725675575; Sat, 02 May 2026 05:41:15 -0700 (PDT) Received: from xeon ([188.163.112.56]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-67b85e281cdsm1649649a12.3.2026.05.02.05.41.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 May 2026 05:41:15 -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 v6 1/7] dt-bindings: embedded-controller: document ASUS Transformer EC Date: Sat, 2 May 2026 15:40:49 +0300 Message-ID: <20260502124055.22475-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260502124055.22475-1-clamor95@gmail.com> References: <20260502124055.22475-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 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