zephyr/include
Tim Lin 64b2bd7342 I2C: add a define that can write a specified speed from dts
So far the I2C channel connected to the battery has chosen the option
of Standard-mode 100KHz, but according to the SI(Signal Integrity)
test report, the I2C channel doesn’t meet the tHD;DAT Margin/Threshold
in the SI test. In fact, the timing could be adjusted by changing the
settings in the related timing registers in EC, but unfortunately the
limitation exists due to the fact that the timing registers have been
currently occupied by another channel for the same reason, that is,
adjusting the timing.

However, according to the I2C specification, the Standard-mode (Sm)
has a bit rate up to 100 kbit/s, so far the battery use the option
of standard mode 100KHz in the SMCLK setting register. This SMCLK
setting register also provides standard mode 50KHz for usage.
According to another SI test reports, so far the Standard-mode 50KHz
setting looks good in the SI test.

Therefore, add a #define I2C_SPEED_DT allows the device tree to
write a specified speed without causing i2c_configure() and
i2c_get_config() to return error.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2022-03-22 20:30:38 -04:00
..
app_memory everywhere: fix typos 2022-03-14 20:22:24 -04:00
arch arch/x86: Get ACPI RSDP from EFI 2022-03-22 09:56:54 -04:00
audio audio: remove @return doc for void functions 2022-01-12 16:02:16 -05:00
bluetooth Bluetooth: Host: Validate security on GATT subscription 2022-03-21 10:14:53 +01:00
canbus everywhere: fix typos 2022-03-18 13:24:08 -04:00
console drivers: console: remove @return doc for void functions 2022-01-12 16:02:16 -05:00
crypto everywhere: fix typos 2022-03-18 13:24:08 -04:00
data everywhere: fix typos 2022-03-14 20:22:24 -04:00
debug everywhere: fix typos 2022-03-14 20:22:24 -04:00
devicetree devicetree: add devicetree/can.h 2022-03-15 14:32:29 -05:00
dfu
display drivers: display: grove_lcd_rgb: move to misc 2022-02-22 11:58:33 -08:00
drivers I2C: add a define that can write a specified speed from dts 2022-03-22 20:30:38 -04:00
dt-bindings ITE drivers/interrupt_controller: add wuc interface 2022-03-21 16:35:03 -07:00
fs everywhere: fix typos 2022-03-18 13:24:08 -04:00
ipc ipc_service: Add new backend based on custom messaging buffer 2022-03-22 12:36:39 +01:00
kernel kernel: Add "per thread" timeslice mechanism 2022-03-09 13:49:44 -05:00
linker linker: Create sections from zephyr,memory-region nodes 2022-03-19 14:32:17 -04:00
logging logging: fix msg2 creation in __LOG_VA 2022-03-15 12:20:03 +01:00
lorawan lorawan: allow setting of DevNonce for OTAA re-join 2022-03-19 14:29:01 -04:00
math math: introduce macro for integer log2 2022-01-11 16:10:53 -05:00
mgmt mgmt/mcumgr: Add packet re-assembly support 2022-03-21 18:03:18 +01:00
modbus everywhere: fix typos 2022-03-14 20:22:24 -04:00
multi_heap
net everywhere: fix typos 2022-03-18 13:24:08 -04:00
pm everywhere: fix typos 2022-03-18 13:24:08 -04:00
portability
posix net: sockets: Implement getpeername() function 2022-03-16 16:23:16 +01:00
random
settings everywhere: fix typos 2022-03-14 20:22:24 -04:00
shell shell: Add MQTT backend 2022-03-15 10:01:12 +01:00
stats
storage storage/flash_map: Use larger type for alignment 2021-12-30 16:32:02 -05:00
sys everywhere: fix typos 2022-03-18 13:24:08 -04:00
task_wdt
timing
toolchain everywhere: fix typos 2022-03-14 20:22:24 -04:00
tracing everywhere: fix typos 2022-03-14 20:22:24 -04:00
usb everywhere: fix typos 2022-03-18 13:24:08 -04:00
xen everywhere: fix typos 2022-03-18 13:24:08 -04:00
zephyr everywhere: fix typos 2022-03-14 20:22:24 -04:00
cache.h
device.h device: improve (z_)device_is_ready docs 2022-01-07 10:41:23 -05:00
devicetree.h devicetree: add devicetree/can.h 2022-03-15 14:32:29 -05:00
exc_handle.h
fatal.h fatal: fix missing extern "C" 2021-12-14 11:47:13 -06:00
init.h
irq_nextlevel.h drivers: interrupt_controller: remove @return doc for void funcs 2022-01-12 16:02:16 -05:00
irq_offload.h arch: Add IRQ_OFFSET_NESTED feature 2022-02-21 22:10:03 -05:00
irq.h drivers: interrupt_controller: remove @return doc for void funcs 2022-01-12 16:02:16 -05:00
kernel_includes.h
kernel_structs.h everywhere: fix typos 2022-03-14 20:22:24 -04:00
kernel_version.h
kernel.h everywhere: fix typos 2022-03-14 20:22:24 -04:00
shared_irq.h
smf.h everywhere: fix typos 2022-03-14 20:22:24 -04:00
spinlock.h doc: spinlock: ensure spinlock api is added to doxygen 2022-02-02 08:57:14 -05:00
sw_isr_table.h
sys_clock.h everywhere: fix typos 2022-03-14 20:22:24 -04:00
syscall_handler.h
syscall.h
timeout_q.h
toolchain.h toolchain: introduce macro TOOLCHAIN_HAS_C_AUTO_TYPE 2022-02-28 10:52:51 +01:00
wait_q.h
zephyr.h