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
998ed43fde
lib: utils/i2c: Generate FDT i2c adapter driver list at compile-time
...
Instead of having FDT i2c adapter driver list hard-coded in the C source,
we generate it using carray.sh at compile-time.
Signed-off-by: Anup Patel <apatel@ventanamicro.com >
Reviewed-by: Atish Patra <atishp@rivosinc.com >
2022-05-13 09:26:45 +05:30
Nikita Shubin
13a1158d24
lib: utils/i2c: Add minimal SiFive I2C driver
...
Minimum SiFive 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.
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:29:08 +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