* [PATCH v3 1/3] dt-bindings: watchdog: Document Qualcomm QCS8300 watchdog
2024-11-25 9:35 [PATCH v3 0/3] Enable Watchdog on QCS8300 Xin Liu
@ 2024-11-25 9:35 ` Xin Liu
2024-11-25 9:35 ` [PATCH v3 2/3] arm64: dts: qcom: qcs8300: Add watchdog node Xin Liu
2024-11-25 9:35 ` [PATCH v3 3/3] arm64: dts: qcom: qcs8300-ride: " Xin Liu
2 siblings, 0 replies; 7+ messages in thread
From: Xin Liu @ 2024-11-25 9:35 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,
Krzysztof Kozlowski
Add devicetree binding for watchdog present on Qualcomm
QCS8300 SoC.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
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 related [flat|nested] 7+ messages in thread* [PATCH v3 2/3] arm64: dts: qcom: qcs8300: Add watchdog node
2024-11-25 9:35 [PATCH v3 0/3] Enable Watchdog on QCS8300 Xin Liu
2024-11-25 9:35 ` [PATCH v3 1/3] dt-bindings: watchdog: Document Qualcomm QCS8300 watchdog Xin Liu
@ 2024-11-25 9:35 ` Xin Liu
2024-11-25 12:47 ` Konrad Dybcio
2024-11-25 9:35 ` [PATCH v3 3/3] arm64: dts: qcom: qcs8300-ride: " Xin Liu
2 siblings, 1 reply; 7+ messages in thread
From: Xin Liu @ 2024-11-25 9:35 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..13321b1a8af6 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: 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 related [flat|nested] 7+ messages in thread* Re: [PATCH v3 2/3] arm64: dts: qcom: qcs8300: Add watchdog node
2024-11-25 9:35 ` [PATCH v3 2/3] arm64: dts: qcom: qcs8300: Add watchdog node Xin Liu
@ 2024-11-25 12:47 ` Konrad Dybcio
0 siblings, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2024-11-25 12:47 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 25.11.2024 10:35 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] 7+ messages in thread
* [PATCH v3 3/3] arm64: dts: qcom: qcs8300-ride: Add watchdog node
2024-11-25 9:35 [PATCH v3 0/3] Enable Watchdog on QCS8300 Xin Liu
2024-11-25 9:35 ` [PATCH v3 1/3] dt-bindings: watchdog: Document Qualcomm QCS8300 watchdog Xin Liu
2024-11-25 9:35 ` [PATCH v3 2/3] arm64: dts: qcom: qcs8300: Add watchdog node Xin Liu
@ 2024-11-25 9:35 ` Xin Liu
2024-11-25 16:45 ` Dmitry Baryshkov
2 siblings, 1 reply; 7+ messages in thread
From: Xin Liu @ 2024-11-25 9:35 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 QCS8300 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..d4e4c7a8b453 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 related [flat|nested] 7+ messages in thread* Re: [PATCH v3 3/3] arm64: dts: qcom: qcs8300-ride: Add watchdog node
2024-11-25 9:35 ` [PATCH v3 3/3] arm64: dts: qcom: qcs8300-ride: " Xin Liu
@ 2024-11-25 16:45 ` Dmitry Baryshkov
2024-11-26 3:14 ` Xin Liu
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2024-11-25 16:45 UTC (permalink / raw)
To: Xin Liu
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel, kernel,
quic_jiegan, quic_aiquny, quic_tingweiz
On Mon, Nov 25, 2024 at 05:35:03PM +0800, Xin Liu wrote:
> Add watchdog clock on the Qualcomm QCS8300 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..d4e4c7a8b453 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>;
> +};
I'd really prefer to have this in the SoC dtsi. It's not a part that can
change between boards.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v3 3/3] arm64: dts: qcom: qcs8300-ride: Add watchdog node
2024-11-25 16:45 ` Dmitry Baryshkov
@ 2024-11-26 3:14 ` Xin Liu
0 siblings, 0 replies; 7+ messages in thread
From: Xin Liu @ 2024-11-26 3:14 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel, kernel,
quic_jiegan, quic_aiquny, quic_tingweiz
在 2024/11/26 0:45, Dmitry Baryshkov 写道:
> I'd really prefer to have this in the SoC dtsi. It's not a part that can
> change between boards.
I think you're right, this clock won't change because of the board The
reason for placing it on the board is that sleep_clk is defined on the
board. The following link is the suggestion you once provided:
https://lore.kernel.org/all/4kopdkvbkrpcpzwteezm427ml5putqvzsnfkpmg76spsple7l5@mg7v3ihwxnit/
^ permalink raw reply [flat|nested] 7+ messages in thread