[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200127084924.4iflicf64pzzhouq@M43218.corp.atmel.com>
Date: Mon, 27 Jan 2020 09:49:24 +0100
From: Ludovic Desroches <ludovic.desroches@...rochip.com>
To: Codrin Ciubotariu <codrin.ciubotariu@...rochip.com>
CC: <linux-i2c@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <kamel.bouhara@...tlin.com>,
<wsa@...-dreams.de>, <Nicolas.Ferre@...rochip.com>,
<alexandre.belloni@...tlin.com>, <robh@...nel.org>,
<peda@...ntia.se>, <linux@...linux.org.uk>
Subject: Re: [PATCH v3 1/6] dt-bindings: i2c: at91: document optional bus
recovery properties
On Wed, Jan 15, 2020 at 01:54:17PM +0200, Codrin Ciubotariu wrote:
> From: Kamel Bouhara <kamel.bouhara@...tlin.com>
>
> The at91 I2C controller can support bus recovery by re-assigning SCL
> and SDA to gpios. Add the optional pinctrl and gpio properties to do
> so.
>
> Signed-off-by: Kamel Bouhara <kamel.bouhara@...tlin.com>
> [codrin.ciubotariu@...rochip.com: rebased]
> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@...rochip.com>
> Reviewed-by: Rob Herring <robh@...nel.org>
Acked-by: Ludovic Desroches <ludovic.desroches@...rochip.com>
> ---
>
> Changes in v3:
> - rebased;
> - added Reviewed-by tag from Rob;
>
> Changes in v2:
> - none;
>
> Documentation/devicetree/bindings/i2c/i2c-at91.txt | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/i2c/i2c-at91.txt b/Documentation/devicetree/bindings/i2c/i2c-at91.txt
> index d4bad86107b8..96c914e048f5 100644
> --- a/Documentation/devicetree/bindings/i2c/i2c-at91.txt
> +++ b/Documentation/devicetree/bindings/i2c/i2c-at91.txt
> @@ -28,8 +28,13 @@ Optional properties:
> "atmel,sama5d4-i2c",
> "atmel,sama5d2-i2c",
> "microchip,sam9x60-i2c".
> +- scl-gpios: specify the gpio related to SCL pin
> +- sda-gpios: specify the gpio related to SDA pin
> +- pinctrl: add extra pinctrl to configure i2c pins to gpio function for i2c
> + bus recovery, call it "gpio" state
> - Child nodes conforming to i2c bus binding
>
> +
> Examples :
>
> i2c0: i2c@...84000 {
> @@ -64,6 +69,11 @@ i2c0: i2c@...34600 {
> clocks = <&flx0>;
> atmel,fifo-size = <16>;
> i2c-sda-hold-time-ns = <336>;
> + pinctrl-names = "default", "gpio";
> + pinctrl-0 = <&pinctrl_i2c0>;
> + pinctrl-1 = <&pinctrl_i2c0_gpio>;
> + sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>;
> + scl-gpios = <&pioA 31 GPIO_ACTIVE_HIGH>;
>
> wm8731: wm8731@1a {
> compatible = "wm8731";
> --
> 2.20.1
>
Powered by blists - more mailing lists