[PATCH 1/2] ARM: davinci: mityomapl138: Enable I2C1 master
Esben Haabendal
esben at geanix.com
Mon Aug 31 08:03:38 EDT 2020
The I2C1 master is available at the SOM connector, and as such should be
available for applications where SOM module is connected to a board with
I2C chips connected to it.
Signed-off-by: Esben Haabendal <esben at geanix.com>
---
arch/arm/mach-davinci/board-mityomapl138.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c
index 3382b93d9a2a..10e40f1abcbc 100644
--- a/arch/arm/mach-davinci/board-mityomapl138.c
+++ b/arch/arm/mach-davinci/board-mityomapl138.c
@@ -202,6 +202,11 @@ static struct davinci_i2c_platform_data mityomap_i2c_0_pdata = {
.bus_delay = 0, /* usec */
};
+static struct davinci_i2c_platform_data mityomap_i2c_1_pdata = {
+ .bus_freq = 100, /* kHz */
+ .bus_delay = 0, /* usec */
+};
+
/* TPS65023 voltage regulator support */
/* 1.2V Core */
static struct regulator_consumer_supply tps65023_dcdc1_consumers[] = {
@@ -579,6 +584,10 @@ static void __init mityomapl138_init(void)
if (ret)
pr_warn("i2c0 registration failed: %d\n", ret);
+ ret = da8xx_register_i2c(1, &mityomap_i2c_1_pdata);
+ if (ret)
+ pr_warn("i2c1 registration failed: %d\n", ret);
+
ret = pmic_tps65023_init();
if (ret)
pr_warn("TPS65023 PMIC init failed: %d\n", ret);
--
2.28.0
More information about the linux-arm-kernel
mailing list