[PATCH V6 3/3] i2c: xiic: Add SCL frequency configuration support

Wolfram Sang wsa at kernel.org
Fri Feb 17 13:45:24 PST 2023


On Wed, Feb 15, 2023 at 07:02:24PM +0530, Manikanta Guntupalli wrote:
> From: Raviteja Narayanam <raviteja.narayanam at xilinx.com>
> 
> From 'clock-frequency' device tree property, configure I2C SCL
> frequency by calculating the timing register values according to
> input clock.
> 
> After soft reset in reinit function, the timing registers are set
> to default values (configured in design tool). So, setting SCL
> frequency is done inside reinit function after the soft reset.
> This allows configuration of SCL frequency exclusively through
> software via device tree property, overriding the design.
> If the clock-frequency parameter is not specified in DT, driver
> doesn't configure frequency, making it backward compatible.
> 
> Signed-off-by: Raviteja Narayanam <raviteja.narayanam at xilinx.com>
> Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli at amd.com>
> Acked-by: Michal Simek <michal.simek at amd.com>

Applied to for-next, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230217/97d3042b/attachment.sig>


More information about the linux-arm-kernel mailing list