ARM: dts: dra7: scm_conf node cleanup
v2 cover ARM: dts: dra7: scm_conf node cleanup
Hi,
This series cleans up the scm_conf node.
v2:
- split patch. use only core_sma_sw registers for the new scm_conf child.
cheers,
-roger
Roger Quadros (3):
ARM: dts: dra7: Remove ctrl_core and ctrl_general nodes
ARM: dts: dra7: fix pinmux@1400 resource length
ARM: dts: dra7: Add scm_conf@1c04 node
arch/arm/boot/dts/dra7.dtsi | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-)
Signature · 1 line
2.1.4
PATCH v2 1/3 ARM: dts: dra7: Remove ctrl_core and ctrl_general nodes
These nodes are wrongly placed. They must come under the scm node. Nobody uses them either so get rid of them.
--- arch/arm/boot/dts/dra7.dtsi | 10 ---------- 1 file changed, 10 deletions(-)
arch/arm/boot/dts/dra7.dtsi +0 -10
@@ -286,16 +286,6 @@ #thermal-sensor-cells = <1>; }; - dra7_ctrl_core: ctrl_core@4a002000 { - compatible = "syscon"; - reg = <0x4a002000 0x6d0>; - }; - - dra7_ctrl_general: tisyscon@4a002e00 { - compatible = "syscon"; - reg = <0x4a002e00 0x7c>; - }; - sdma: dma-controller@4a056000 { compatible = "ti,omap4430-sdma"; reg = <0x4a056000 0x1000>;
Signature · 1 line
2.1.4
PATCH v2 2/3 ARM: dts: dra7: fix pinmux@1400 resource length
In reply to Roger QuadrosWe need to add 4 bytes to include the last 32-bit register space.
--- arch/arm/boot/dts/dra7.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/dra7.dtsi +1 -1
@@ -141,7 +141,7 @@ dra7_pmx_core: pinmux@1400 { compatible = "ti,dra7-padconf", "pinctrl-single"; - reg = <0x1400 0x0464>; + reg = <0x1400 0x0468>; #address-cells = <1>; #size-cells = <0>; #interrupt-cells = <1>;
Signature · 1 line
2.1.4
PATCH v2 3/3 ARM: dts: dra7: Add scm_conf@1c04 node
In reply to Roger QuadrosThis region contains CTRL_CORE_SMA_SW2..9 registers which are not specific to any domain and can be reasonably accessed via syscon driver.
--- arch/arm/boot/dts/dra7.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/boot/dts/dra7.dtsi +7 -0
@@ -149,6 +149,13 @@ pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0x3fffffff>; }; + + scm_conf1: scm_conf@1c04 { + compatible = "syscon"; + reg = <0x1c04 0x0020>; + #address-cells = <1>; + #size-cells = <1>; + }; }; cm_core_aon: cm_core_aon@5000 {
Signature · 1 line
2.1.4
Re: [PATCH v2 3/3] ARM: dts: dra7: Add scm_conf@1c04 node
Hi Roger,
Quoted 14 lines · Roger Quadros
This region contains CTRL_CORE_SMA_SW2..9 registers which are not specific to any domain and can be reasonably accessed via syscon driver.
Signed-off-by Roger Quadros <[email protected]>--- arch/arm/boot/dts/dra7.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm/boot/dts/dra7.dtsi +0
-0
arch/arm/boot/dts/dra7.dtsi line 157
Quoted 9 lines
arch/arm/boot/dts/dra7.dtsi +6
-0@@ -149,6 +149,13 @@ pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0x3fffffff>; }; + + scm_conf1: scm_conf@1c04 { + compatible = "syscon"; + reg = <0x1c04 0x0020>; + #address-cells = <1>; + #size-cells = <1>;
Why do you need address-cells and size-cells property here? AFAIK it is usually used to decode childs reg property.
Thanks
Kishon
Re: [PATCH v2 3/3] ARM: dts: dra7: Add scm_conf@1c04 node
Quoted 21 lines · Kishon Vijay Abraham I
Hi Roger,
Quoted 18 lines · Roger Quadros
This region contains CTRL_CORE_SMA_SW2..9 registers which are not specific to any domain and can be reasonably accessed via syscon driver.
Signed-off-by Roger Quadros <[email protected]>--- arch/arm/boot/dts/dra7.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm/boot/dts/dra7.dtsi +1
-0@@ -149,6 +149,13 @@ pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0x3fffffff>; }; +
Quoted 8 lines
arch/arm/boot/dts/dra7.dtsi line 157
Quoted 5 lines
arch/arm/boot/dts/dra7.dtsi +5
-0+ scm_conf1: scm_conf@1c04 { + compatible = "syscon"; + reg = <0x1c04 0x0020>; + #address-cells = <1>; + #size-cells = <1>;Why do you need address-cells and size-cells property here? AFAIK it is usually used to decode childs reg property.
Right. I'll remove them.
cheers,
-roger
PATCH v3 3/3 ARM: dts: dra7: Add scm_conf@1c04 node
In reply to Roger QuadrosThis region contains CTRL_CORE_SMA_SW2..9 registers which are not specific to any domain and can be reasonably accessed via syscon driver.
---
v3: removed #address/size-cells.
arch/arm/boot/dts/dra7.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/dra7.dtsi +5 -0
@@ -149,6 +149,11 @@ pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0x3fffffff>; }; + + scm_conf1: scm_conf@1c04 { + compatible = "syscon"; + reg = <0x1c04 0x0020>; + }; }; cm_core_aon: cm_core_aon@5000 {
Signature · 1 line
2.1.4
Re: [PATCH v3 3/3] ARM: dts: dra7: Add scm_conf@1c04 node
Quoted 5 lines · Roger Quadros
This region contains CTRL_CORE_SMA_SW2..9 registers which are not specific to any domain and can be reasonably accessed via syscon driver.
Signed-off-by Roger Quadros <[email protected]>
Applying all three into omap-for-v4.3/dt thanks.
Tony
Quoted 27 lines
---
v3: removed #address/size-cells.
arch/arm/boot/dts/dra7.dtsi | 5 +++++ 1 file changed, 5 insertions(+)arch/arm/boot/dts/dra7.dtsi +5
-0@@ -149,6 +149,11 @@ pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0x3fffffff>; }; + + scm_conf1: scm_conf@1c04 { + compatible = "syscon"; + reg = <0x1c04 0x0020>; + }; }; cm_core_aon: cm_core_aon@5000 {Signature · 1 line
2.1.4
Quoted 6 lines · Roger Quadros
Hi,
This series cleans up the
scm_confnode.v2:
- split patch. use onlycore_sma_swregisters for the newscm_confchild.
Series looks ok to me, so:
Quoted 12 lines
cheers,
-rogerRoger Quadros (3):
ARM: dts: dra7: Removectrl_coreandctrl_generalnodes
ARM: dts: dra7: fix pinmux@1400 resource length
ARM: dts: dra7: Add scm_conf@1c04 nodearch/arm/boot/dts/dra7.dtsi | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-)