Skip to contentSkip to conversation

arm: dts: Stratix10: Enable i2c

PATCH New Ley Foon Tan 3 participants 3 messages Jun 13, 2019 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: Stratix10: Enable i2c

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

---
 arch/arm/dts/socfpga_stratix10_socdk.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/dts/socfpga_stratix10_socdk.dts +5 -0
index 2745050810..c5409df026 100755
@@ -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;
Signature · 1 line
2.19.0
#1 lore raw

PATCH 1/1 arm: dts: Stratix10: Enable i2c

Quoted 11 lines · Ley Foon Tan

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

Quoted 30 lines
---
 arch/arm/dts/socfpga_stratix10_socdk.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/dts/socfpga_stratix10_socdk.dts +5 -1
index 2745050810..c5409df026 100755
@@ -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

Applied
#2 lore raw

PATCH 1/1 arm: dts: Stratix10: Enable i2c

In reply to Ley Foon Tan
Quoted 28 lines · Ley Foon Tan

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

---
 arch/arm/dts/socfpga_stratix10_socdk.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/dts/socfpga_stratix10_socdk.dts +1 -0
index 2745050810..c5409df026 100755
@@ -9,6 +9,7 @@
 	model = "SoCFPGA Stratix 10 SoCDK";
 
 	aliases {
+		i2c0 = &i2c1;
 		serial0 = &uart0;
 	};
 

arch/arm/dts/socfpga_stratix10_socdk.dts line 87

Quoted 10 lines
arch/arm/dts/socfpga_stratix10_socdk.dts +4 -0
@@ -77,6 +78,10 @@
 	};
 };
 
+&i2c1 {
+	status = "okay";
+};
+
 &mmc {
 	status = "okay";
 	cap-sd-highspeed;

Applied, thanks.

Signature · 2 lines
Best regards,
Marek Vasut