Devicetree
 help / color / mirror / Atom feed
From: Svyatoslav Ryhel <clamor95@gmail.com>
To: "Hans de Goede" <hansg@kernel.org>,
	"Andi Shyti" <andi.shyti@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Svyatoslav Ryhel" <clamor95@gmail.com>,
	"Michał Mirosław" <mirq-linux@rere.qmqm.pl>
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	[thread overview]
Message-ID: <20261204063414.63617-2-clamor95@gmail.com> (raw)
In-Reply-To: <20261204063414.63617-1-clamor95@gmail.com>

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 <clamor95@gmail.com>
---
 .../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 <clamor95@gmail.com>
+
+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 <dt-bindings/gpio/gpio.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    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


  reply	other threads:[~2026-12-04  6:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  6:34 [PATCH v2 0/2] platform/asus: Add driver for ASUS Transformer's Dock Svyatoslav Ryhel
2026-12-04  6:34 ` Svyatoslav Ryhel [this message]
2026-12-04  6:52   ` [PATCH v2 1/2] dt-bindings: connector: Document " sashiko-bot
2026-12-04  6:34 ` [PATCH v2 2/2] platform/asus: Add driver for ASUS Transformer's Dock of Tegra based devices Svyatoslav Ryhel
2026-12-04  7:08   ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204063414.63617-2-clamor95@gmail.com \
    --to=clamor95@gmail.com \
    --cc=andi.shyti@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mirq-linux@rere.qmqm.pl \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox