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 71BEB36C5B2 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=1777725678; cv=none; b=j+by8OJznyOjn2lvG98I/2G+TaT2X+rOgxGb+QmfQLWVgijUPQc55MpLiAAvluruBCP5pUp7u3UwAa4OqhUoEGgCPsojQIR+cQax9/iUSBMmpEjnuoo5EhI58s6kXvI0H3QOxW6n556+NG/ZZN+MIENPodfO82MWgsctyeYC0OY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777725678; c=relaxed/simple; bh=or+EJ07SOsHtoyrRm94X5M8kiBqJd626zfaT/m/MjG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uTiV+5r3Nh/q/qjOr/78lXR1GFx6aKwcRr4Ap1ZVx6jWyX+m2aTZf9COXs7l5DGBpbFK0MZu5TOg9Gq9lo+J7XZKbYUG++u+dXK/0OkzP/NYyt6+5UnA/d1I4W601JJ54ac7u00c6wJUzLAwcXfmNtprnf5PyZN2u/Aq6BKNSqA= 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-678e678970fso3763968a12.2 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=PT5WE2RQuutJcfzYUz5r8ZTDXczK11/Jd+HPE50tgK4Jq/HkivilKZeYhswDip71bD npnOxwLoiVoKobLGV67dRUPXQYsV+K4LoPvmOznl4N/f1WQJcyKxLR41nrQ39yBaJ1AJ LXcZKJq4JIFYhtTli5L8yLZujqSENmUImyPeQsIQGy5Cej5B70NsSXDiTF8WeMYKnyL/ dLd+WlIMzCdWAE1C+CK4aJeXvHRV08xqT0NyJus57nVOubLbyBrGMPXiADWabnm4mTzz PyYzrr7doeKLncJCX1SY65Ypf8NuF1tJs+TQraQTLzwqa9A5S7ObU4lp1MURhpgxNTxA doMw== X-Forwarded-Encrypted: i=1; AFNElJ9d3hB+yH5mRWQGjemHq7lkdtF0N+3xUBWdzVvPVHZrTYrW6jjmTTp+R0O4eR/lYENLI5JV7sCu4nag@vger.kernel.org X-Gm-Message-State: AOJu0YwN4LwxNXFdTYgetkwadBcRZezR4Tc0dpm/CXqXvHBiMV+TqcIh c/EP/Nm5R5gTH+Qrfr27weL/RDfLiGz2CMnJrzKj3N6LdKZ0PEImYmvO X-Gm-Gg: AeBDietR2B03RsJ/8SraqaN+2lcDsu4CnjGhIFV1Dg9RqXYVUeIPsG3rLDvQpxXPBrT 6JXw5bgE3cO650fi3X1K+dGXTIYFP1QLomvdbjPlAIqY+8jX36JPSPTqEnvV4dW3StL8Z/VTjv4 HtEX1J77Sk5tvpERT7rUhlVu9JwJ6rQzYbtx/hRDlsD3TQsLwZb+0G5a4DO8sr066z6RiMS02h1 6fWmK64QcM+a9GIvcgV5JaRc3jmPRh3oqmtUlQyuKWLYck5WGGRU9aMC8Y0qtw0EJXo4MdKNH6n 1MOheq4eQnIL2+tYt+JANxwpFOcipLZ8DnS8e0I23YaVAvd/szEe0r58lZ3xXjMiwPJqvuIGxfv SNNHj3Z1viFRbatOUcZRdeALZJSLUhJRjcK0R5Vg4pqfSX1Kos9+onwirIQsVQfaNO1jnnhIO+P NvNedAcRK/1Ilr5fZpB99x/pY= 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-leds@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