aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2023-03-17 07:54:39 -0700
committerWolfram Sang <wsa@kernel.org>2023-03-29 21:16:50 +0200
commit6ff0ddb3051e33372a22b1fac11ee74315f9d12e (patch)
treec7cc2f8d330df359decdc89b6cc531d44056df63
parenti2c: xiic: Use devm_platform_get_and_ioremap_resource() (diff)
downloadwireguard-linux-6ff0ddb3051e33372a22b1fac11ee74315f9d12e.tar.xz
wireguard-linux-6ff0ddb3051e33372a22b1fac11ee74315f9d12e.zip
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>
-rw-r--r--Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml b/Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml
index 2e95cda7262a..2401d1e19916 100644
--- a/Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml
+++ b/Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml
@@ -38,6 +38,13 @@ properties:
description: |
Input clock name.
+ fifo-depth:
+ description:
+ Size of the data FIFO in bytes.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ default: 16
+ enum: [2, 4, 8, 16, 32, 64, 128, 256]
+
required:
- compatible
- reg
@@ -57,4 +64,5 @@ examples:
clock-frequency = <400000>;
#address-cells = <1>;
#size-cells = <0>;
+ fifo-depth = <8>;
};