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

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: Carlos Song <carlos.song@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240715225351.3237284-1-Frank.Li@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Carlos Song and committed by
Alexandre Belloni
24168c5e b73c9834

+21 -1
+4 -1
Documentation/devicetree/bindings/i3c/i3c.yaml
··· 91 91 - const: 0 92 92 - description: | 93 93 Shall encode the I3C LVR (Legacy Virtual Register): 94 + See include/dt-bindings/i3c/i3c.h 94 95 bit[31:8]: unused/ignored 95 96 bit[7:5]: I2C device index. Possible values: 96 97 * 0: I2C device has a 50 ns spike filter ··· 154 153 155 154 examples: 156 155 - | 156 + #include <dt-bindings/i3c/i3c.h> 157 + 157 158 i3c@d040000 { 158 159 compatible = "cdns,i3c-master"; 159 160 clocks = <&coreclock>, <&i3csysclock>; ··· 169 166 /* I2C device. */ 170 167 eeprom@57 { 171 168 compatible = "atmel,24c01"; 172 - reg = <0x57 0x0 0x10>; 169 + reg = <0x57 0x0 (I2C_FM | I2C_FILTER)>; 173 170 pagesize = <0x8>; 174 171 }; 175 172
+1
MAINTAINERS
··· 10479 10479 F: Documentation/devicetree/bindings/i3c/ 10480 10480 F: Documentation/driver-api/i3c 10481 10481 F: drivers/i3c/ 10482 + F: include/dt-bindings/i3c/ 10482 10483 F: include/linux/i3c/ 10483 10484 10484 10485 IBM Operation Panel Input Driver
+16
include/dt-bindings/i3c/i3c.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ 2 + /* 3 + * Copyright 2024 NXP 4 + */ 5 + 6 + #ifndef _DT_BINDINGS_I3C_I3C_H 7 + #define _DT_BINDINGS_I3C_I3C_H 8 + 9 + #define I2C_FM (1 << 4) 10 + #define I2C_FM_PLUS (0 << 4) 11 + 12 + #define I2C_FILTER (0 << 5) 13 + #define I2C_NO_FILTER_HIGH_FREQUENCY (1 << 5) 14 + #define I2C_NO_FILTER_LOW_FREQUENCY (2 << 5) 15 + 16 + #endif