The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Svyatoslav Ryhel <clamor95@gmail.com>
Cc: "Hans de Goede" <hansg@kernel.org>,
	"Andi Shyti" <andi.shyti@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Michał Mirosław" <mirq-linux@rere.qmqm.pl>,
	linux-i2c@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 1/2] dt-bindings: i2c: Document ASUS Transformer's Dock
Date: Tue, 1 Dec 2026 13:33:42 -0600	[thread overview]
Message-ID: <20261201193342.GB2983411-robh@kernel.org> (raw)
In-Reply-To: <20261118134555.195479-2-clamor95@gmail.com>

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@gmail.com>
> ---
>  .../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@rere.qmqm.pl>
> +  - Svyatoslav Ryhel <clamor95@gmail.com>
> +
> +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
> 

  parent reply	other threads:[~2026-12-01 19:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 13:45 [PATCH v1 0/2] platform/asus: Add driver for ASUS Transformer's Dock Svyatoslav Ryhel
2026-11-18 13:45 ` [PATCH v1 1/2] dt-bindings: i2c: Document " Svyatoslav Ryhel
2026-11-18 14:40   ` Wolfram Sang
2026-11-18 14:42     ` Svyatoslav Ryhel
2026-11-29 16:40       ` Svyatoslav Ryhel
2026-12-01 19:27         ` Rob Herring
2026-12-01 19:33   ` Rob Herring [this message]
2026-11-18 13:45 ` [PATCH v1 2/2] platform/asus: Add driver for ASUS Transformer's Dock of Tegra based devices Svyatoslav Ryhel
2026-11-29 16:38   ` Svyatoslav Ryhel

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=20261201193342.GB2983411-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=andi.shyti@kernel.org \
    --cc=clamor95@gmail.com \
    --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 \
    /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