From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.171 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796366072; b=CN5XWv7VeyDhBuLYTfGzsxsTBOBzeG00S3/DKZM9weD9woalD+RFrPcqIYJDQNbXbBzn h9J1vh6IGxvWkiblDs5JbsoAbp4TDxMNBwr5Zqrfk/TENySmPVb7kJvjisjfzQsaYHm0R pt6v8B/M5mXVgFSsy5640WpVYEB8vN6T1e8SnEXBoRG/XW2uBU4pHSLe2D7vuFgQl39BT abGXJrNKu9wdMlE6xjM2YTqCB8+q+4XJEZlLIDLMwUXe2UzYZ5XJiBDUPhtujEUBxiJir oXOpysUb9/2UJ9P/rldz64IcikhikE/gDo8iX0f78q6Of5irk83Ntw/U7+FDfSvTdfA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796366072; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=lunOqou37MXc/o4ezsdCJLAOBUkrRMIpkMcMJopCyTs=; b=KsDj9dYkkcpNUFYFNV84eOT7CwIj+W17aRq1V2GbOxQLwggSOE2vUdx8BEVpLfR/3jcl UpGQoLh8JjFGc8S1NVFPufp08qiOrue+sZ8b7aajJ7DEvCCZxRuGjww45CZSu7p/2GYlo zz6q6Ice1JUh/tAkWoVrBsNIomPfjKbJbHm8UtCsvfYClR1SkzyymRyi6Std/yaR6tzml pzKoE7NcoY9dYb4bqOPpgmOPwVDr7DX0QncP5fkly8XZLPRGxFN8uRmAUaBXSq219Z2eE D1WwGYPSDHGKXB5XYM4KK20xGNc/im6ZFZFnxh9XIM2be11dgI4fQ5VzDGevTkzPuqg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=OiukdeGz; arc=none smtp.remote-ip=209.85.208.171 Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F130606A684 for ; Fri, 4 Dec 2026 06:34:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0F130606A684 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.a=rsa-sha256 header.s=20260707 header.b=OiukdeGz Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-3ad0102edd4so5168461fa.1 for ; Thu, 03 Dec 2026 22:34:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796366070; x=1796970870; 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:content-type; bh=lunOqou37MXc/o4ezsdCJLAOBUkrRMIpkMcMJopCyTs=; b=OiukdeGzC7RsB12J9f7yhRkhtcbqOScjzB0j26lAM5hB4tnuosU6+MEEuKGHxoksX3 eEkwXFGRyI0vahwVjor5n2cX7AhzQ/k5+j/yzrmh0fNmyc3yjsa4ygnMbGUza4uNcV+O nP2V/QtDN7zjR6gvxiaQ6qXDo0OI/PZcHZl27WUophun7B80hqYpIfsSAugzSJ24zsxC ef6iSnRlP4jTvtEkSrdDwAydcLveDURtX2DY45RJRov4Dky5M2QTaO5BfiX+dDKIdrJa ul0ZnNfJ0Wdn8WX++QjwOi2k1I9PNeAbPM2T6UMdxByyUOYsQ0dClF80fNtAaR69KRQT XQVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796366070; x=1796970870; 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:content-type; bh=lunOqou37MXc/o4ezsdCJLAOBUkrRMIpkMcMJopCyTs=; b=oST714Nnp8ht7oEEomSdIBKp/CftjAGz+enZOkdls1tZUnUH1jQtxvMhcx6DBfpHtF Q47vsAdIsnI6x/G+bATu7wg6o3zkEUW8IaVYrm6ReJHc3fN7vJ1rByvAj8XN406z3C5T bdYC2RwH/TOy4hEtkEt6zsNN017Y7uijA2cUmZY2t5M0sxV1ATHNuvjIqWj3lGpyMWkB QiJ6vLqxMjUdN2NS6ZGppssJgO+cQzFQSlT1r5D5apyZi4XMhYOkyGi7wLsb5ca6tcCi A0Y9coDUH9tItxc7ScCuCzDDjpBXG75YrhqExM2XwjdSAkpndT2MaeTYjG+YbnK8Zm8P mIZw== X-Forwarded-Encrypted: i=1; AL+hErHQjRMTymLlIaIK/ujv6Salp/LbZtEejTTY0UiCWjWrpm37bXVvct6VChEjdyrmNnYvKlO/DfLXYDzg@vger.kernel.org X-Gm-Message-State: APuU4Z/MyR32EcJi0z7BdqvKjc0BvetJtAuXLziB1PlT6c/JU/sh04gN Y2J48CqHidjzhqiNi9ror1RwwuwIrcWoUvcxMvOQA0Qz7gP/hpIVMXXQ X-Gm-Gg: AZFdTZdFCsEYDlVz6AZuUHj7NzITKOt5PkcFgj2qmt32Hfp9xGf+mh0goXHnM8VjK41 8bCjP/OgghHzoUIPNQ+PatBMeufHVgRwqIOXcM8QoRpcPJfe1J9z5YBMiWFf3nvZC6J3bI+s3Bg nsRoCs+MxdMfGgQWG7kL90qyyU2KHJDf2Z/1pAHJW88G3AwZxFMYONNnatlryRrSgmQ2aHje97B FNwQoz8r51uda545r8j2ZfL5H20at9GOiGbAQNRjiujlJivNlQtFGumYedg2bc3OcXmV76wDC3o qhyEJktRxnPnnFI7jXm9eLGevhgS2E8cOmm0ttt2Fp9Z3HbxW4d1Z+l73xcLzaOTnDMerkCUbv1 wR9HIgDaUHcH312GKwAVZkiUSMBPkfdZRjn9isPimjPSyoqIuzKpg/YfWF4coJMgCoYQAIH7bNI Ld14vd1pkeu56rTaMvKXggK6+/J5eXZjUkMnOOnVxbgpYlqI7edqQTWlqes+CSiZ4G4PDRY2vj/ W+5qfrArInn/8HXH5GXcDtWktI3e6quykDZuStU/Uj4Rt95XYR561+NY/jFmWa8s/w00D9TOVXR tbyczQtu2ClYZkVXRD2MROD3zF1/2R/srPxGKKCuufoVLYrNQsIZ4eGK/yubMSXMugp04hCZXjF DRottdCYKGQ== X-Received: by 2002:ac2:51d6:0:b0:5be:4386:806d with SMTP id 2adb3069b0e04-5c3861cc6d2mr221440e87.53.1796366070086; Thu, 03 Dec 2026 22:34:30 -0800 (PST) Received: from xeon ([188.163.112.54]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3b0037ad2adsm4446611fa.26.2026.12.03.22.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 22:34:29 -0800 (PST) From: Svyatoslav Ryhel To: Hans de Goede , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Svyatoslav Ryhel , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: connector: Document ASUS Transformer's Dock Date: Fri, 4 Dec 2026 08:34:13 +0200 Message-ID: <20261204063414.63617-2-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261204063414.63617-1-clamor95@gmail.com> References: <20261204063414.63617-1-clamor95@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document a hardware configuration that uses a GPIO signal to determine the presence and state of devices on the bus, allowing the system to dynamically configure a predetermined set of I2C devices as they are plugged in or removed used in Tegra based ASUS Transformers. Signed-off-by: Svyatoslav Ryhel --- .../connector/asus,transformer-dock.yaml | 171 ++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 Documentation/devicetree/bindings/connector/asus,transformer-dock.yaml diff --git a/Documentation/devicetree/bindings/connector/asus,transformer-dock.yaml b/Documentation/devicetree/bindings/connector/asus,transformer-dock.yaml new file mode 100644 index 0000000000000..ce9730b558e5b --- /dev/null +++ b/Documentation/devicetree/bindings/connector/asus,transformer-dock.yaml @@ -0,0 +1,171 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/connector/asus,transformer-dock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ASUS Transformer's Dock for Tegra based devices + +maintainers: + - Svyatoslav Ryhel + +description: + A composite detachable dock found on Tegra-based ASUS Transformers. The + dock contains an I2C bus extension for devices providing input and power + management functions, a USB hub linked to a host controller with an + integrated card reader, and one or two USB ports. Dock presence is + indicated by a GPIO line. The set of potential hot-pluggable I2C devices + must be predefined and fixed. + +properties: + compatible: + const: asus,transformer-dock + + detect-gpios: + description: + A pin whose active state indicates that detachable devices are plugged in. + maxItems: 1 + + i2c-parent: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The phandle of the I2C bus that this multiplexer's master-side port is + connected to. + + i2c: + $ref: /schemas/i2c/i2c-controller.yaml# + description: + Container for i2c devices found in the dock. + unevaluatedProperties: false + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + OF graph link modeling a connection from HOST USB node to Dock. + + usb: + $ref: /schemas/usb/usb-hcd.yaml# + description: + Container for USB devices found in the dock. + unevaluatedProperties: false + +patternProperties: + "^usb-connector(-[01])?$": + $ref: /schemas/connector/usb-connector.yaml# + description: + USB connectors exposed on the dock. + unevaluatedProperties: false + +required: + - compatible + - detect-gpios + - i2c-parent + - i2c + +additionalProperties: false + +examples: + - | + #include + #include + + dock { + compatible = "asus,transformer-dock"; + + detect-gpios = <&gpio 164 GPIO_ACTIVE_LOW>; + i2c-parent = <&gen2_i2c>; + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + embedded-controller@19 { + compatible = "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>; + }; + }; + + port { + dock_usb_out: endpoint { + remote-endpoint = <&host_usb_in>; + }; + }; + + usb { + #address-cells = <1>; + #size-cells = <0>; + + /* Genesys Logic 4-port USB2.0 Hub */ + hub@1 { + compatible = "usb5e3,610"; + reg = <1>; + + vdd-supply = <&vdd_5v0_bat>; + + #address-cells = <1>; + #size-cells = <0>; + + /* Alcor Micro Corp. Multi Flash Reader */ + device@3 { + compatible = "usb58f,6366"; + reg = <3>; + }; + + /* Two USB ports are externally accessible on the docking station */ + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + + usb_hub_p1_in: endpoint { + remote-endpoint = <&dock_usb_left_connector_out>; + }; + }; + + port@2 { + reg = <2>; + + usb_hub_p2_in: endpoint { + remote-endpoint = <&dock_usb_right_connector_out>; + }; + }; + }; + }; + }; + + usb-connector-0 { + compatible = "usb-a-connector"; + label = "USB Left"; + + vbus-supply = <&vdd_5v0_sys>; + + port { + dock_usb_left_connector_out: endpoint { + remote-endpoint = <&usb_hub_p1_in>; + }; + }; + }; + + usb-connector-1 { + compatible = "usb-a-connector"; + label = "USB Right"; + + vbus-supply = <&vdd_5v0_sys>; + + port { + dock_usb_right_connector_out: endpoint { + remote-endpoint = <&usb_hub_p2_in>; + }; + }; + }; + }; +... -- 2.53.0