dt-bindings: power: Add SiFive Domain Management controllers
Subsystems (3)
PATCH 1/1 dt-bindings: power: Add SiFive Domain Management controllers
SiFive Domain Management controller includes the following components
- SiFive Tile Management Controller
- SiFive Cluster Management Controller
- SiFive Core Complex Management Controller
These controllers control the clock and power domain of the corresponding domain.
--- .../devicetree/bindings/power/sifive,tmc.yaml | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/sifive,tmc.yaml
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +89 -0
@@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/sifive,tmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SiFive Domain Management Controller + +maintainers: + - Cyan Yang <[email protected]> + - Nick Hu <[email protected]> + - Samuel Holland <[email protected]> + +description: | + This is the device tree binding for the following SiFive Domain Management Controllers. + - Tile Management Controller + - TMC0 + - TMC1 + - TMC2 + - TMC3 + - Subsystem Management Controller + - SMC0 + - SMC1 + - SMC2 + - SMC3 + - Cluster Management Controller + - CMC2 + - CMC3 + SiFive Domain Management Controllers support the SiFive Quiet Interface + Protocol (SQIP) starting from the Version 1. The control method is + different from the Version 0, making them incompatible. + +allOf: + - $ref: power-domain.yaml# + +properties: + compatible: + oneOf: + - items: + - {} + - pattern: "^sifive,[ts]mc0$" + - items: + - {} + - pattern: "^sifive,[ts]mc3$" + - pattern: "^sifive,[ts]mc2$" + - pattern: "^sifive,[ts]mc1$" + - items: + - {} + - pattern: "^sifive,[ts]mc2$" + - pattern: "^sifive,[ts]mc1$" + - items: + - {} + - pattern: "^sifive,[ts]mc1$" + - items: + - {} + - const: sifive,cmc3 + - const: sifive,cmc2 + - items: + - {} + - const: sifive,cmc2 + + reg: + maxItems: 1 + + sifive,feature-level: + description: | + Supported power features. This property is absent if the full set of features + is supported + $ref: /schemas/types.yaml#/definitions/string + enum: ["nopg", "ceasepg", "runonlypg"] + + "#power-domain-cells": + const: 0 + +if: + not: + properties: + compatible: + contains: + pattern: "^sifive,[tsc]mc3$" +then: + properties: + sifive,feature-level: false + +required: + - compatible + - reg + +additionalProperties: false
Signature · 1 line
2.17.1
Quoted 5 lines · Nick Hu
SiFive Domain Management controller includes the following components
- SiFive Tile Management Controller
- SiFive Cluster Management Controller
- SiFive Core Complex Management Controller
Quoted 7 lines
These controllers control the clock and power domain of the corresponding domain.
Signed-off-by Nick Hu <[email protected]>Reviewed-by Samuel Holland <[email protected]>--- .../devicetree/bindings/power/sifive,tmc.yaml | 89 +++++++++++++++++++
Where is a patch with the driver (user of the binding)?
Quoted 14 lines
1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/sifive,tmc.yamlDocumentation/devicetree/bindings/power/sifive,tmc.yaml new file +5
-0@@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/sifive,tmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml#
Documentation/devicetree/bindings/power/sifive,tmc.yaml line 15
Quoted 10 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +10
-0+ +title: SiFive Domain Management Controller + +maintainers: + - Cyan Yang <[email protected]> + - Nick Hu <[email protected]> + - Samuel Holland <[email protected]> + +description: | + This is the device tree binding for the following SiFive Domain Management Controllers.
Explain the hardware, not that "binding is a binding for ...".
Also, wrap according to Linux coding style.
Quoted 35 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +35
-0+ - Tile Management Controller + - TMC0 + - TMC1 + - TMC2 + - TMC3 + - Subsystem Management Controller + - SMC0 + - SMC1 + - SMC2 + - SMC3 + - Cluster Management Controller + - CMC2 + - CMC3 + SiFive Domain Management Controllers support the SiFive Quiet Interface + Protocol (SQIP) starting from the Version 1. The control method is + different from the Version 0, making them incompatible. + +allOf: + - $ref: power-domain.yaml# + +properties: + compatible: + oneOf: + - items: + - {} + - pattern: "^sifive,[ts]mc0$" + - items: + - {} + - pattern: "^sifive,[ts]mc3$" + - pattern: "^sifive,[ts]mc2$" + - pattern: "^sifive,[ts]mc1$" + - items: + - {} + - pattern: "^sifive,[ts]mc2$" + - pattern: "^sifive,[ts]mc1$"
Documentation/devicetree/bindings/power/sifive,tmc.yaml line 60
Quoted 10 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +10
-0+ - items: + - {} + - pattern: "^sifive,[ts]mc1$" + - items: + - {} + - const: sifive,cmc3 + - const: sifive,cmc2 + - items: + - {} + - const: sifive,cmc2
All of this is just unexpected. Why any compatible should come with these? You need to use SoC specific compatibles.
Documentation/devicetree/bindings/power/sifive,tmc.yaml line 68
Quoted 8 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +8
-0+ + reg: + maxItems: 1 + + sifive,feature-level: + description: | + Supported power features. This property is absent if the full set of features + is supported
Compatible defines this. Drop.
Quoted 11 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +11
-0+ $ref: /schemas/types.yaml#/definitions/string + enum: ["nopg", "ceasepg", "runonlypg"] + + "#power-domain-cells": + const: 0 + +if: + not: + properties: + compatible: + contains:
Documentation/devicetree/bindings/power/sifive,tmc.yaml line 89
Quoted 10 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +10
-0+ pattern: "^sifive,[tsc]mc3$" +then: + properties: + sifive,feature-level: false + +required: + - compatible + - reg + +additionalProperties: false
Missing example.
Best regards,
Krzysztof
Quoted 86 lines · Krzysztof Kozlowski
Quoted 5 lines · Nick Hu
SiFive Domain Management controller includes the following components
- SiFive Tile Management Controller
- SiFive Cluster Management Controller
- SiFive Core Complex Management ControllerQuoted 7 lines
These controllers control the clock and power domain of the corresponding domain.
Signed-off-by Nick Hu <[email protected]>Reviewed-by Samuel Holland <[email protected]>--- .../devicetree/bindings/power/sifive,tmc.yaml | 89 +++++++++++++++++++Where is a patch with the driver (user of the binding)?
Quoted 14 lines
1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/sifive,tmc.yamlDocumentation/devicetree/bindings/power/sifive,tmc.yaml new file +5
-0@@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/sifive,tmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml#Documentation/devicetree/bindings/power/sifive,tmc.yaml line 15
Quoted 10 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +10
-0+ +title: SiFive Domain Management Controller + +maintainers: + - Cyan Yang <[email protected]> + - Nick Hu <[email protected]> + - Samuel Holland <[email protected]> + +description: | + This is the device tree binding for the following SiFive Domain Management Controllers.Explain the hardware, not that "binding is a binding for ...".
Also, wrap according to Linux coding style.
Quoted 40 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +40
-0+ - Tile Management Controller + - TMC0 + - TMC1 + - TMC2 + - TMC3 + - Subsystem Management Controller + - SMC0 + - SMC1 + - SMC2 + - SMC3 + - Cluster Management Controller + - CMC2 + - CMC3 + SiFive Domain Management Controllers support the SiFive Quiet Interface + Protocol (SQIP) starting from the Version 1. The control method is + different from the Version 0, making them incompatible. + +allOf: + - $ref: power-domain.yaml# + +properties: + compatible: + oneOf: + - items: + - {} + - pattern: "^sifive,[ts]mc0$" + - items: + - {} + - pattern: "^sifive,[ts]mc3$" + - pattern: "^sifive,[ts]mc2$" + - pattern: "^sifive,[ts]mc1$" + - items: + - {} + - pattern: "^sifive,[ts]mc2$" + - pattern: "^sifive,[ts]mc1$" + - items: + - {} + - pattern: "^sifive,[ts]mc1$" + - items: + - {}
Quoted 8 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml line 60
Quoted 5 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +5
-0+ - const: sifive,cmc3 + - const: sifive,cmc2 + - items: + - {} + - const: sifive,cmc2All of this is just unexpected. Why any compatible should come with these?
It's also not quite correct either, right? Or may not be correct at least. It permits "xxx", "tmc2", "smc1" and "xxx", "smc2", "tmc1" which mean that the smc and tmc must be identical in terms of programming model.
Quoted 1 line
You need to use SoC specific compatibles.
I think there's some slack to provide here, sifive are upstreaming it in advance of there being customers (or customers ready to upstream) and this format allows us to accept bindings/drivers and the customer will have to add a soc-specific compatible in order to actually use these in a dts. I think it's better to accept something along these lines than stall out until a customer decides to upstream their user. That said, I would expect this to come (as you mentioned above) with the driver.
Quoted 27 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml line 68
Quoted 8 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +8
-0+ + reg: + maxItems: 1 + + sifive,feature-level: + description: | + Supported power features. This property is absent if the full set of features + is supportedCompatible defines this. Drop.
Quoted 15 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +15
-0+ $ref: /schemas/types.yaml#/definitions/string + enum: ["nopg", "ceasepg", "runonlypg"] + + "#power-domain-cells": + const: 0 + +if: + not: + properties: + compatible: + contains: + pattern: "^sifive,[tsc]mc3$" +then: + properties: + sifive,feature-level: false
Quoted 8 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml line 89
Quoted 6 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +6
-0+ +required: + - compatible + - reg + +additionalProperties: falseMissing example.
You can't actually make an example that passes validation when the soc-specific compatibles are not added, so this would require adding some.
Quoted 9 lines · Conor Dooley
Quoted 9 lines
Quoted 8 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +8
-0+ - pattern: "^sifive,[ts]mc1$" + - items: + - {} + - const: sifive,cmc3 + - const: sifive,cmc2 + - items: + - {} + - const: sifive,cmc2
Quoted 7 lines
Quoted 2 lines
All of this is just unexpected. Why any compatible should come with these?
It's also not quite correct either, right? Or may not be correct at least. It permits "xxx", "tmc2", "smc1" and "xxx", "smc2", "tmc1" which mean that the smc and tmc must be identical in terms of programming model.
Yep
Quoted 8 lines
Quoted 2 lines
You need to use SoC specific compatibles.
I think there's some slack to provide here, sifive are upstreaming it in advance of there being customers (or customers ready to upstream) and this format allows us to accept bindings/drivers and the customer will have to add a soc-specific compatible in order to actually use these in a dts. I think it's better to accept something along these lines than
Sure, commit msg should explain that and probably these {} wildcards should have comment as well.
Quoted 3 lines
stall out until a customer decides to upstream their user. That said, I would expect this to come (as you mentioned above) with the driver.
Best regards,
Krzysztof
Quoted 24 lines · Krzysztof Kozlowski
Quoted 9 lines · Conor Dooley
Quoted 9 lines
Quoted 8 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +8
-0+ - pattern: "^sifive,[ts]mc1$" + - items: + - {} + - const: sifive,cmc3 + - const: sifive,cmc2 + - items: + - {} + - const: sifive,cmc2Quoted 7 lines
Quoted 2 lines
All of this is just unexpected. Why any compatible should come with these?
It's also not quite correct either, right? Or may not be correct at least. It permits "xxx", "tmc2", "smc1" and "xxx", "smc2", "tmc1" which mean that the smc and tmc must be identical in terms of programming model.
Yep
Quoted 3 lines
Quoted 2 lines
You need to use SoC specific compatibles.
Quoted 9 lines
Quoted 5 lines
I think there's some slack to provide here, sifive are upstreaming it in advance of there being customers (or customers ready to upstream) and this format allows us to accept bindings/drivers and the customer will have to add a soc-specific compatible in order to actually use these in a dts. I think it's better to accept something along these lines than
Sure, commit msg should explain that and probably these {} wildcards should have comment as well.
I'll update it in the next version. Thanks.
Quoted 6 lines
Quoted 3 lines
stall out until a customer decides to upstream their user. That said, I would expect this to come (as you mentioned above) with the driver.
Best regards,
Krzysztof
Quoted 97 lines · Conor Dooley
Quoted 86 lines · Krzysztof Kozlowski
Quoted 5 lines · Nick Hu
SiFive Domain Management controller includes the following components
- SiFive Tile Management Controller
- SiFive Cluster Management Controller
- SiFive Core Complex Management ControllerQuoted 7 lines
These controllers control the clock and power domain of the corresponding domain.
Signed-off-by Nick Hu <[email protected]>Reviewed-by Samuel Holland <[email protected]>--- .../devicetree/bindings/power/sifive,tmc.yaml | 89 +++++++++++++++++++Where is a patch with the driver (user of the binding)?
Quoted 14 lines
1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/sifive,tmc.yamlDocumentation/devicetree/bindings/power/sifive,tmc.yaml new file +5
-0@@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/sifive,tmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml#Documentation/devicetree/bindings/power/sifive,tmc.yaml line 15
Quoted 10 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +10
-0+ +title: SiFive Domain Management Controller + +maintainers: + - Cyan Yang <[email protected]> + - Nick Hu <[email protected]> + - Samuel Holland <[email protected]> + +description: | + This is the device tree binding for the following SiFive Domain Management Controllers.Explain the hardware, not that "binding is a binding for ...".
Also, wrap according to Linux coding style.
Quoted 40 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +40
-0+ - Tile Management Controller + - TMC0 + - TMC1 + - TMC2 + - TMC3 + - Subsystem Management Controller + - SMC0 + - SMC1 + - SMC2 + - SMC3 + - Cluster Management Controller + - CMC2 + - CMC3 + SiFive Domain Management Controllers support the SiFive Quiet Interface + Protocol (SQIP) starting from the Version 1. The control method is + different from the Version 0, making them incompatible. + +allOf: + - $ref: power-domain.yaml# + +properties: + compatible: + oneOf: + - items: + - {} + - pattern: "^sifive,[ts]mc0$" + - items: + - {} + - pattern: "^sifive,[ts]mc3$" + - pattern: "^sifive,[ts]mc2$" + - pattern: "^sifive,[ts]mc1$" + - items: + - {} + - pattern: "^sifive,[ts]mc2$" + - pattern: "^sifive,[ts]mc1$" + - items: + - {} + - pattern: "^sifive,[ts]mc1$" + - items: + - {}Quoted 8 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml line 60
Quoted 5 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +5
-0+ - const: sifive,cmc3 + - const: sifive,cmc2 + - items: + - {} + - const: sifive,cmc2All of this is just unexpected. Why any compatible should come with these?
Quoted 5 lines
It's also not quite correct either, right? Or may not be correct at least. It permits "xxx", "tmc2", "smc1" and "xxx", "smc2", "tmc1" which mean that the smc and tmc must be identical in terms of programming model.
You are right, I hadn't considered that case. I'll address it in the next version.
Quoted 10 lines
Quoted 1 line
You need to use SoC specific compatibles.
I think there's some slack to provide here, sifive are upstreaming it in advance of there being customers (or customers ready to upstream) and this format allows us to accept bindings/drivers and the customer will have to add a soc-specific compatible in order to actually use these in a dts. I think it's better to accept something along these lines than stall out until a customer decides to upstream their user. That said, I would expect this to come (as you mentioned above) with the driver.
Thanks for the understanding =)
I'm hoping the driver can be submitted at a later stage. The driver that handles the MMIO is implemented in OpenSBI and depends on some prerequisite patches [1], so it will follow afterward.
Links:
- [1] https://lore.kernel.org/opensbi/CAKddAkD00gLgpzOCXY9mXaebr2qZcU9mkUGOZ4278w0bmiLuBQ@mail.gmail.com/T/#t
Quoted 36 lines
Quoted 27 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml line 68
Quoted 8 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +8
-0+ + reg: + maxItems: 1 + + sifive,feature-level: + description: | + Supported power features. This property is absent if the full set of features + is supportedCompatible defines this. Drop.
Quoted 15 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +15
-0+ $ref: /schemas/types.yaml#/definitions/string + enum: ["nopg", "ceasepg", "runonlypg"] + + "#power-domain-cells": + const: 0 + +if: + not: + properties: + compatible: + contains: + pattern: "^sifive,[tsc]mc3$" +then: + properties: + sifive,feature-level: falseQuoted 8 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml line 89
Quoted 6 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +6
-0+ +required: + - compatible + - reg + +additionalProperties: falseMissing example.
Quoted 3 lines
You can't actually make an example that passes validation when the soc-specific compatibles are not added, so this would require adding some.
I can add a comment here to note that the example should be included once a SoC-specific compatible string is available.
Best Regards,
Nick
Quoted 10 lines · Krzysztof Kozlowski
Quoted 8 lines · Nick Hu
SiFive Domain Management controller includes the following components
- SiFive Tile Management Controller
- SiFive Cluster Management Controller
- SiFive Core Complex Management ControllerThese controllers control the clock and power domain of the corresponding domain.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Nick Hu <[email protected]>Reviewed-by Samuel Holland <[email protected]>--- .../devicetree/bindings/power/sifive,tmc.yaml | 89 +++++++++++++++++++Where is a patch with the driver (user of the binding)?
We are hoping the driver can be submitted at a later stage. The driver that handles the MMIO is implemented in OpenSBI and depends on some prerequisite patches [1], so it will follow afterward.
Links:
- [1] https://lore.kernel.org/opensbi/CAKddAkD00gLgpzOCXY9mXaebr2qZcU9mkUGOZ4278w0bmiLuBQ@mail.gmail.com/T/#t
Quoted 27 lines
Quoted 14 lines
1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/sifive,tmc.yamlDocumentation/devicetree/bindings/power/sifive,tmc.yaml new file +5
-0@@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/sifive,tmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml#Documentation/devicetree/bindings/power/sifive,tmc.yaml line 15
Quoted 10 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +10
-0+ +title: SiFive Domain Management Controller + +maintainers: + - Cyan Yang <[email protected]> + - Nick Hu <[email protected]> + - Samuel Holland <[email protected]> + +description: | + This is the device tree binding for the following SiFive Domain Management Controllers.Explain the hardware, not that "binding is a binding for ...".
Quoted 2 lines
Also, wrap according to Linux coding style.
Thanks for the advice. I'll address it in the next version =)
Quoted 11 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml line 68
Quoted 8 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +8
-0+ + reg: + maxItems: 1 + + sifive,feature-level: + description: | + Supported power features. This property is absent if the full set of features + is supportedCompatible defines this. Drop.
The property depends on how the IP is hooked up to the rest of the SoC. Having this property simplifies the SW and allows us to use a single fallback compatible string, so we prefer to keep it.
Best Regards,
Nick
Quoted 16 lines · Nick Hu
Quoted 15 lines · Krzysztof Kozlowski
Quoted 12 lines · Nick Hu
SiFive Domain Management controller includes the following components
- SiFive Tile Management Controller
- SiFive Cluster Management Controller
- SiFive Core Complex Management ControllerThese controllers control the clock and power domain of the corresponding domain.
Signed-off-by Nick Hu <[email protected]>Reviewed-by Samuel Holland <[email protected]>--- .../devicetree/bindings/power/sifive,tmc.yaml | 89 +++++++++++++++++++
Quoted 5 lines
Quoted 2 lines
Where is a patch with the driver (user of the binding)?
We are hoping the driver can be submitted at a later stage. The driver that handles the MMIO is implemented in OpenSBI and depends on some prerequisite patches [1], so it will follow afterward.
This patch alone makes little sense and brings little benefit. Post this with user.
...
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +7
-0+ reg: + maxItems: 1 + + sifive,feature-level: + description: | + Supported power features. This property is absent if the full set of features + is supported
Quoted 5 lines
Quoted 2 lines
Compatible defines this. Drop.
The property depends on how the IP is hooked up to the rest of the SoC. Having this property simplifies the SW and allows us to use a single fallback compatible string, so we prefer to keep it.
And we prefer you to follow standard DT rules, see writing bindings or talks on conferences.
Best regards,
Krzysztof
Quoted 17 lines · Krzysztof Kozlowski
Quoted 16 lines · Nick Hu
Quoted 15 lines · Krzysztof Kozlowski
Quoted 12 lines · Nick Hu
SiFive Domain Management controller includes the following components
- SiFive Tile Management Controller
- SiFive Cluster Management Controller
- SiFive Core Complex Management ControllerThese controllers control the clock and power domain of the corresponding domain.
Signed-off-by Nick Hu <[email protected]>Reviewed-by Samuel Holland <[email protected]>--- .../devicetree/bindings/power/sifive,tmc.yaml | 89 +++++++++++++++++++
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Where is a patch with the driver (user of the binding)?
We are hoping the driver can be submitted at a later stage. The driver that handles the MMIO is implemented in OpenSBI and depends on some prerequisite patches [1], so it will follow afterward.
This patch alone makes little sense and brings little benefit. Post this with user.
Unless the justification is that they're submitting a driver to OpenSBI that uses this binding, but in that case link it in the commit message and explain.
Quoted 18 lines · Krzysztof Kozlowski
Quoted 16 lines · Nick Hu
Quoted 15 lines · Krzysztof Kozlowski
Quoted 12 lines · Nick Hu
SiFive Domain Management controller includes the following components
- SiFive Tile Management Controller
- SiFive Cluster Management Controller
- SiFive Core Complex Management ControllerThese controllers control the clock and power domain of the corresponding domain.
Signed-off-by Nick Hu <[email protected]>Reviewed-by Samuel Holland <[email protected]>--- .../devicetree/bindings/power/sifive,tmc.yaml | 89 +++++++++++++++++++
Quoted 9 lines
Quoted 5 lines
Quoted 2 lines
Where is a patch with the driver (user of the binding)?
We are hoping the driver can be submitted at a later stage. The driver that handles the MMIO is implemented in OpenSBI and depends on some prerequisite patches [1], so it will follow afterward.
This patch alone makes little sense and brings little benefit. Post this with user.
Thanks. Will update it with the user.
Quoted 10 lines
...
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Documentation/devicetree/bindings/power/sifive,tmc.yaml new file +7
-0+ reg: + maxItems: 1 + + sifive,feature-level: + description: | + Supported power features. This property is absent if the full set of features + is supported
Quoted 9 lines
Quoted 5 lines
Quoted 2 lines
Compatible defines this. Drop.
The property depends on how the IP is hooked up to the rest of the SoC. Having this property simplifies the SW and allows us to use a single fallback compatible string, so we prefer to keep it.
And we prefer you to follow standard DT rules, see writing bindings or talks on conferences.
The CPU also exposes its D-cache size, which could technically be inferred from the compatible string. However, it chose to specify it explicitly using the d-cache-size property to allow reuse of a common initialization function across different CPUs. Similarly, while the sifive,feature-level could be inferred from the compatible string, defining it as a property would enable all sifive,tmcX users to share the same operation code, improving code reuse and maintainability.
If you still disagree with this approach, we’ll drop the sifive,feature-level property in the next revision. Looking forward to hearing your input.
Best Regards,
Nick