Samuel Holland
039e810437
lib: utils/i2c: Constify FDT pointers in parsing functions
...
Indicate that none of these functions modify the devicetree by
constifying the parameter type.
Signed-off-by: Samuel Holland <samuel.holland@sifive.com >
Reviewed-by: Andrew Jones <ajones@ventanamicro.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
2024-08-24 13:02:28 +05:30
Anup Patel
44c5151293
include: sbi_utils: Remove driver pointer from struct i2c_adapter
...
The "driver" pointer in struct i2c_adapter is not used anywhere
so let us remove it.
Signed-off-by: Anup Patel <apatel@ventanamicro.com >
Reviewed-by: Xiang W <wxjstz@126.com >
2023-07-31 14:09:06 +05:30
Minda Chen
e9d08bd99c
lib: utils/i2c: Add minimal StarFive jh7110 I2C driver
...
Starfive JH7110 I2C IP is synopsys designware.
Minimum StarFIve I2C driver to read/send bytes over I2C bus.
This allows querying information and perform operation of onboard PMIC,
as well as power-off and reset.
Signed-off-by: Minda Chen <minda.chen@starfivetech.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
2023-03-09 21:00:57 +05:30
Nikita Shubin
6ca6bcafb7
lib: utils/i2c: Add simple FDT based I2C framework
...
FDT based I2C framework on the top of I2C library.
The drivers are probed on demand by fdt_i2c_adapter_get
function.
Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com >
Reviewed-by: Alexandre Ghiti <alexandre.ghiti@canonical.com >
Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com >
Signed-off-by: Nikita Shubin <n.shubin@yadro.com >
2021-11-12 10:19:45 +05:30
Nikita Shubin
2c964a2e15
lib: utils/i2c: Add generic I2C configuration library
...
Helper library to keep track of registered I2C adapters,
identified by dts offset, basic send/read functions and
adapter configuration (enable, set dividers, etc...).
Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com >
Reviewed-by: Alexandre Ghiti <alexandre.ghiti@canonical.com >
Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com >
Signed-off-by: Nikita Shubin <n.shubin@yadro.com >
2021-11-12 10:17:50 +05:30