From: Rob Herring <robh@kernel.org>
To: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: andi.shyti@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
tsbogend@alpha.franken.de, linux-i2c@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mips@vger.kernel.org
Subject: Re: [PATCH 4/5] dt-bindings: i2c: Add RTL9300 I2C multiplexer
Date: Wed, 18 Sep 2024 09:25:35 -0500 [thread overview]
Message-ID: <20240918142535.GA1519783-robh@kernel.org> (raw)
In-Reply-To: <20240917232932.3641992-5-chris.packham@alliedtelesis.co.nz>
On Wed, Sep 18, 2024 at 11:29:31AM +1200, Chris Packham wrote:
> An extension of the RTL9300 SoC is to support multiplexing by selecting
> the SDA pins that are being used dynamically. Add a binding that allows
> us to describe hardware that makes use of this.
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> ---
> .../bindings/i2c/realtek,rtl9300-i2c-mux.yaml | 82 +++++++++++++++++++
> MAINTAINERS | 1 +
> 2 files changed, 83 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/i2c/realtek,rtl9300-i2c-mux.yaml
>
> diff --git a/Documentation/devicetree/bindings/i2c/realtek,rtl9300-i2c-mux.yaml b/Documentation/devicetree/bindings/i2c/realtek,rtl9300-i2c-mux.yaml
> new file mode 100644
> index 000000000000..a64879d0fda7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/realtek,rtl9300-i2c-mux.yaml
> @@ -0,0 +1,82 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/i2c/realtek,rtl9300-i2c-mux.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Realtek RTL I2C Multiplexer
> +
> +maintainers:
> + - Chris Packham <chris.packham@alliedtelesis.co.nz>
> +
> +description: |
> + The I2C controllers on the RTL9300 support a level of multiplexing. In the
> + simple case the rtl9300-i2c binding can provide a single SDA pin per
> + controller. This binding allows a more than one SDA line to be used per
> + controller providing a level of multiplexing.
> +
> +properties:
> + compatible:
> + const: realtek,rtl9300-i2c-mux
> +
> + i2c-parent:
> + description: phandle of the I2C bus controller that this multiplexer
> + operates on.
> + $ref: /schemas/types.yaml#/definitions/phandle
The mux isn't a separate device, so I think this should just be part of
the i2c parent:
i2c-mux@36c {
i2c@0 {
...
};
i2c@1 {
...
};
...
};
And then you can get rid of the SDA pin property. If you only use 1 pin,
then there is just 1 'i2c' child node with an address matching the SDA
pin.
Rob
next prev parent reply other threads:[~2024-09-18 14:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-17 23:29 [PATCH 0/5] i2c: RTL9300 support Chris Packham
2024-09-17 23:29 ` [PATCH 1/5] dt-bindings: i2c: Add RTL9300 I2C controller Chris Packham
2024-09-18 0:32 ` Rob Herring (Arm)
2024-09-18 14:14 ` Rob Herring
2024-09-18 20:43 ` Chris Packham
2024-09-17 23:29 ` [PATCH 2/5] i2c: Add driver for the " Chris Packham
2024-09-18 20:27 ` Andi Shyti
2024-09-18 21:18 ` Chris Packham
2024-09-17 23:29 ` [PATCH 3/5] mips: dts: realtek: Add I2C controllers Chris Packham
2024-09-17 23:29 ` [PATCH 4/5] dt-bindings: i2c: Add RTL9300 I2C multiplexer Chris Packham
2024-09-18 0:32 ` Rob Herring (Arm)
2024-09-18 14:25 ` Rob Herring [this message]
2024-09-17 23:29 ` [PATCH 5/5] i2c: rtl9300: Add multiplexing support Chris Packham
2024-09-18 20:36 ` Andi Shyti
2024-09-18 21:44 ` Chris Packham
2024-09-19 5:06 ` Chris Packham
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=20240918142535.GA1519783-robh@kernel.org \
--to=robh@kernel.org \
--cc=andi.shyti@kernel.org \
--cc=chris.packham@alliedtelesis.co.nz \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.