Skip to contentSkip to conversation

dt-bindings: mfd: syscon: Add ti,am654-icssg-ctrl compatible

PATCH In review Andrew Davis 2 participants 9 messages Dec 3, 2024 – Dec 4, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 dt-bindings: mfd: syscon: Add ti,am654-icssg-ctrl compatible

Add TI ICSSG control registers compatible. This is a region found in the TI AM65 CTRL_MMR0 register space[0]. Each instance is used to control a an ICSSG's RGMII delay and GPO mode.

[0] https://www.ti.com/lit/pdf/spruid7

---
 Documentation/devicetree/bindings/mfd/syscon.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/mfd/syscon.yaml +2 -0
index b414de4fa779b..34943d9fc0ab5 100644
@@ -115,6 +115,7 @@ select:
           - ti,am625-dss-oldi-io-ctrl
           - ti,am62p-cpsw-mac-efuse
           - ti,am654-dss-oldi-io-ctrl
+          - ti,am654-icssg-ctrl
           - ti,j784s4-acspcie-proxy-ctrl
           - ti,j784s4-pcie-ctrl
           - ti,keystone-pllctrl
@@ -213,6 +214,7 @@ properties:
           - ti,am625-dss-oldi-io-ctrl
           - ti,am62p-cpsw-mac-efuse
           - ti,am654-dss-oldi-io-ctrl
+          - ti,am654-icssg-ctrl
           - ti,j784s4-pcie-ctrl
           - ti,keystone-pllctrl
       - const: syscon
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/4 dt-bindings: soc: ti: ti,j721e-system-controller: Add ICSSG ctrl property

Add a pattern property for icssg-ctrl which can be part of this controller.

---
 .../bindings/soc/ti/ti,j721e-system-controller.yaml         | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml +6 -0
index 378e9cc5fac2a..9ba9cb100ab30 100644
@@ -68,6 +68,12 @@ patternProperties:
     description:
       The node corresponding to SoC chip identification.
 
+  "^icssg-ctrl@[0-9a-f]+$":
+    type: object
+    $ref: /schemas/mfd/syscon.yaml#
+    description:
+      This is the ICSSG control region.
+
 required:
   - compatible
   - reg
Signature · 1 line
2.39.2
#2 lore raw

Re: [PATCH 2/4] dt-bindings: soc: ti: ti,j721e-system-controller: Add ICSSG ctrl property

Quoted 12 lines · Andrew Davis

Add a pattern property for icssg-ctrl which can be part of this controller.

---
 .../bindings/soc/ti/ti,j721e-system-controller.yaml         | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml +0 -0
index 378e9cc5fac2a..9ba9cb100ab30 100644

Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml patternProperties: · line 75

Quoted 8 lines
Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml +5 -0
@@ -68,6 +68,12 @@ patternProperties:
     description:
       The node corresponding to SoC chip identification.
 
+  "^icssg-ctrl@[0-9a-f]+$":
+    type: object
+    $ref: /schemas/mfd/syscon.yaml#
+    description:
+      This is the ICSSG control region.

Drop, regions are not described in DTS.

Best regards,
Krzysztof

#3 lore raw

PATCH 3/4 dt-bindings: soc: ti: ti,j721e-system-controller: Add PCIe ctrl property

In reply to Andrew Davis

Add a pattern property for pcie-ctrl which can be part of this controller.

---
 .../bindings/soc/ti/ti,j721e-system-controller.yaml         | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml +6 -0
index 9ba9cb100ab30..ead0679b30e3f 100644
@@ -74,6 +74,12 @@ patternProperties:
     description:
       This is the ICSSG control region.
 
+  "^pcie-ctrl@[0-9a-f]+$":
+    type: object
+    $ref: /schemas/mfd/syscon.yaml#
+    description:
+      This is the PCIe control region.
+
 required:
   - compatible
   - reg
Signature · 1 line
2.39.2
#4 lore raw

Re: [PATCH 3/4] dt-bindings: soc: ti: ti,j721e-system-controller: Add PCIe ctrl property

Quoted 12 lines · Andrew Davis

Add a pattern property for pcie-ctrl which can be part of this controller.

---
 .../bindings/soc/ti/ti,j721e-system-controller.yaml         | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml +0 -0
index 9ba9cb100ab30..ead0679b30e3f 100644

Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml patternProperties: · line 81

Quoted 8 lines
Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml +5 -0
@@ -74,6 +74,12 @@ patternProperties:
     description:
       This is the ICSSG control region.
 
+  "^pcie-ctrl@[0-9a-f]+$":
+    type: object
+    $ref: /schemas/mfd/syscon.yaml#
+    description:
+      This is the PCIe control region.

This device (parent) is a syscon already. There is no sub-block representation, because what would be next? Third child with a node per each register?

Best regards,
Krzysztof

#5 lore raw

PATCH 4/4 dt-bindings: soc: ti: ti,j721e-system-controller: Add MAC efuse property

In reply to Andrew Davis

Add a pattern property for MAC efuse which can be part of this controller.

---
 .../bindings/soc/ti/ti,j721e-system-controller.yaml         | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml +6 -0
index ead0679b30e3f..fbaae3d1bef60 100644
@@ -80,6 +80,12 @@ patternProperties:
     description:
       This is the PCIe control region.
 
+  "^ethernet-mac-syscon@[0-9a-f]+$":
+    type: object
+    $ref: /schemas/mfd/syscon.yaml#
+    description:
+      This is the Ethernet MAC efuse region.
+
 required:
   - compatible
   - reg
Signature · 1 line
2.39.2
#6 lore raw

Re: [PATCH 4/4] dt-bindings: soc: ti: ti,j721e-system-controller: Add MAC efuse property

Quoted 1 line · Andrew Davis

Add a pattern property for MAC efuse which can be part of this controller.

Can be or is? Please describe the hardware what do you have there.

Quoted 11 lines
---
 .../bindings/soc/ti/ti,j721e-system-controller.yaml         | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml +0 -0
index ead0679b30e3f..fbaae3d1bef60 100644

Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml patternProperties: · line 83

Quoted 4 lines
Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml +1 -0
@@ -80,6 +80,12 @@ patternProperties:
     description:
       This is the PCIe control region.
 
+  "^ethernet-mac-syscon@[0-9a-f]+$":

Drop syscon, unless this is system controller because in such case drop ethernet-mac.

Best regards,
Krzysztof

#7 lore raw

Re: [PATCH 4/4] dt-bindings: soc: ti: ti,j721e-system-controller: Add MAC efuse property

In reply to Andrew Davis
Quoted 12 lines · Andrew Davis

Add a pattern property for MAC efuse which can be part of this controller.

---
 .../bindings/soc/ti/ti,j721e-system-controller.yaml         | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml +0 -0
index ead0679b30e3f..fbaae3d1bef60 100644

Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml patternProperties: · line 87

Quoted 8 lines
Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml +5 -0
@@ -80,6 +80,12 @@ patternProperties:
     description:
       This is the PCIe control region.
 
+  "^ethernet-mac-syscon@[0-9a-f]+$":
+    type: object
+    $ref: /schemas/mfd/syscon.yaml#
+    description:
+      This is the Ethernet MAC efuse region.

Actually considering my comment on the previous patch - drop.

Best regards,
Krzysztof

#8 lore raw
In reply to Andrew Davis
Quoted 16 lines · Andrew Davis

Add TI ICSSG control registers compatible. This is a region found in the TI AM65 CTRL_MMR0 register space[0]. Each instance is used to control a an ICSSG's RGMII delay and GPO mode.

[0] https://www.ti.com/lit/pdf/spruid7

---
 Documentation/devicetree/bindings/mfd/syscon.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/mfd/syscon.yaml +0 -0
index b414de4fa779b..34943d9fc0ab5 100644

Documentation/devicetree/bindings/mfd/syscon.yaml select: · line 118

Quoted 4 lines
Documentation/devicetree/bindings/mfd/syscon.yaml +1 -0
@@ -115,6 +115,7 @@ select:
           - ti,am625-dss-oldi-io-ctrl
           - ti,am62p-cpsw-mac-efuse
           - ti,am654-dss-oldi-io-ctrl
+          - ti,am654-icssg-ctrl

Considering your patch #2 adding something with similar name, this is quite confusing.

Anyway, where is any user of this? If there is no user, then why? If there is, then commit msg should explain that you document existing device.

Best regards,
Krzysztof