devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@amd.com>
To: Lars-Peter Clausen <lars@metafoo.de>, Wolfram Sang <wsa@kernel.org>
Cc: Shubhrajyoti Datta <Shubhrajyoti.datta@amd.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	linux-i2c@vger.kernel.org, devicetree@vger.kernel.org,
	Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Subject: Re: [PATCH v2 1/2] dt-bindings: i2c: cadence: Document `resets` property
Date: Thu, 13 Apr 2023 12:20:28 +0200	[thread overview]
Message-ID: <a65971a1-cd3e-e1ff-c642-c16ade567367@amd.com> (raw)
In-Reply-To: <20230406154834.171577-1-lars@metafoo.de>



On 4/6/23 17:48, Lars-Peter Clausen wrote:
> The Cadence I2C controller has an external reset that needs to be
> de-asserted before the I2C controller can be accessed.
> 
> Document the `resets` devicetree property that can be used to describe how
> the reset signal is connected.
> 
> While the reset signal will always be present in hardware the devicetree
> property is kept optional for backwards compatibility with existing systems
> that do not specify the reset property and where the reset signal might not
> be controlled by operating system.
> 
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> Changes since v1:
> 	* Add `resets` property to example
> ---
>   Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml b/Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml
> index 9187015d9702..cb24d7b3221c 100644
> --- a/Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml
> +++ b/Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml
> @@ -24,6 +24,9 @@ properties:
>     clocks:
>       minItems: 1
>   
> +  resets:
> +    maxItems: 1
> +
>     interrupts:
>       maxItems: 1
>   
> @@ -59,6 +62,7 @@ examples:
>       i2c@e0004000 {
>           compatible = "cdns,i2c-r1p10";
>           clocks = <&clkc 38>;
> +        resets = <&rstc 288>;
>           interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
>           reg = <0xe0004000 0x1000>;
>           clock-frequency = <400000>;

Acked-by: Michal Simek <michal.simek@amd.com>

Thanks,
Michal

  parent reply	other threads:[~2023-04-13 10:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-06 15:48 [PATCH v2 1/2] dt-bindings: i2c: cadence: Document `resets` property Lars-Peter Clausen
2023-04-06 15:48 ` [PATCH v2 2/2] i2c: cadence: Add reset controller support Lars-Peter Clausen
2023-04-13 10:22   ` Michal Simek
2023-04-13 16:44   ` Wolfram Sang
2023-04-13 10:20 ` Michal Simek [this message]
2023-04-13 16:44 ` [PATCH v2 1/2] dt-bindings: i2c: cadence: Document `resets` property Wolfram Sang

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=a65971a1-cd3e-e1ff-c642-c16ade567367@amd.com \
    --to=michal.simek@amd.com \
    --cc=Shubhrajyoti.datta@amd.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=lars@metafoo.de \
    --cc=linux-i2c@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=wsa@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;
as well as URLs for NNTP newsgroup(s).