diff --git a/bindings/arm/msm/qcom,rdbg-smp2p.yaml b/bindings/arm/msm/qcom,rdbg-smp2p.yaml new file mode 100644 index 00000000..179878ae --- /dev/null +++ b/bindings/arm/msm/qcom,rdbg-smp2p.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 + +$id: http://devicetree.org/schemas/arm/msm/qcom,rdbg-smp2p.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Remote debugger driver + +maintainers: + - Devender Kaushik + +description: | + The Remote Debug Driver interfaces with the Remote Debug stubs running on the + subsystem processors and does not drive or anage any hardware resources. + +properties: + compatible: + oneOf: + - description: To communicate with adsp + items: + - enum: + qcom,smp2p-interrupt-rdbg-2-in (inbound) + qcom,smp2p-interrupt-rdbg-2-out (outbound) + + - description: To communicate with cdsp + items: + - enum: + qcom,smp2p-interrupt-rdbg-5-in (inbound) + qcom,smp2p-interrupt-rdbg-5-out (outbound) + +required: + - compatible + +examples: + - + qcom,smp2p_interrupt_rdbg_2_in { + compatible = "qcom,smp2p-interrupt-rdbg-2-in"; + }; + diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 4f1a57e2..77aac43d 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -448,6 +448,17 @@ interrupt-controller; #interrupt-cells = <2>; }; + + smp2p_rdbg2_out: qcom,smp2p-rdbg2-out { + qcom,entry-name = "rdbg"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_rdbg2_in: qcom,smp2p-rdbg2-in { + qcom,entry-name = "rdbg"; + interrupt-controller; + #interrupt-cells = <2>; + }; }; @@ -471,6 +482,17 @@ interrupt-controller; #interrupt-cells = <2>; }; + + smp2p_rdbg5_out: qcom,smp2p-rdbg5-out { + qcom,entry-name = "rdbg"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_rdbg5_in: qcom,smp2p-rdbg5-in { + qcom,entry-name = "rdbg"; + interrupt-controller; + #interrupt-cells = <2>; + }; }; qcom,smp2p-modem { @@ -2971,6 +2993,7 @@ #include "sun-usb.dtsi" #include "sun-thermal.dtsi" #include "sun-pcie.dtsi" +#include "msm-rdbg.dtsi" &qupv3_se7_2uart { status = "ok";