All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm: dts: Stratix10: Enable i2c
@ 2019-06-13  8:17 Ley Foon Tan
  2019-06-13  9:41 ` Simon Goldschmidt
  2019-06-13 10:00 ` Marek Vasut
  0 siblings, 2 replies; 3+ messages in thread
From: Ley Foon Tan @ 2019-06-13  8:17 UTC (permalink / raw)
  To: u-boot

Enable i2c1 in Stratix 10 devkit.

SOCFPGA_STRATIX10 # i2c bus
Bus 0:  i2c at ffc02900
SOCFPGA_STRATIX10 # i2c dev 0
Setting bus to 0
SOCFPGA_STRATIX10 # i2c probe
Valid chip addresses: 14 4C 51 68 74

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
---
 arch/arm/dts/socfpga_stratix10_socdk.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/dts/socfpga_stratix10_socdk.dts b/arch/arm/dts/socfpga_stratix10_socdk.dts
index 2745050810..c5409df026 100755
--- a/arch/arm/dts/socfpga_stratix10_socdk.dts
+++ b/arch/arm/dts/socfpga_stratix10_socdk.dts
@@ -9,6 +9,7 @@
 	model = "SoCFPGA Stratix 10 SoCDK";
 
 	aliases {
+		i2c0 = &i2c1;
 		serial0 = &uart0;
 	};
 
@@ -77,6 +78,10 @@
 	};
 };
 
+&i2c1 {
+	status = "okay";
+};
+
 &mmc {
 	status = "okay";
 	cap-sd-highspeed;
-- 
2.19.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] arm: dts: Stratix10: Enable i2c
  2019-06-13  8:17 [U-Boot] [PATCH] arm: dts: Stratix10: Enable i2c Ley Foon Tan
@ 2019-06-13  9:41 ` Simon Goldschmidt
  2019-06-13 10:00 ` Marek Vasut
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Goldschmidt @ 2019-06-13  9:41 UTC (permalink / raw)
  To: u-boot

On Thu, Jun 13, 2019 at 10:17 AM Ley Foon Tan <ley.foon.tan@intel.com> wrote:
>
> Enable i2c1 in Stratix 10 devkit.
>
> SOCFPGA_STRATIX10 # i2c bus
> Bus 0:  i2c at ffc02900
> SOCFPGA_STRATIX10 # i2c dev 0
> Setting bus to 0
> SOCFPGA_STRATIX10 # i2c probe
> Valid chip addresses: 14 4C 51 68 74
>
> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>

Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>

> ---
>  arch/arm/dts/socfpga_stratix10_socdk.dts | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm/dts/socfpga_stratix10_socdk.dts b/arch/arm/dts/socfpga_stratix10_socdk.dts
> index 2745050810..c5409df026 100755
> --- a/arch/arm/dts/socfpga_stratix10_socdk.dts
> +++ b/arch/arm/dts/socfpga_stratix10_socdk.dts
> @@ -9,6 +9,7 @@
>         model = "SoCFPGA Stratix 10 SoCDK";
>
>         aliases {
> +               i2c0 = &i2c1;
>                 serial0 = &uart0;
>         };
>
> @@ -77,6 +78,10 @@
>         };
>  };
>
> +&i2c1 {
> +       status = "okay";
> +};
> +
>  &mmc {
>         status = "okay";
>         cap-sd-highspeed;
> --
> 2.19.0
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] arm: dts: Stratix10: Enable i2c
  2019-06-13  8:17 [U-Boot] [PATCH] arm: dts: Stratix10: Enable i2c Ley Foon Tan
  2019-06-13  9:41 ` Simon Goldschmidt
@ 2019-06-13 10:00 ` Marek Vasut
  1 sibling, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2019-06-13 10:00 UTC (permalink / raw)
  To: u-boot

On 6/13/19 10:17 AM, Ley Foon Tan wrote:
> Enable i2c1 in Stratix 10 devkit.
> 
> SOCFPGA_STRATIX10 # i2c bus
> Bus 0:  i2c at ffc02900
> SOCFPGA_STRATIX10 # i2c dev 0
> Setting bus to 0
> SOCFPGA_STRATIX10 # i2c probe
> Valid chip addresses: 14 4C 51 68 74
> 
> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> ---
>  arch/arm/dts/socfpga_stratix10_socdk.dts | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm/dts/socfpga_stratix10_socdk.dts b/arch/arm/dts/socfpga_stratix10_socdk.dts
> index 2745050810..c5409df026 100755
> --- a/arch/arm/dts/socfpga_stratix10_socdk.dts
> +++ b/arch/arm/dts/socfpga_stratix10_socdk.dts
> @@ -9,6 +9,7 @@
>  	model = "SoCFPGA Stratix 10 SoCDK";
>  
>  	aliases {
> +		i2c0 = &i2c1;
>  		serial0 = &uart0;
>  	};
>  
> @@ -77,6 +78,10 @@
>  	};
>  };
>  
> +&i2c1 {
> +	status = "okay";
> +};
> +
>  &mmc {
>  	status = "okay";
>  	cap-sd-highspeed;
> 
Applied, thanks.

-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-13 10:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-13  8:17 [U-Boot] [PATCH] arm: dts: Stratix10: Enable i2c Ley Foon Tan
2019-06-13  9:41 ` Simon Goldschmidt
2019-06-13 10:00 ` Marek Vasut

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.