i2c: Cleanup dts clock-frequency property usage
Clarify that the clock-frequency is the bitrate at boot and introduce defines that .dts files can use to set the clock-frequency. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
10acdb5468
commit
670fc3230d
2 changed files with 16 additions and 1 deletions
|
@ -18,7 +18,7 @@ properties:
|
||||||
- clock-frequency :
|
- clock-frequency :
|
||||||
type: int
|
type: int
|
||||||
category: optional
|
category: optional
|
||||||
description: Maximum I2C bus clock frequency in Hz
|
description: Initial clock frequency in Hz
|
||||||
generation: define
|
generation: define
|
||||||
- clocks:
|
- clocks:
|
||||||
type: array
|
type: array
|
||||||
|
|
15
include/dt-bindings/i2c/i2c.h
Normal file
15
include/dt-bindings/i2c/i2c.h
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2017 Linaro Limited
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
#ifndef __DT_BINDINGS_I2C_I2C_H
|
||||||
|
#define __DT_BINDINGS_I2C_I2C_H
|
||||||
|
|
||||||
|
#define I2C_BITRATE_STANDARD 100000 /* 100 Kbit/s */
|
||||||
|
#define I2C_BITRATE_FAST 400000 /* 400 Kbit/s */
|
||||||
|
#define I2C_BITRATE_FAST_PLUS 1000000 /* 1 Mbit/s */
|
||||||
|
#define I2C_BITRATE_HIGH 3400000 /* 3.4 Mbit/s */
|
||||||
|
#define I2C_BITRATE_ULTRA 5000000 /* 5 Mbit/s */
|
||||||
|
|
||||||
|
#endif /* __DT_BINDINGS_I2C_I2C_H */
|
Loading…
Add table
Add a link
Reference in a new issue