[PATCH 0/3] arm: socfpga: arria10: Enable and fix I2C support
dinesh.maniyam at altera.com
dinesh.maniyam at altera.com
Wed Apr 29 07:11:15 CEST 2026
From: Dinesh Maniyam <dinesh.maniyam at altera.com>
This series enables I2C support on the Intel Arria 10 SoCDK and fixes
two related issues observed when the I2C controller is actually used:
1. The Linux DTS sets i2c-scl-falling-time-ns to a value that the
U-Boot designware_i2c driver cannot consume on Arria 10. Override
it in the U-Boot SoC dtsi to the maximum value allowed by the HW
spec so the driver computes correct timings.
2. The designware_i2c remove() callback disables l4_sp_clk, which is
shared with several other peripherals on Arria 10/Cyclone V/etc.
Disabling it on i2c removal corrupts those peripherals. Drop the
clk_disable() call.
3. Enable CONFIG_SYS_I2C_DW (which selects DM_I2C) and CONFIG_CMD_I2C
in socfpga_arria10_defconfig so the driver is actually built and
exercised by U-Boot's CI.
The patches originate from the Altera SoCFPGA downstream tree and
have been carried internally for several years. Tested on Arria 10
SoCDK (sdmmc boot variant); SPL/U-Boot build clean. 'make
savedefconfig' shows no diff introduced by these patches.
Dinesh Maniyam (3):
arm: dts: a10: Correct i2c scl falling time
i2c: designware_i2c: Remove clk disabled codes
configs: socfpga_arria10_defconfig: Enable I2C as default
arch/arm/dts/socfpga_arria10_socdk-u-boot.dtsi | 5 +++++
configs/socfpga_arria10_defconfig | 2 ++
drivers/i2c/designware_i2c.c | 4 ----
3 files changed, 7 insertions(+), 4 deletions(-)
--
2.43.7
More information about the U-Boot
mailing list