dt-bindings: sram: Add 'clocks' as an optional property
PATCH v2 1/1 dt-bindings: sram: Add 'clocks' as an optional property
From: Fabio Estevam <[email protected]>
Some SoCs (like i.MX53) need to specify the SRAM clock in the device tree via the clocks property.
Add an entry to the optional property section.
---
Changes since v1:
- Add space before : and use the more common "list of phandle and clock specifier pairs" term - Vladimir
Documentation/devicetree/bindings/sram/sram.txt | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/sram/sram.txt +2 -0
@@ -50,6 +50,8 @@ Optional properties in the area nodes: manipulation of the page attributes. - label : the name for the reserved partition, if omitted, the label is taken from the node name excluding the unit address. +- clocks : a list of phandle and clock specifier pairs that controls the + SRAM clock. Example:
Signature · 1 line
2.7.4
Rob Herring
maintainerQuoted 22 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Some SoCs (like i.MX53) need to specify the SRAM clock in the device tree via the clocks property.
Add an entry to the optional property section.
Reviewed-by Vladimir Zapolskiy <[email protected]>Signed-off-by Fabio Estevam <[email protected]>---
Changes since v1:
- Add space before : and use the more common "list of phandle and clock specifier pairs" term - VladimirDocumentation/devicetree/bindings/sram/sram.txt | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/sram/sram.txt +0
-0
Documentation/devicetree/bindings/sram/sram.txt Optional properties in the area nodes: · line 54
Quoted 5 lines
Documentation/devicetree/bindings/sram/sram.txt +2
-0@@ -50,6 +50,8 @@ Optional properties in the area nodes: manipulation of the page attributes. - label : the name for the reserved partition, if omitted, the label is taken from the node name excluding the unit address. +- clocks : a list of phandle and clock specifier pairs that controls the + SRAM clock.
A list controlling THE (single) SRAM clock?
Once we start needing clocks, power, or other setup, we really should have specific compatible strings (and binding docs) for the SRAM. I'll take a single clock though.
Rob
Quoted 4 lines · Rob Herring
Quoted 4 lines
Documentation/devicetree/bindings/sram/sram.txt +0
-0
Quoted 8 lines
Documentation/devicetree/bindings/sram/sram.txt Optional properties in the area nodes: · line 54
Quoted 6 lines
Documentation/devicetree/bindings/sram/sram.txt +2
-0@@ -50,6 +50,8 @@ Optional properties in the area nodes: manipulation of the page attributes. - label : the name for the reserved partition, if omitted, the label is taken from the node name excluding the unit address. +- clocks : a list of phandle and clock specifier pairs that controls the + SRAM clock.A list controlling THE (single) SRAM clock?
Yes, it is a single SRAM clock.
Will reword it.
Hi Rob, Fabio,
Quoted 31 lines · Rob Herring
Quoted 22 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Some SoCs (like i.MX53) need to specify the SRAM clock in the device tree via the clocks property.
Add an entry to the optional property section.
Reviewed-by Vladimir Zapolskiy <[email protected]>Signed-off-by Fabio Estevam <[email protected]>---
Changes since v1:
- Add space before : and use the more common "list of phandle and clock specifier pairs" term - VladimirDocumentation/devicetree/bindings/sram/sram.txt | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/sram/sram.txt +0
-0Documentation/devicetree/bindings/sram/sram.txt Optional properties in the area nodes: · line 54
Quoted 5 lines
Documentation/devicetree/bindings/sram/sram.txt +2
-0@@ -50,6 +50,8 @@ Optional properties in the area nodes: manipulation of the page attributes. - label : the name for the reserved partition, if omitted, the label is taken from the node name excluding the unit address. +- clocks : a list of phandle and clock specifier pairs that controls the + SRAM clock.A list controlling THE (single) SRAM clock?
Quoted 4 lines
Once we start needing clocks, power, or other setup, we really should have specific compatible strings (and binding docs) for the SRAM. I'll take a single clock though.
There are SRAM devices, which take multiple power or clock supplies [1], where one clock or power domain control enables a segment on SRAM, however a number of (enabled) segments form a single continuous IO memory space, hence it could make sense to pluralize clocks in the generic document, particular device specifics can be described separately.
[1] For reference IRAM on NXP LPC32xx has multiple power controls.
--
Best wishes,
Vladimir
Rob Herring
maintainerQuoted 40 lines · Vladimir Zapolskiy
Hi Rob, Fabio,
Quoted 31 lines · Rob Herring
Quoted 22 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Some SoCs (like i.MX53) need to specify the SRAM clock in the device tree via the clocks property.
Add an entry to the optional property section.
Reviewed-by Vladimir Zapolskiy <[email protected]>Signed-off-by Fabio Estevam <[email protected]>---
Changes since v1:
- Add space before : and use the more common "list of phandle and clock specifier pairs" term - VladimirDocumentation/devicetree/bindings/sram/sram.txt | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/sram/sram.txt +0
-0Documentation/devicetree/bindings/sram/sram.txt Optional properties in the area nodes: · line 54
Quoted 5 lines
Documentation/devicetree/bindings/sram/sram.txt +2
-0@@ -50,6 +50,8 @@ Optional properties in the area nodes: manipulation of the page attributes. - label : the name for the reserved partition, if omitted, the label is taken from the node name excluding the unit address. +- clocks : a list of phandle and clock specifier pairs that controls the + SRAM clock.A list controlling THE (single) SRAM clock?
Quoted 4 lines
Once we start needing clocks, power, or other setup, we really should have specific compatible strings (and binding docs) for the SRAM. I'll take a single clock though.
Quoted 5 lines
There are SRAM devices, which take multiple power or clock supplies [1], where one clock or power domain control enables a segment on SRAM, however a number of (enabled) segments form a single continuous IO memory space, hence it could make sense to pluralize clocks in the generic document, particular device specifics can be described separately.
The device specific part still has to say how many clocks and what they are, so having multiple clocks in the generic binding doesn't buy you anything. And I don't care to give the impression that we support multiple clocks with the generic binding.
Rob