Skip to contentSkip to conversation

dt-bindings: i2c: spacemit: extend and validate all properties

PATCH Applied Yixun Lan 5 participants 5 messages Sep 17, 2025 – Sep 23, 2025

Subsystems (5)
lore
Share & tools
lore

Yixun Lan

author
#0 lore raw

PATCH 1/1 dt-bindings: i2c: spacemit: extend and validate all properties

Extend the K1 I2C properties by including generic i2c-controller schema. and this will enable it to do the DT validation check later.

---
arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dtb: i2c@d401d800: Unevaluated properties are not allowed ('#address-cells', '#size-cells', 'pmic@41' were unexpected)

---
 Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml +3 -0
index 3d6aefb0d0f185ba64e414ac7f5b96cd18659fd3..226c600deae142413277117e25baae09f0918381 100644
@@ -9,6 +9,9 @@ title: I2C controller embedded in SpacemiT's K1 SoC
 maintainers:
   - Troy Mitchell <[email protected]>
 
+allOf:
+  - $ref: /schemas/i2c/i2c-controller.yaml#
+
 properties:
   compatible:
     const: spacemit,k1-i2c

---
base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250917-01-k1-i2c-schema-faf6715d7b88

Best regards,

Signature · 1 line
Yixun Lan
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Yixun Lan

Extend the K1 I2C properties by including generic i2c-controller schema. and this will enable it to do the DT validation check later.

---
arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dtb: i2c@d401d800: Unevaluated properties are not allowed ('#address-cells', '#size-cells', 'pmic@41' were unexpected)

---
 Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml +0 -0
index 3d6aefb0d0f185ba64e414ac7f5b96cd18659fd3..226c600deae142413277117e25baae09f0918381 100644

Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml title: I2C controller embedded in SpacemiT's K1 SoC · line 14

Quoted 6 lines
Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml +3 -0
@@ -9,6 +9,9 @@ title: I2C controller embedded in SpacemiT's K1 SoC
 maintainers:
   - Troy Mitchell <[email protected]>
 
+allOf:
+  - $ref: /schemas/i2c/i2c-controller.yaml#
+

oops, I forgot to add this..
Thanks for your fix!

Quoted 17 lines
Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml +0 -1
 properties:
   compatible:
     const: spacemit,k1-i2c
 
---

base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250917-01-k1-i2c-schema-faf6715d7b88

Best regards,

Signature · 7 lines
Yixun Lan


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Tested-by on v1 1/1
#2 lore raw
In reply to Yixun Lan
Quoted 4 lines · Yixun Lan

Extend the K1 I2C properties by including generic i2c-controller schema. and this will enable it to do the DT validation check later.

Quoted 28 lines

---
arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dtb: i2c@d401d800: Unevaluated properties are not allowed ('#address-cells', '#size-cells', 'pmic@41' were unexpected)

---
  Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml | 3 +++
  1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml +3 -1
index 3d6aefb0d0f185ba64e414ac7f5b96cd18659fd3..226c600deae142413277117e25baae09f0918381 100644
@@ -9,6 +9,9 @@ title: I2C controller embedded in SpacemiT's K1 SoC
  maintainers:
    - Troy Mitchell <[email protected]>
 
+allOf:
+  - $ref: /schemas/i2c/i2c-controller.yaml#
+
  properties:
    compatible:
      const: spacemit,k1-i2c
 
---

base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250917-01-k1-i2c-schema-faf6715d7b88

Best regards,