Skip to contentSkip to conversation

dt-bindings: samsung: exynos-sysreg: gs101-peric0 requires a clock

PATCH Superseded André Draszik 2 participants 5 messages Jan 25, 2024 – Jan 26, 2024

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

André Draszik

author reviewer
#0 lore raw

PATCH 1/2 dt-bindings: samsung: exynos-sysreg: gs101-peric0 requires a clock

... otherwise it won't be accessible.

Update the schema to make this obvious.

---
 .../devicetree/bindings/soc/samsung/samsung,exynos-sysreg.yaml   | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/soc/samsung/samsung,exynos-sysreg.yaml +1 -0
index 1794e3799f21..33d837ae4f45 100644
@@ -72,6 +72,7 @@ allOf:
         compatible:
           contains:
             enum:
+              - google,gs101-peric0-sysreg
               - samsung,exynos850-cmgp-sysreg
               - samsung,exynos850-peri-sysreg
               - samsung,exynos850-sysreg
Signature · 1 line
2.43.0.429.g432eaa2c6b-goog
author reviewer
#1 lore raw

PATCH 2/2 arm64: dts: exynos: gs101: sysreg_peric1 needs a clock

Without the clock running, we can not access its registers, and now that we have it, we should add it here so that it gets enabled as and when needed.

Update the DTSI accordingly.

---
 arch/arm64/boot/dts/exynos/google/gs101.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/exynos/google/gs101.dtsi +1 -0
index 412d2866dca7..aaac04df5e65 100644
@@ -364,6 +364,7 @@ cmu_peric0: clock-controller@10800000 {
 		sysreg_peric0: syscon@10820000 {
 			compatible = "google,gs101-peric0-sysreg", "syscon";
 			reg = <0x10820000 0x10000>;
+			clocks = <&cmu_peric0 CLK_GOUT_PERIC0_SYSREG_PERIC0_PCLK>;
 		};
 
 		pinctrl_peric0: pinctrl@10840000 {
Signature · 1 line
2.43.0.429.g432eaa2c6b-goog
author reviewer
#2 lore raw

PATCH v2 1/1 arm64: dts: exynos: gs101: sysreg_peric0 needs a clock

Without the clock running, we can not access its registers, and now that we have it, we should add it here so that it gets enabled as and when needed.

Update the DTSI accordingly.

---
 arch/arm64/boot/dts/exynos/google/gs101.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/exynos/google/gs101.dtsi +1 -0
index 412d2866dca7..aaac04df5e65 100644
@@ -364,6 +364,7 @@ cmu_peric0: clock-controller@10800000 {
 		sysreg_peric0: syscon@10820000 {
 			compatible = "google,gs101-peric0-sysreg", "syscon";
 			reg = <0x10820000 0x10000>;
+			clocks = <&cmu_peric0 CLK_GOUT_PERIC0_SYSREG_PERIC0_PCLK>;
 		};
 
 		pinctrl_peric0: pinctrl@10840000 {
Signature · 1 line
2.43.0.429.g432eaa2c6b-goog
#4 lore raw

Re: [PATCH 2/2] arm64: dts: exynos: gs101: sysreg_peric1 needs a clock

Quoted 5 lines · André Draszik
Quoted 1 line

[PATCH v2] arm64: dts: exynos: gs101: sysreg_peric0 needs a clock

Sorry for copy/paste error in the subject :-(

I've sent an update in https://lore.kernel.org/all/[email protected]/

Which makes it impossible to apply (at least with usual workflow):

Grabbing thread from lore.kernel.org/all/[email protected]/t.mbox.gz Checking for newer revisions
Grabbing search results from lore.kernel.org
Analyzing 4 messages in the thread
Will use the latest revision: v2
You can pick other revisions using the -vN flag
Checking attestation on all messages, may take a moment...
---
✓ [PATCH v2] arm64: dts: exynos: gs101: sysreg_peric0 needs a clock
+ Link:
https://lore.kernel.org/r/[email protected]
+ Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
✓ Signed: DKIM/linaro.org
---
Total patches: 1
---
Applying: arm64: dts: exynos: gs101: sysreg_peric0 needs a clock
---
Patchwork: setting state on patchwork.kernel.org/linux-samsung-soc
-> under-review : [v2] arm64: dts: exynos: gs101: sysreg_peric0 needs a
clock

Please do not invent your own workflows of handling patches. Each submission must be:
1. In separate thread, not linked to something else,
2. Complete.

I await for v3.

Best regards,
Krzysztof