mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Enable Watchdog on QCS8300
@ 2024-10-29  3:12 Xin Liu
  2024-10-29  3:12 ` [PATCH v1 1/3] dt-bindings: watchdog: Document Qualcomm QCS8300 Xin Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Xin Liu @ 2024-10-29  3:12 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Konrad Dybcio
  Cc: Rajendra Nayak, linux-arm-msm, linux-watchdog, devicetree,
	linux-kernel, kernel, quic_jiegan, quic_aiquny, quic_tingweiz


Add Watchdog support to the QCS8300 Ride platform. Include the relevant
binding documents accordingly. Additionally, configure Watchdog-related 
clock and interrupt in the device tree.

Signed-off-by: Xin Liu <quic_liuxin@quicinc.com>
---
This patch series depends on below patch series:
https://lore.kernel.org/linux-arm-msm/20240925-qcs8300_initial_dtsi-v2-0-494c40fa2a42@quicinc.com/

Xin Liu (3):
  dt-bindings: watchdog: Document Qualcomm QCS8300
  arm64: dts: qcom: qcs8300: Add watchdog node
  arm64: dts: qcom: qcs8300-ride: Add watchdog node

 Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml | 1 +
 arch/arm64/boot/dts/qcom/qcs8300-ride.dts                | 4 ++++
 arch/arm64/boot/dts/qcom/qcs8300.dtsi                    | 6 ++++++
 3 files changed, 11 insertions(+)
---
base-commit: 72ba000b3674188b6b27a5c8b62653ae16a4b76e 

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v1 1/3] dt-bindings: watchdog: Document Qualcomm QCS8300
  2024-10-29  3:12 [PATCH v1 0/3] Enable Watchdog on QCS8300 Xin Liu
@ 2024-10-29  3:12 ` Xin Liu
  2024-10-29  7:42   ` Krzysztof Kozlowski
  2024-10-29  3:12 ` [PATCH v1 2/3] arm64: dts: qcom: qcs8300: Add watchdog node Xin Liu
  2024-10-29  3:12 ` [PATCH v1 3/3] arm64: dts: qcom: qcs8300-ride: " Xin Liu
  2 siblings, 1 reply; 6+ messages in thread
From: Xin Liu @ 2024-10-29  3:12 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: Rajendra Nayak, linux-arm-msm, linux-watchdog, devicetree,
	linux-kernel, kernel, quic_jiegan, quic_aiquny, quic_tingweiz

Add devicetree binding for watchdog present on Qualcomm
QCS8300 SoC.

Signed-off-by: Xin Liu <quic_liuxin@quicinc.com>
---
 Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
index 932393f8c649..200071227d4f 100644
--- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
@@ -26,6 +26,7 @@ properties:
               - qcom,apss-wdt-msm8994
               - qcom,apss-wdt-qcm2290
               - qcom,apss-wdt-qcs404
+              - qcom,apss-wdt-qcs8300
               - qcom,apss-wdt-sa8255p
               - qcom,apss-wdt-sa8775p
               - qcom,apss-wdt-sc7180
-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v1 2/3] arm64: dts: qcom: qcs8300: Add watchdog node
  2024-10-29  3:12 [PATCH v1 0/3] Enable Watchdog on QCS8300 Xin Liu
  2024-10-29  3:12 ` [PATCH v1 1/3] dt-bindings: watchdog: Document Qualcomm QCS8300 Xin Liu
@ 2024-10-29  3:12 ` Xin Liu
  2024-11-04 11:08   ` Konrad Dybcio
  2024-10-29  3:12 ` [PATCH v1 3/3] arm64: dts: qcom: qcs8300-ride: " Xin Liu
  2 siblings, 1 reply; 6+ messages in thread
From: Xin Liu @ 2024-10-29  3:12 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, kernel, quic_jiegan,
	quic_aiquny, quic_tingweiz

Add the watchdog node for QCS8300 SoC.

Signed-off-by: Xin Liu <quic_liuxin@quicinc.com>
---
 arch/arm64/boot/dts/qcom/qcs8300.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/qcs8300.dtsi b/arch/arm64/boot/dts/qcom/qcs8300.dtsi
index 2c35f96c3f28..876eb16be11c 100644
--- a/arch/arm64/boot/dts/qcom/qcs8300.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs8300.dtsi
@@ -1122,6 +1122,12 @@ intc: interrupt-controller@17a00000 {
 			redistributor-stride = <0x0 0x20000>;
 		};
 
+		watchdog@17c10000 {
+			compatible = "qcom,apss-wdt-qcs8300", "qcom,kpss-wdt";
+			reg = <0x0 0x17c10000 0x0 0x1000>;
+			interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
+		};
+
 		memtimer: timer@17c20000 {
 			compatible = "arm,armv7-timer-mem";
 			reg = <0x0 0x17c20000 0x0 0x1000>;
-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v1 3/3] arm64: dts: qcom: qcs8300-ride: Add watchdog node
  2024-10-29  3:12 [PATCH v1 0/3] Enable Watchdog on QCS8300 Xin Liu
  2024-10-29  3:12 ` [PATCH v1 1/3] dt-bindings: watchdog: Document Qualcomm QCS8300 Xin Liu
  2024-10-29  3:12 ` [PATCH v1 2/3] arm64: dts: qcom: qcs8300: Add watchdog node Xin Liu
@ 2024-10-29  3:12 ` Xin Liu
  2 siblings, 0 replies; 6+ messages in thread
From: Xin Liu @ 2024-10-29  3:12 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, kernel, quic_jiegan,
	quic_aiquny, quic_tingweiz

Add watchdog clock on the Qualcomm QCS615 Ride platform.

Signed-off-by: Xin Liu <quic_liuxin@quicinc.com>
---
 arch/arm64/boot/dts/qcom/qcs8300-ride.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/qcs8300-ride.dts b/arch/arm64/boot/dts/qcom/qcs8300-ride.dts
index 7eed19a694c3..bcdc97b4097d 100644
--- a/arch/arm64/boot/dts/qcom/qcs8300-ride.dts
+++ b/arch/arm64/boot/dts/qcom/qcs8300-ride.dts
@@ -265,3 +265,7 @@ &ufs_mem_phy {
 	vdda-pll-supply = <&vreg_l5a>;
 	status = "okay";
 };
+
+&watchdog {
+	clocks = <&sleep_clk>;
+};
-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 1/3] dt-bindings: watchdog: Document Qualcomm QCS8300
  2024-10-29  3:12 ` [PATCH v1 1/3] dt-bindings: watchdog: Document Qualcomm QCS8300 Xin Liu
@ 2024-10-29  7:42   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-10-29  7:42 UTC (permalink / raw)
  To: Xin Liu
  Cc: Wim Van Sebroeck, Guenter Roeck, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Rajendra Nayak, linux-arm-msm,
	linux-watchdog, devicetree, linux-kernel, kernel, quic_jiegan,
	quic_aiquny, quic_tingweiz

On Tue, Oct 29, 2024 at 11:12:20AM +0800, Xin Liu wrote:
> Add devicetree binding for watchdog present on Qualcomm
> QCS8300 SoC.
> 
> Signed-off-by: Xin Liu <quic_liuxin@quicinc.com>
> ---
>  Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 2/3] arm64: dts: qcom: qcs8300: Add watchdog node
  2024-10-29  3:12 ` [PATCH v1 2/3] arm64: dts: qcom: qcs8300: Add watchdog node Xin Liu
@ 2024-11-04 11:08   ` Konrad Dybcio
  0 siblings, 0 replies; 6+ messages in thread
From: Konrad Dybcio @ 2024-11-04 11:08 UTC (permalink / raw)
  To: Xin Liu, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, kernel, quic_jiegan,
	quic_aiquny, quic_tingweiz

On 29.10.2024 4:12 AM, Xin Liu wrote:
> Add the watchdog node for QCS8300 SoC.
> 
> Signed-off-by: Xin Liu <quic_liuxin@quicinc.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-04 11:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-29  3:12 [PATCH v1 0/3] Enable Watchdog on QCS8300 Xin Liu
2024-10-29  3:12 ` [PATCH v1 1/3] dt-bindings: watchdog: Document Qualcomm QCS8300 Xin Liu
2024-10-29  7:42   ` Krzysztof Kozlowski
2024-10-29  3:12 ` [PATCH v1 2/3] arm64: dts: qcom: qcs8300: Add watchdog node Xin Liu
2024-11-04 11:08   ` Konrad Dybcio
2024-10-29  3:12 ` [PATCH v1 3/3] arm64: dts: qcom: qcs8300-ride: " Xin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®