lkml.org 
[lkml]   [2022]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/2] Add i2c clock duty cycle property for setting minimum persentage of clock high
Date
Introducing i2c-clk-duty-cycle-min property for setting minimum persentage
of clock high.

This driver will go through base clock divisor and calculate a set of
high/low clock with duty cycle applied. if driver could not find a suit
high/low clock set, then it will use default duty cycle (50%) recalculate.

LINK: [v1] https://lore.kernel.org/all/20220530114056.8722-1-potin.lai.pt@gmail.com/
LINK: [v2] https://lore.kernel.org/all/20220601041512.21484-1-potin.lai.pt@gmail.com/

changes v2 --> v3:
* discard the properties for manual setting, use duty cycle to calculate
high/low clock.

changes v1 --> v2:
* update bt-bindings documentation
* use meaningful values for properties instead of acture value in register

Potin Lai (2):
aspeed: i2c: add clock duty cycle property
dt-bindings: aspeed-i2c: add properties for setting i2c clock duty
cycle

.../devicetree/bindings/i2c/aspeed,i2c.yaml | 8 +++
drivers/i2c/busses/i2c-aspeed.c | 56 +++++++++++++++----
2 files changed, 53 insertions(+), 11 deletions(-)

--
2.17.1

\
 
 \ /
  Last update: 2022-06-07 18:40    [W:0.042 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site