From nobody Mon Feb 9 15:26:21 2026 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) (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 DF8F732548B for ; Sun, 1 Feb 2026 10:44:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.68 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769942658; cv=none; b=ZABH85Jf4YNk8X33QSLWFb0XF6xMUBnjUA7YKVNmJ/ipHCZWTo7NOK4YcYCVRyYTtSOEBh1ov6Mz9bgCybSmHnj8+Zk+7au14rp7cnJETqfSW8zXwBzXU3ydzUUBkl+OqQq/wnSN/HuGNs+tOmKRKTw4Vg4qTtnisyQWDn8AIy0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769942658; c=relaxed/simple; bh=0N+pk2TI+JtovuI3l2xhTK/qQ/ayuu1+Gg+HuId26qk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DxrtdGuL1nmzYo16uICobpQke/khqFjzCg3kUgermfn+CBPwdJlTuMUhotfz9CeUUH5/E5btJW8oDRiuqXu4FE+uhrOHVEytR59KJkr0OnoRMANEfDkIarxjFHa0wAeOR2egZUtRYUNEjFzZvYlLVmn91MXRhk/oVFZdJnurPW8= 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=HcJhkolq; arc=none smtp.client-ip=209.85.128.68 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="HcJhkolq" Received: by mail-wm1-f68.google.com with SMTP id 5b1f17b1804b1-4806d23e9f1so39160785e9.2 for ; Sun, 01 Feb 2026 02:44:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769942654; x=1770547454; 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=tIkuCcLFcESeg4evD7K33beEJL3vgA15kSHNr6N6YkQ=; b=HcJhkolqx7Nr4774jKrYtvbesalaQ38nWA1bXtBl3+Kwtzvdk0i+0715eFIoH2NrMf q6KsdfSU2o/vvgae2N2ysr58FEMvi8nVSWew+S8mckqnkYzh0Ri8KHOqQbdiu4Mxp5XJ TTf3vwZJLCQYZxp10xADD6amI731nKONjpm5fnaXDSznJjDf2MVwheHo0Q8hljYuLwG4 H985BCeSVru6DArpR9Icfi5c2UnToqJfkWku/j5jDcPUZYr6W8nh+ICxCTXVU82Ujh6b KO6AwhhmWcLAe1Aw5sW4cWRFmIZDIKyVtkkNdOl1v/FfmHNBh6gvkJXLXBmhEvEbYtab wMCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769942654; x=1770547454; 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=tIkuCcLFcESeg4evD7K33beEJL3vgA15kSHNr6N6YkQ=; b=jwgydc4Dg4TZf7cj/Sn9DzZ7ZYKAJ49x1iM8lcbVOuN7zCPxhEWPJDHB//J6vtXXtH S8LbOusZC6IBNPRM/iXiEC+VIeDVt4EzkKZbLjCwOhg8Yb2ih81QW5taNG6f+06B2uXz qnVU+8Cnjtkw9y5PHs3Xil/UdEp0T5C64i0M5nMCIIWn5rAC+oqHe9i5ssuHImM2ub5Z PbLD87DNIQEOknu9d6/wF0IHRICqK2e6bwCF3hKOGDwmrH1LuDxyrqVVUKOEi1fat8/a FK0qQK3V4ImZgTMDNh0YhqZ1Nx4RkmxgXtFkzNLK1PqP3Yow1dLcW2pis46BLmkeG06o spkw== X-Forwarded-Encrypted: i=1; AJvYcCU9lWWq7wnF9ZnlzU0da/YYGXB2u0Z3JLmJxw2T7s43Ljl4T3FLO4QR7ByJPJYMPqa7W7rQahk90k/nj+M=@vger.kernel.org X-Gm-Message-State: AOJu0Yx2KQ6n1PklhfFTfv6bfiYoZ65SbrRN7X8kaVO+TMDLq72aIgeg 7Z0ylDE+eELBKg0q3WP3F14exNe39N11H8UkggsfKlTeYxnVJG7/dt0F X-Gm-Gg: AZuq6aKfas+ftAG2C2kaYArfJY5wwtRiZJD7IXjR47dBnHtg7R5KODMJZbNbw2WxcHC /Rlhm2lmOksqo9DIBuqNIz9XW9/Cd3XIGXn/3zTtk1lTvFv3Ar92BsZMw4AGSOzGivwAmGhgaQn ydvJKZrJn5qZvWzY1Fmz6wgfD6bzAkrqvggeB2f4ihrpzb7NeOeNdjcPgUh6M3pc30yGw5K9UEw gPyUZPvgmTsME/RFTtlaIB4vmBWBT7+8wBWKTX77Oe/ZtmKNhyp2JVMmXRzDOvngSWA+Sx7joaQ 7joncEJVIgK0c6y1Vj5MA2YRKE8uDfu2c7W8WpoXgUALptHUxVdfZ30Gj5ZgmZfcpRgGSHh237y t4tJdXLjQEav+lA05/SecKSgEAw1OkPcmLplCWjQTPHRAq2ucveoLrGZfNaCM8EKw10AXgBXIs3 b8 X-Received: by 2002:a05:600c:3b1d:b0:477:9cdb:e32e with SMTP id 5b1f17b1804b1-482db46014dmr106028315e9.9.1769942654259; Sun, 01 Feb 2026 02:44:14 -0800 (PST) Received: from xeon ([188.163.112.49]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4806ce56490sm308947455e9.12.2026.02.01.02.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Feb 2026 02:44:13 -0800 (PST) From: Svyatoslav Ryhel To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Pavel Machek , Arnd Bergmann , Greg Kroah-Hartman , Sebastian Reichel , Svyatoslav Ryhel , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , Ion Agorria 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 v1 3/9] dt-bindings: mfd: document ASUS Transformer EC Date: Sun, 1 Feb 2026 12:43:37 +0200 Message-ID: <20260201104343.79231-4-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260201104343.79231-1-clamor95@gmail.com> References: <20260201104343.79231-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: quoted-printable Content-Type: text/plain; charset="utf-8" Document embedded controller used in ASUS Transformer device series. Signed-off-by: Svyatoslav Ryhel --- .../devicetree/bindings/mfd/asus,ec.yaml | 153 ++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/asus,ec.yaml diff --git a/Documentation/devicetree/bindings/mfd/asus,ec.yaml b/Documenta= tion/devicetree/bindings/mfd/asus,ec.yaml new file mode 100644 index 000000000000..5c28deebce7b --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/asus,ec.yaml @@ -0,0 +1,153 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/asus,ec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ASUS Transformer's Embedded Controller + +description: + Several Nuvoton based Embedded Controller attached to an I2C bus, + running a custom ASUS firmware, specific to the Asus Transformer + device series. + +maintainers: + - Svyatoslav Ryhel + +properties: + compatible: + oneOf: + - enum: + - asus,ec-pad # Pad part of Asus Transformer + - asus,ec-dock # Dock part of Asus Transformer + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + request-gpio: + maxItems: 1 + + asus,dockram: + $ref: /schemas/types.yaml#/definitions/phandle + description: I2C device used to access power related functions. + + battery: + type: object + $ref: /schemas/power/supply/power-supply.yaml + unevaluatedProperties: false + + properties: + compatible: + const: asus,ec-battery + + required: + - compatible + + charger: + type: object + $ref: /schemas/power/supply/power-supply.yaml + additionalProperties: false + + properties: + compatible: + const: asus,ec-charger + + monitored-battery: true + + required: + - compatible + + keyboard-ext: + type: object + description: top row of multimedia keys + additionalProperties: false + + properties: + compatible: + const: asus,ec-keys + + required: + - compatible + + led: + type: object + additionalProperties: false + + properties: + compatible: + const: asus,ec-led + + required: + - compatible + + serio: + type: object + description: keyboard and touchpad + additionalProperties: false + + properties: + compatible: + const: asus,ec-kbc + + required: + - compatible + + asus,clear-factory-mode: + type: boolean + description: clear Factory Mode bit in EC control register + additionalProperties: false + +required: + - compatible + - reg + - interrupts + - request-gpio + - asus,dockram + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + embedded-controller@19 { + compatible =3D "asus,ec-dock"; + reg =3D <0x19>; + + interrupt-parent =3D <&gpio>; + interrupts =3D <151 IRQ_TYPE_LEVEL_LOW>; + + request-gpio =3D <&gpio 134 GPIO_ACTIVE_LOW>; + asus,dockram =3D <&dockram_ec>; + + battery { + compatible =3D "asus,ec-battery"; + monitored-battery =3D <&dock_battery>; + }; + + charger { + compatible =3D "asus,ec-charger"; + monitored-battery =3D <&dock_battery>; + }; + + keyboard-ext { + compatible =3D "asus,ec-keys"; + }; + + led { + compatible =3D "asus,ec-led"; + }; + + serio { + compatible =3D "asus,ec-kbc"; + }; + }; + }; +... --=20 2.51.0