Skip to content

Commit 6ff0ddb

Browse files
larsclausenwsakernel
authored andcommitted
dt-bindings: i2c: cadence: Document fifo-depth property
The depth of the FIFO of the Cadence I2C controller IP is a synthesis configuration parameter. Different instances of the IP can have different values. For correct operation software needs to be aware of the size of the FIFO. Add the documentation for the devicetree property that describes the FIFO depth of the IP core. The default value of 16 is for backwards compatibility reasons with existing hardware descriptions where this property is not specified and software has assumed that the FIFO depth is 16. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent 0cc9841 commit 6ff0ddb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ properties:
3838
description: |
3939
Input clock name.
4040
41+
fifo-depth:
42+
description:
43+
Size of the data FIFO in bytes.
44+
$ref: /schemas/types.yaml#/definitions/uint32
45+
default: 16
46+
enum: [2, 4, 8, 16, 32, 64, 128, 256]
47+
4148
required:
4249
- compatible
4350
- reg
@@ -57,4 +64,5 @@ examples:
5764
clock-frequency = <400000>;
5865
#address-cells = <1>;
5966
#size-cells = <0>;
67+
fifo-depth = <8>;
6068
};

0 commit comments

Comments
 (0)