linux-stable/drivers/i3c/master
Jack Chen 510d2358c4 i3c: master: dw: stop hardcoding initial speed
Bus-speed could be default(12.5MHz) or defined by users in dts.
Dw-i3c-master should not hard-code the initial speed to be
I3C_BUS_TYP_I3C_SCL_RATE (12.5MHz)
And because of Synopsys's I3C controller limit (hcnt/lcnt register
length) and core-clk provided, there is a limit to bus speed, too.
For example, when core-clk is 250 MHz, the bus speed cannot be
lowered below 1MHz.

Tested: tested with an i3c sensor and captured with a logic analyzer.

Signed-off-by: Jack Chen <zenghuchen@google.com>
Link: https://lore.kernel.org/r/20230216151057.293764-1-zenghuchen@google.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-02-28 23:54:49 +01:00
..
mipi-i3c-hci i3c/master: simplify the return expression of i3c_hci_remove() 2022-05-17 22:33:43 +02:00
dw-i3c-master.c i3c: master: dw: stop hardcoding initial speed 2023-02-28 23:54:49 +01:00
i3c-master-cdns.c i3c: master: cdns: Fix fall-through warning for Clang 2021-06-29 08:37:04 -05:00
Kconfig i3c: master: svc: Add Silvaco I3C master driver 2021-02-06 00:43:29 +01:00
Makefile i3c: master: svc: Add Silvaco I3C master driver 2021-02-06 00:43:29 +01:00
svc-i3c-master.c i3c: master: svc: fix returnvar.cocci warning 2022-05-17 22:34:42 +02:00