From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.170 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796366072; b=Hi0HJiWG+H1j8JlrIGsKPqxJ6OzijKQ05SDkzQqpEdXMHLCrJdBNLhSCiinqBhy8gZ8M 9/s6ulw6ilFS8B9NzMTmWB8vRP1cyET0YPQFsi3s/mvx+gWrk3P2K75V/aRia6et8XGcJ QWR72KEtwnv1eWwIuODGoWsIODTeOhEUa81V2v1uCgOnKzEjWY8PmN9SxvEGWPBAtu/ne 03HYm/7n804UZigO8RfZEDBt2RI/FFd5IDbaHK6T5LX7MrX/7w142lRSVOgIXv/ek2gkN R2HKslY+pZL8ke+zZ+DfLv9b+5HoljrTKDJAEKUTbSaTwIPL0d3auZ9CKaffwwOZ0Pw== 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=UOsrc7yHf5hb2rHVCKQN8qoDtJxkVr3gF8MEqDh8p9AloawgkXqlbrGBM+j8z5IvD/XR DeO1HRfvm627AjaBC9iwdtncTWQGSoR6ZMGg4afwoM+I5Z66hEj+NK5ulawOSxFyj3goc 37J85McjgSJL+CRcu8BD4oC+uYrDqTDvOS7vAOdsnpkzt7hXfQZYIbtTCyh49sNUqcAJz 4OVTuK0ILVBm2BfGAAT/ScxWl0gdrVGDsA43JdBhWvpBhCWHaOiGa4FPtZvNffgGc3b6y MJlx6+a0VGVwuzPHzcBZuY6H3LNZfUIyTaaa2hGXkYwTO5I8uLGk/8eM7Ipuu8pocmA== 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.170 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 E81A6606A336 for ; Fri, 4 Dec 2026 06:34:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E81A6606A336 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-f170.google.com with SMTP id 38308e7fff4ca-3ae417eb235so4078971fa.3 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=sLEBg27uiqiWiag0tSpBzl8/Qj4zigu00Q8kmOnl03DFbleYs4nmzX76ZU4DX5jeED RomngnrS2iq+9p/rriQ16CGegGMz3rAxRw02tA0gLD1M6/yPNPYgr4RiIfPRyKjou27R 3fMroQNTiKE4DxTz7D1iIJ+I+74Uuuui8ED9EysEAOf3TD4opzAz+GZXah39/kESxVhl vqGUHoY4R1LCElyeKbGGRWSW0H18UmpfpXYSc9e2HEG391PrEb0ODqTwooYTPPiwXEmF r8DGQvh9JCsnzfzK2IWM+VqYDScT8CkUeTZlJiuxJpuE3nC0L/t0qSxapX9I7GJtKgp/ 9Uuw== X-Forwarded-Encrypted: i=1; AL+hErHxNOxnZXBYo7qQW5snOxEtpfmR2VRjXf82tHeA3W/JdnUviQ6/p27NqZaB+vyGiQhGUcnf5DRXkNh92Zw=@vger.kernel.org X-Gm-Message-State: APuU4Z9JqQdXoWjgZsWCFWzj+N5snaZe8JK1/9RL2Vxit5l1XSv8aZK0 DKTRgNZkzvjxHB4tAWT6lBfChf7isKuxEaJHNfzzOJkENSGKdCtfwBlB X-Gm-Gg: AZFdTZetMrrknl6JymT2mO5pAUel76EI5QjMsXT/VjHf5z6vTtxZF1qJlK8ghmcDO05 Wct2+kNxlYDWQBtGYXvEjLltJ6ceWTnEH1qmgow+vN/oQ+7Oe8cOWuWiyXfCQu2fgp4Rkv98Si3 LBRoeiV5aGzqqS02qUEcco/j5FLEXHBTP6rlqaPXtQWruuJMjJhgePNXr71OR6KcN6df05XvwIK lEXD1Qmr9IPB9YDf30NYi7njDS6rt7pTSBjxfAA/PFheopZPHvTReWOhosOrnTTD3oa1H3KcUJ3 fc2JajcCMps+RIDesEhpIazQNN08QnDIZo3bCyZyBlCSxul1s0YYVIDkZJHduhpIjoe9isPswZv gloDiObHUSPZH3GT7xUs9RuAwmZ2+066MHEsNqIFRzWqagxr2jLHy/fCYEQB2aLEel5n2MJfQJc Ne3yDC8F3k2ealv7czlWGDzQMutzqnDSnYClWQMReyiof41INau/E4olQwS1FaNgF6LCTDVSj1J aGLWeZIXs5NoGrkRTE1XMu+79uPxiZkAsB82uOEF6UZmSfxY9IFy7veDU3FZu/A+FPkyV51Veoe jnfLqlIK1rRbyZwj/Vg1Vu2ExqVy2F3CtRfqi+l3ffrF+W5grIk/UFzr2INVnAUkx2xNpuxwPSm /v6BzKeA9Tw== 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: linux-kernel@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