[PATCH 1/2] dt-bindings: i2c: spacemit: k3: Add compatible

Troy Mitchell troy.mitchell at linux.spacemit.com
Wed Mar 25 03:42:38 PDT 2026


On Wed Mar 25, 2026 at 5:49 PM CST, Yixun Lan wrote:
> Add a compatible string for the I2C controller found in SpacemiT K3 SoC
> which use same I2C IP as K1, so make it fallback to K1 compatible.
>
> Signed-off-by: Yixun Lan <dlan at kernel.org>
> ---
>  Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml b/Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml
> index 5896fb120501..8c04c675b25e 100644
> --- a/Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml
> +++ b/Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml
> @@ -14,7 +14,11 @@ allOf:
>  
>  properties:
>    compatible:
> -    const: spacemit,k1-i2c
> +    oneOf:
> +      - items:
> +          - const: spacemit,k3-i2c
> +          - const: spacemit,k1-i2c
> +      - const: spacemit,k1-i2c
>  
>    reg:
>      maxItems: 1
Reviewed-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>




More information about the linux-riscv mailing list