Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt: snps,designware-i2c: Add clock bindings documentation

The driver requires an undocumented clock property, so detail it.
Add documentation for a separate, optional, interface clock.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Gareth Williams <gareth.williams.jx@renesas.com>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Phil Edworthy and committed by
Wolfram Sang
bdfdf4b2 9e98c678

+9
+9
Documentation/devicetree/bindings/i2c/i2c-designware.txt
··· 6 6 or "mscc,ocelot-i2c" with "snps,designware-i2c" for fallback 7 7 - reg : Offset and length of the register set for the device 8 8 - interrupts : <IRQ> where IRQ is the interrupt number. 9 + - clocks : phandles for the clocks, see the description of clock-names below. 10 + The phandle for the "ic_clk" clock is required. The phandle for the "pclk" 11 + clock is optional. If a single clock is specified but no clock-name, it is 12 + the "ic_clk" clock. If both clocks are listed, the "ic_clk" must be first. 9 13 10 14 Recommended properties : 11 15 12 16 - clock-frequency : desired I2C bus clock frequency in Hz. 13 17 14 18 Optional properties : 19 + 20 + - clock-names : Contains the names of the clocks: 21 + "ic_clk", for the core clock used to generate the external I2C clock. 22 + "pclk", the interface clock, required for register access. 23 + 15 24 - reg : for "mscc,ocelot-i2c", a second register set to configure the SDA hold 16 25 time, named ICPU_CFG:TWI_DELAY in the datasheet. 17 26