Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1308639

Re: [PATCH 3/3] ARM: shmobile: r8a7790: rework dts to use i2c demuxer

From Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Newsgroups linux.kernel
Subject Re: [PATCH 3/3] ARM: shmobile: r8a7790: rework dts to use i2c demuxer
Date 2016-01-13 18:20 +0100
Message-ID <qQxfs-2SP-1@gated-at.bofh.it> (permalink)
References <qQuKB-11D-11@gated-at.bofh.it> <qQuKC-11D-35@gated-at.bofh.it>
Organization Cogent Embedded

Show all headers | View raw


On 01/13/2016 05:29 PM, Wolfram Sang wrote:

> From: Wolfram Sang <wsa+renesas@sang-engineering.com>
>
> Create a seperate bus for HDMI related I2C slaves and assign it

    Separate.

> to a i2c-gpio master. It can be switched to the i2c-rcar or
> i2c-sh_mobile core at runtime.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
>
> After the technical details of the underlying driver seem to be more or less
> sorted out, I would appreciate some discussion here about changing the Lager
> DTS e.g. if we really want GPIO to be the default?
>
>   arch/arm/boot/dts/r8a7790-lager.dts | 141 ++++++++++++++++++++++--------------
>   1 file changed, 88 insertions(+), 53 deletions(-)
>
> diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
> index c553abd711eeb3..d8f0ca8e094dad 100644
> --- a/arch/arm/boot/dts/r8a7790-lager.dts
> +++ b/arch/arm/boot/dts/r8a7790-lager.dts
[...]
> @@ -252,6 +254,79 @@
>   		#clock-cells = <0>;
>   		clock-frequency = <148500000>;
>   	};
> +
> +
> +	gpioi2c: i2c@9 {
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		compatible = "i2c-gpio";

    I think this prop should go first.

> +		status = "disabled";

    In a board file? When do you intend to enable it?

> +		gpios = <&gpio5 6 GPIO_ACTIVE_HIGH /* sda */
> +			 &gpio5 5 GPIO_ACTIVE_HIGH /* scl */
> +			>;
> +		i2c-gpio,delay-us = <5>;
> +	};
[...]

MBR, Sergei

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] i2c/of: switch I2C IP cores at runtime via OF_DYNAMIC Wolfram Sang <wsa@the-dreams.de> - 2016-01-13 15:40 +0100
  [PATCH 2/3] i2c: mux: demux-pinctrl: add driver Wolfram Sang <wsa@the-dreams.de> - 2016-01-13 15:40 +0100
  [PATCH 3/3] ARM: shmobile: r8a7790: rework dts to use i2c demuxer Wolfram Sang <wsa@the-dreams.de> - 2016-01-13 15:40 +0100
    Re: [PATCH 3/3] ARM: shmobile: r8a7790: rework dts to use i2c demuxer Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-01-13 18:20 +0100
      Re: [PATCH 3/3] ARM: shmobile: r8a7790: rework dts to use i2c demuxer Wolfram Sang <wsa@the-dreams.de> - 2016-01-13 19:00 +0100
        Re: [PATCH 3/3] ARM: shmobile: r8a7790: rework dts to use i2c demuxer Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-01-13 19:10 +0100

csiph-web