Re: [PATCH v1 1/2] dt-bindings: i2c: Document ASUS Transformer's Dock
From: Rob Herring
Date: Tue Dec 01 2026 - 14:33:51 EST
On Wed, Nov 18, 2026 at 03:45:46PM +0200, Svyatoslav Ryhel wrote:
> 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>
> ---
> .../bindings/i2c/asus,transformer-dock.yaml | 56 +++++++++++++++++++
> 1 file changed, 56 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/i2c/asus,transformer-dock.yaml
>
> diff --git a/Documentation/devicetree/bindings/i2c/asus,transformer-dock.yaml b/Documentation/devicetree/bindings/i2c/asus,transformer-dock.yaml
> new file mode 100644
> index 0000000000000..5f4a40539c2b4
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/asus,transformer-dock.yaml
> @@ -0,0 +1,56 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/i2c/asus,transformer-dock.yaml#
schemas/connector/
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ASUS Transformer's Dock for Tegra based devices
> +
> +maintainers:
> + - Michał Mirosław <mirq-linux@xxxxxxxxxxxx>
> + - Svyatoslav Ryhel <clamor95@xxxxxxxxx>
> +
> +description: An I2C bus extension found in the ASUS Transformers, where
Start 'An ...' on the next line.
> + certain devices are hot-pluggable, with their presence indicated by a
> + GPIO line. The set of potential hot-pluggable devices must be predefined
> + and fixed.
> +
> +allOf:
> + - $ref: /schemas/i2c/i2c-controller.yaml
I think this should be under an 'i2c' child node.
> +
> +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
We really need a common type definition, but what's one more for now.
> + description:
> + The phandle of the I2C bus that this multiplexer's master-side port is
> + connected to.
> +
> +required:
> + - compatible
> + - detect-gpios
> + - i2c-parent
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + i2c-dock {
> + compatible = "asus,transformer-dock";
> +
> + detect-gpios = <&gpio 164 GPIO_ACTIVE_LOW>;
> + i2c-parent = <&gen2_i2c>;
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> + };
> +...
> --
> 2.53.0
>