From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 8136E36C9C5 for ; Sat, 2 May 2026 12:41:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777725679; cv=none; b=JL66ujouP53bokRKrNO+0eYwPC1q81u63CsjHOPyCThgKTFjiDRMHcr1KaDUrExfhA/yTB9NVGmftxtV7JHbRzivUJRO9joZnmYBZeJ7JYxMKusNbjUgP67i03YbmNzMspa65+wunjpdZF3PEd0mknyducJAYvKmTOcqUXdWnbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777725679; c=relaxed/simple; bh=or+EJ07SOsHtoyrRm94X5M8kiBqJd626zfaT/m/MjG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JkA09+SFyPpIXA4uaMVuZyWAtpUhSr26xZXqiP3jeLkqsIMt/vy3vPEdcbl8xNHa+Y559il0YCRglJO4nUb7TxEsPsBLvUH18PeWqREhzcxBP1r8wF3amLuG67RLUP5GS8LKkojyFZOiWHfFIzM1GqBk6BiOku/zSQDhsnzdSuA= 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.52 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-f52.google.com with SMTP id 4fb4d7f45d1cf-6746d0b2b4aso4348114a12.3 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=W9q8+ob/F5fprStgnN+Dx7SO0e/JO7cEBZPJ8GkfMZj8k6G5uOIwGftFETxZngxDdO e0NK2hs4KKrCGDCE37haXkUB1bC1CctgN/3p0PDdXVkprgduH1iyB32vm8fTtkaX+1ys epO7Nu1V4DGrKNRN+kHPEpAH3+uoX+/VCH1/JMP7ZgyAsSBikZIAR9Y/8j0wCHUNz19d w71Ua+IoFY6t76LkBGOHi/cM7UXNsYgNfoI7FtWMO2SfMF1yeQXDlhW4U2jal+rLX1Q5 3xFtBHtkBYK724iPEr+8stgK8VaEGprw2rJ22RJd61UWj1NJR8GY1NvgamUAmPbLe8j/ Qnqw== X-Forwarded-Encrypted: i=1; AFNElJ/dJD1Ze83ToYqnm2Zsp6FQKW5aVHtjKSMVLaFt/TLqQOpd+91TaZ+lm6qvhiQr9CXYX5v7DuierQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yy+7spfY7IanImbQXeer/RXqXQaGuJI6xatTbKbPkXZyH23Iwz1 ujUIdJqpe6WCPt4KqebA7CrbuuOn7E6KmdOYOs+Kuv52XO2x3ag1+u9a X-Gm-Gg: AeBDieuJlTRpenGOkDGz9LxdVkrCmUT2GhdBZK+01+zZD3h9YKmuJHmzlMMIgaUtytV 39ii8gc+PEwElVUN8W0LOknDTKn97W1C1SpjnaKWRe/XVyp+OLpQwhXRQYXMxeKMiyQB+lw7/2Y VibkOAHWY3j4oKum5kjZZjuSWaYpZYpDDdimQlGooJImpueR3UJDgKhqtouOn5GOVtKzvwTF4KB Q9raOq2AUqNAlUvEc55p7A16nuj6D20UJ2UYoHC4ydw5jAR6kugRYb9kj9uN4zgredjk0m8XEd0 ZVW+uvZQW6hYwrTOd9gb1e66pR/nO5W97eG3YcCIhUixnCn9qDL+rgEyQziv3cStXKLRpHfhkDB 9qbSubVcG5Yipr8oM1sdJ3MLcfwNey9RH8iEqjUkxg7qkdd/JqvHukqHaYANuZK4mre/XCH1o7Y m7fyCDVH+T4H0kc43abkyXX4Q= 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-pm@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