From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 8505130E831 for ; Thu, 25 Jun 2026 08:15:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782375361; cv=none; b=Q3GPPoRoPK+I71kCBY6wioL1t3QnFW4BUNsG5GchKkZNDkGfIbqir/U8g5VrtL2kI3srdryC16dhB4UzL7SzhhA7olHBh4TONH0lcyKORhLhGRbHl3cv6mxhLcSChpH1HzuXqHyO64cqM1mo8iXu+CGA8rmmIvTru85Zc8kpngs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782375361; c=relaxed/simple; bh=3FsZ5EOWNSqtTNJo5ZjfqWqOVA1HZTXxoLvf10ooP8A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X8mFsBoPxOBUKL/v48zauEsKgAh0J8V6yBdHfAL8Ixr57n9RGsdCovIeSRHSSVt0Y9Dl3jWOlVRFDkEx3sxUWoLjFmEQ2bHEQ0+rW3RUisUm5Nehc0VtkdnHRpABNkF+71iZzRU7PrF3jNuHNn5sCfaQmfO8CjXF5n4zlxOrra0= 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=M4X0Eotq; arc=none smtp.client-ip=209.85.208.170 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="M4X0Eotq" Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-39972d9a66fso17600471fa.1 for ; Thu, 25 Jun 2026 01:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782375358; x=1782980158; 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=0AB/lGNPBN5uckN4odzlPN3QWXl6kpX4z3NWF2IlVP4=; b=M4X0EotqJ18M8yivbNAFyz8VbH/WXcLy46RK/5+aIMe5oS2C6b2pE8AsgZdaBvC0tJ vYJU1vQmD+NUzrygHOjxQYWmPhqtRgToBhbECUOBVkLAXaLtIiMlI8PhWNjqj6hP21it 8GgygGJSjjLLfyZSFCqp5eWaagSgb/aPBIMQrEelKwgiXRBCPRM82AVeH4if1JTAEWdS w3Ya4KEB1NSnw4ewixI8zYivC6299ia/IbXVPY8QdWJJm61oaHJR2Uu9ocPNXn+bjc/Z fbHVHzFN8KL0iyRXmQ9T+gHI4sRAG20V4t6s8znBZrYX7KB/LP1d8aVaCV4swE72a2Jz d2Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782375358; x=1782980158; 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=0AB/lGNPBN5uckN4odzlPN3QWXl6kpX4z3NWF2IlVP4=; b=nkk0LiVFSZFmtXnJpJfX394cPjH31QQmIlprMQFcpuIL41B5ur+U/CxQ0+hIL4p+ZF VPfI8BQgbzEiL/WK02zMeBphLbF8Gq6KCpruPseerLbotWxcz8YMmZDz24tJ5bqQ9bx5 0/UjnBkQkj2v+9u/jHHHtWhY+G7Al/vHNGSKx1vtfxbh8PhljfddpBFn/Ly/vvl/BP0S nRAGvvLr+ULIg1fy9Knt04D16jdvPhNLeVNS+S9aGxOhND4FOVxe6rsw9ULLgFL57U+c Z6/rg37MMLDtHePsv66/dffXrE1hSgu3C7JvI0tCGNXqMKApNvyZQCud6pTEDK2LV9qg Heyw== X-Forwarded-Encrypted: i=1; AHgh+RpIQdv9eBHY2dCILWamMQ5VWbe/dMLpolYwq2YNUmJvpDh6F4XlnIq2YmjNXJBOKQRYbldtjIPxoJOWU3I=@vger.kernel.org X-Gm-Message-State: AOJu0YylVKFiXz0Smz+9FIrlG2kfqJGE2FajK9a20nv15oGfI6nkzZki SjAoNR+qkkWf0e3ZcHLkrhu98mXxlgJodl+d2g570Djj3Hl0vlMiKjtg X-Gm-Gg: AfdE7cnKnL2cqhSmcOAn+SXvBVaYTipSqX9Mylc5+q0XOb4g+RsMgSy7ZWOv3R/C8Hv n6us+yBRDPPBg3de4W/WTmOKtwFY+iBr1c7i7RhUm69xYbwTcmjUX8iYxtNYLZn9zVfFJwJaazt /rjev3NeMgCRwp0cZbMACHqD3RVCDbyBMsBBznaZkiastWPAa0KRsAYETUZOPbzajCIJGaOx/tp t0hcF6B+4dhK3yI0NRBJzoVk39L5p+fVW+VVMEht9eHZePlYx81nfTHJeeEZWs+HDOgGpvCoqO9 v6XIaymcxI11jqwV5RiHVQLOBaEb1WSofqqME98a5RNJVQe37XhJJgQ7uHOuc+MQE7W4MklCyq1 KKDED1dWvC2h8HfCF32cOPqCm1IfgiCSN9bwu0lPlgJSGtOi0lwSDxdN1niW1XiLvwe1szLwMmz HzaBie0VyaF9I7ZRffYEIAUiUCE4L2OyOgdw== X-Received: by 2002:a2e:9acb:0:b0:38e:d3ec:4f91 with SMTP id 38308e7fff4ca-39acb55f8d6mr2989861fa.8.1782375357649; Thu, 25 Jun 2026 01:15:57 -0700 (PDT) Received: from xeon ([188.163.112.61]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3999afce64dsm39162221fa.14.2026.06.25.01.15.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2026 01:15:57 -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 v9 1/7] dt-bindings: embedded-controller: document ASUS Transformer EC Date: Thu, 25 Jun 2026 11:15:23 +0300 Message-ID: <20260625081529.22447-2-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260625081529.22447-1-clamor95@gmail.com> References: <20260625081529.22447-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.53.0