Skip to content
Commit 3256412f authored by Weilong Chen's avatar Weilong Chen Committed by Wolfram Sang
Browse files

i2c: hisi: Add support to get clock frequency from clock



The clk_rate attribute is not generic device tree bindings for I2C
busses described in Documentation/devicetree/bindings/i2c/i2c.txt.
It can be managed by clock binding.

Support the driver to obtain clock information by clk_rate or
clock property. Find clock first, if not, fall back to clk_rate.

Signed-off-by: default avatarWeilong Chen <chenweilong@huawei.com>
Acked-by: default avatarYicong Yang <yangyicong@hisilicon.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent d78a1673
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment