[PATCH v2 1/2] dt-bindings: connector: Document ASUS Transformer's Dock
From: Svyatoslav Ryhel
Date: Fri Dec 04 2026 - 01:34:38 EST
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@xxxxxxxxx>
---
.../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@xxxxxxxxx>
+
+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