Skip to contentSkip to conversation

dt-bindings: memory-controllers: exynos5422-dmc: Correct example syntax and memory region

PATCH In review Krzysztof Kozlowski 2 participants 2 messages Oct 2, 2019 – Oct 3, 2019

Subsystems (3)
lore
Share & tools
lore

Krzysztof Kozlowski

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: memory-controllers: exynos5422-dmc: Correct example syntax and memory region

After adding the interrupt properties to Exynos5422 DMC bindings example, the mapped memory region must be big enough to access performance counters registers.

Fix also syntax errors (semicolons) and adjust indentation.

---

Rebased on top of my for-next branch as exynos5422-dmc.txt bindings were applied by me.

---
 .../bindings/memory-controllers/exynos5422-dmc.txt        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt +4 -4
index e2434cac4858..02e4a1f862f1 100644
@@ -55,7 +55,7 @@ Example:
 
 	dmc: memory-controller@10c20000 {
 		compatible = "samsung,exynos5422-dmc";
-		reg = <0x10c20000 0x100>, <0x10c30000 0x100>,
+		reg = <0x10c20000 0x10000>, <0x10c30000 0x10000>;
 		clocks = <&clock CLK_FOUT_SPLL>,
 			 <&clock CLK_MOUT_SCLK_SPLL>,
 			 <&clock CLK_FF_DOUT_SPLL2>,
@@ -63,7 +63,7 @@ Example:
 			 <&clock CLK_MOUT_BPLL>,
 			 <&clock CLK_SCLK_BPLL>,
 			 <&clock CLK_MOUT_MX_MSPLL_CCORE>,
-			 <&clock CLK_MOUT_MCLK_CDREX>,
+			 <&clock CLK_MOUT_MCLK_CDREX>;
 		clock-names = "fout_spll",
 			      "mout_sclk_spll",
 			      "ff_dout_spll2",
@@ -71,10 +71,10 @@ Example:
 			      "mout_bpll",
 			      "sclk_bpll",
 			      "mout_mx_mspll_ccore",
-			      "mout_mclk_cdrex",
+			      "mout_mclk_cdrex";
 		operating-points-v2 = <&dmc_opp_table>;
 		devfreq-events = <&ppmu_event3_dmc0_0>,	<&ppmu_event3_dmc0_1>,
-				<&ppmu_event3_dmc1_0>, <&ppmu_event3_dmc1_1>;
+				 <&ppmu_event3_dmc1_0>, <&ppmu_event3_dmc1_1>;
 		device-handle = <&samsung_K3QF2F20DB>;
 		vdd-supply = <&buck1_reg>;
 		samsung,syscon-clk = <&clock>;
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Krzysztof,

Quoted 42 lines · Krzysztof Kozlowski

After adding the interrupt properties to Exynos5422 DMC bindings example, the mapped memory region must be big enough to access performance counters registers.

Fix also syntax errors (semicolons) and adjust indentation.

---

Rebased on top of my for-next branch as exynos5422-dmc.txt bindings were applied by me.

---
  .../bindings/memory-controllers/exynos5422-dmc.txt        | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt +2 -2
index e2434cac4858..02e4a1f862f1 100644
@@ -55,7 +55,7 @@ Example:
 
  	dmc: memory-controller@10c20000 {
  		compatible = "samsung,exynos5422-dmc";
-		reg = <0x10c20000 0x100>, <0x10c30000 0x100>,
+		reg = <0x10c20000 0x10000>, <0x10c30000 0x10000>;
  		clocks = <&clock CLK_FOUT_SPLL>,
  			 <&clock CLK_MOUT_SCLK_SPLL>,
  			 <&clock CLK_FF_DOUT_SPLL2>,
@@ -63,7 +63,7 @@ Example:
  			 <&clock CLK_MOUT_BPLL>,
  			 <&clock CLK_SCLK_BPLL>,
  			 <&clock CLK_MOUT_MX_MSPLL_CCORE>,
-			 <&clock CLK_MOUT_MCLK_CDREX>,
+			 <&clock CLK_MOUT_MCLK_CDREX>;
  		clock-names = "fout_spll",
  			      "mout_sclk_spll",
  			      "ff_dout_spll2",
@@ -71,10 +71,10 @@ Example:
  			      "mout_bpll",
  			      "sclk_bpll",

Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt Example: · line 80

Quoted 10 lines
Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt +2 -2
  			      "mout_mx_mspll_ccore",
-			      "mout_mclk_cdrex",
+			      "mout_mclk_cdrex";
  		operating-points-v2 = <&dmc_opp_table>;
  		devfreq-events = <&ppmu_event3_dmc0_0>,	<&ppmu_event3_dmc0_1>,
-				<&ppmu_event3_dmc1_0>, <&ppmu_event3_dmc1_1>;
+				 <&ppmu_event3_dmc1_0>, <&ppmu_event3_dmc1_1>;
  		device-handle = <&samsung_K3QF2F20DB>;
  		vdd-supply = <&buck1_reg>;
  		samsung,syscon-clk = <&clock>;

Thank you for the patch. Indeed it must also be updated.

Regards,
Lukasz