Skip to contentSkip to conversation

ARM: dts: dra7: scm_conf node cleanup

PATCH Superseded Roger Quadros 4 participants 9 messages Jul 27, 2015 – Aug 5, 2015 Device tree bindings

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 4a0718c..cf2931e 100644
@@ -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
#2 lore raw

PATCH v2 2/3 ARM: dts: dra7: fix pinmux@1400 resource length

In reply to Roger Quadros

We 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
index cf2931e..913032b 100644
@@ -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
#3 lore raw

PATCH v2 3/3 ARM: dts: dra7: Add scm_conf@1c04 node

In reply to 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.

---
 arch/arm/boot/dts/dra7.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/dra7.dtsi +7 -0
index 913032b..43b5074 100644
@@ -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
#4 lore raw

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.

---
 arch/arm/boot/dts/dra7.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/dra7.dtsi +0 -0
index 913032b..43b5074 100644

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

#5 lore raw

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.

---
 arch/arm/boot/dts/dra7.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/dra7.dtsi +1 -0
index 913032b..43b5074 100644
@@ -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

#6 lore raw

PATCH v3 3/3 ARM: dts: dra7: Add scm_conf@1c04 node

In reply to 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.

---

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
index 913032b..2cab476 100644
@@ -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
#7 lore raw

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.

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
index 913032b..2cab476 100644
@@ -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
Acked-by on the v2 series
#8 lore raw
In reply to Roger Quadros
Quoted 6 lines · Roger Quadros

Hi,

This series cleans up the scm_conf node.

v2:
- split patch. use only core_sma_sw registers for the new scm_conf child.

Series looks ok to me, so:

Quoted 12 lines

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(-)