Commit 24168c5e authored by Carlos Song's avatar Carlos Song Committed by Alexandre Belloni

dt-bindings: i3c: add header for generic I3C flags

Add header file for generic I3C flags to avoid hard code in dts file.
Signed-off-by: default avatarCarlos Song <carlos.song@nxp.com>
Reviewed-by: default avatarFrank Li <frank.li@nxp.com>
Acked-by: default avatarJason Liu <jason.hui.liu@nxp.com>
Signed-off-by: default avatarFrank Li <Frank.Li@nxp.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240715225351.3237284-1-Frank.Li@nxp.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent b73c9834
...@@ -91,6 +91,7 @@ patternProperties: ...@@ -91,6 +91,7 @@ patternProperties:
- const: 0 - const: 0
- description: | - description: |
Shall encode the I3C LVR (Legacy Virtual Register): Shall encode the I3C LVR (Legacy Virtual Register):
See include/dt-bindings/i3c/i3c.h
bit[31:8]: unused/ignored bit[31:8]: unused/ignored
bit[7:5]: I2C device index. Possible values: bit[7:5]: I2C device index. Possible values:
* 0: I2C device has a 50 ns spike filter * 0: I2C device has a 50 ns spike filter
...@@ -153,6 +154,8 @@ additionalProperties: true ...@@ -153,6 +154,8 @@ additionalProperties: true
examples: examples:
- | - |
#include <dt-bindings/i3c/i3c.h>
i3c@d040000 { i3c@d040000 {
compatible = "cdns,i3c-master"; compatible = "cdns,i3c-master";
clocks = <&coreclock>, <&i3csysclock>; clocks = <&coreclock>, <&i3csysclock>;
...@@ -166,7 +169,7 @@ examples: ...@@ -166,7 +169,7 @@ examples:
/* I2C device. */ /* I2C device. */
eeprom@57 { eeprom@57 {
compatible = "atmel,24c01"; compatible = "atmel,24c01";
reg = <0x57 0x0 0x10>; reg = <0x57 0x0 (I2C_FM | I2C_FILTER)>;
pagesize = <0x8>; pagesize = <0x8>;
}; };
......
...@@ -10479,6 +10479,7 @@ F: Documentation/ABI/testing/sysfs-bus-i3c ...@@ -10479,6 +10479,7 @@ F: Documentation/ABI/testing/sysfs-bus-i3c
F: Documentation/devicetree/bindings/i3c/ F: Documentation/devicetree/bindings/i3c/
F: Documentation/driver-api/i3c F: Documentation/driver-api/i3c
F: drivers/i3c/ F: drivers/i3c/
F: include/dt-bindings/i3c/
F: include/linux/i3c/ F: include/linux/i3c/
IBM Operation Panel Input Driver IBM Operation Panel Input Driver
......
/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
/*
* Copyright 2024 NXP
*/
#ifndef _DT_BINDINGS_I3C_I3C_H
#define _DT_BINDINGS_I3C_I3C_H
#define I2C_FM (1 << 4)
#define I2C_FM_PLUS (0 << 4)
#define I2C_FILTER (0 << 5)
#define I2C_NO_FILTER_HIGH_FREQUENCY (1 << 5)
#define I2C_NO_FILTER_LOW_FREQUENCY (2 << 5)
#endif
Markdown is supported
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